UI: fixed workflow execution don't work

* fixed workflow execution param name, which was changed on
  python-mistral-client API.
* As we don't have a running regression: 
  PLEASE - if you change any API calls do let a UI developer know
  and/or open and assign a bug

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: I5321b4b568cc1bd03ff641e4fd120f1ed64c29b8
This commit is contained in:
Gal Margalit 2016-02-15 15:40:09 +00:00
parent 79d53e818b
commit de9ce6ea22
2 changed files with 9 additions and 6 deletions

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2014 - StackStorm, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@ -44,6 +42,7 @@ class ExecuteForm(forms.SelfHandlingForm):
def handle(self, request, data):
try:
data['workflow_identifier'] = data.pop('workflow_name')
ex = api.execution_create(request, **data)
msg = _('Execution has been created with id "%s".') % ex.id

View File

@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# Copyright 2014 - StackStorm, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
@ -86,8 +84,14 @@ class WorkflowsTable(tables.DataTable):
verbose_name=_("Name"),
link="horizon:mistral:workflows:detail"
)
tags = tables.Column(tags_to_string, verbose_name=_("Tags"))
inputs = tables.Column(cut, verbose_name=_("Input"))
tags = tables.Column(
tags_to_string,
verbose_name=_("Tags")
)
inputs = tables.Column(
cut,
verbose_name=_("Input")
)
created = tables.Column(
"created_at",
verbose_name=_("Created"),