You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
This work is under epic #509
Setup the API, actions, and reducers in the Dashboard to retrieve Triggers resources (
TriggerTemplate
,TriggerBinding
, andEventListener
) 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
, andFETCH_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
The text was updated successfully, but these errors were encountered: