tripleo-ui/src/js/reducers
Jiri Tomasek 494af34c9b Make running workflows more robust
Currently there is no fallback in case when Zaqar message does not
arrive to inform about the status of ongoing Mistral workflow.

This change introduces mechanism to make execution of workflows more
robust in TripleO UI:

Workflows should be triggered using startWorkflow action - startWorkflow
starts polling for workflow execution after a timeout expires and polls
until workflow execution is finished. Then it executes a callback (usually
action dispatch)

In case a relevant Zaqar message arrives, handleMessage action is triggered
which cancels the timeout, fetches the execution and passes it to callback.

Benefits:
* Application always gets to the result of a workflow execution, regardless
  whether the Zaqar message arrives or not
* Application does not depend on Zaqar message containing relevant data.
  Message is only required to deliver the execution ID, which is then used
  to fetch execution separately
* All executions are tracked in application state

Partial-Bug: #1753474
Change-Id: I2ae26986e5c2e8870238a287fbd3df46a92ed65f
2018-03-21 18:17:16 +01:00
..
appConfig.js App config and I18n selectors refactor 2017-10-05 12:52:06 +02:00
appReducer.js Make running workflows more robust 2018-03-21 18:17:16 +01:00
environmentConfigurationReducer.js eslint: use as-needed for arrow-body-style 2018-03-21 11:53:31 -03:00
filtersReducer.js eslint: use as-needed for arrow-body-style 2018-03-21 11:53:31 -03:00
flavorsReducer.js Add flavor fetching via Nova API 2018-02-22 10:41:18 +01:00
i18nReducer.js App config and I18n selectors refactor 2017-10-05 12:52:06 +02:00
loggerReducer.js Stop logging over websocket on logout 2018-01-31 19:50:13 -04:00
loginReducer.js Fix Logout and authentication loop 2017-07-18 11:47:22 +02:00
nodesReducer.js Show Node Introspection Data 2017-06-23 13:28:04 +02:00
notificationsReducer.js Add license headers to all js and less files 2017-05-16 18:21:31 +02:00
parametersReducer.js Parameters cleanup 2018-02-14 09:33:02 +01:00
plansReducer.js Update updatePlan action 2017-08-16 08:45:54 +02:00
registerNodesReducer.js Refactor Register nodes dialog to use redux-form 2017-11-15 10:27:59 +01:00
rolesReducer.js Submit select roles 2018-01-31 14:16:37 +01:00
stacksReducer.js Fix blank overcloud credentials 2017-06-02 13:44:26 +02:00
validationsReducer.js Layout components updates 2017-12-04 18:25:08 +01:00
workflowExecutionTimeoutsReducer.js Make running workflows more robust 2018-03-21 18:17:16 +01:00
workflowExecutionsReducer.js Make running workflows more robust 2018-03-21 18:17:16 +01:00