Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup API, actions, and reducers to get Triggers resources #665

Closed
ncskier opened this issue Oct 25, 2019 · 2 comments
Closed

Setup API, actions, and reducers to get Triggers resources #665

ncskier opened this issue Oct 25, 2019 · 2 comments
Assignees

Comments

@ncskier
Copy link
Member

ncskier commented Oct 25, 2019

This work is under epic #509

Setup the API, actions, and reducers in the Dashboard to retrieve Triggers resources (TriggerTemplate, TriggerBinding, and EventListener) from the proxy API. Read the following specifications for more info about the API, actions, and reducers.

API

Add the following functions to src/api/index.js:

  • getTriggerTemplates()
  • getTriggerTemplate()
  • getTriggerBindings()
  • getTriggerBinding()
  • getEventListeners()
  • getEventListener()

Add tests in src/api/index.test.js

Actions

Create the following files with actions for FETCH_REQUEST, FETCH_SUCCESS, and FETCH_FAILURE:

  • src/actions/triggerTemplates.js
  • src/actions/triggerBindings.js
  • src/actions/eventListeners.js

Include tests in:

  • src/actions/triggerTemplates.test.js
  • src/actions/triggerBindings.test.js
  • src/actions/eventListeners.test.js

Reducers

Create the following files to define the state & reducers for each Triggers resource:

  • src/reducers/triggerTemplates.js
  • src/reducers/triggerBindings.js
  • src/reducers/eventListeners.js

Include tests in:

  • src/reducers/triggerTemplates.test.js
  • src/reducers/triggerBindings.test.js
  • src/reducers/eventListeners.test.js

Additional Info

@a-roberts
Copy link
Member

PR #686

@a-roberts
Copy link
Member

Merged so closing, floodgates open

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants