Fix Validations progress

Latest validations results are tracked by execution's updated_at
property but incoming executions from Zaqar message don't have this
set. This patch sets it explicitly until it is fixed in Mistral

Closes-Bug: 1729571
Change-Id: Icb82abd7011fa5b5ac99a7cde26a971282bea409
(cherry picked from commit 0853e0bb6f)
This commit is contained in:
Jiri Tomasek 2017-11-02 11:54:15 +01:00 committed by Beth Elwell
parent 6c8aaef6c6
commit 25f3d69196
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ export default {
output: omit(messagePayload, 'execution'),
params: messagePayload.execution.params,
state: messagePayload.status,
workflow_name: MistralConstants.VALIDATIONS_RUN
workflow_name: MistralConstants.VALIDATIONS_RUN,
// TODO(jtomasek): replace this with messagePayload.execution.updated_at once message provides it
updated_at: new Date(Date.now()) // setting this explicitly as message does not provide it
};
dispatch(WorkflowExecutionsActions.addWorkflowExecution(execution));
};