19 Commits

Author SHA1 Message Date
manchandavishal
0af8c03faf Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Change-Id: Ib56b35b164057b821b5e9755202b87c9e1ea5572
2020-08-26 12:22:42 +00:00
Andreas Jaeger
e6f423604a Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Change-Id: Id84564d8350fb793a2511abae218db17ea122873
Needed-By: https://review.opendev.org/701743
2020-01-11 16:42:13 +01:00
pengyuesheng
809416b7b5 Refactor error messages
This patch refactors error messages and
shows the detailed error message

Change-Id: I4d7fc03c9368bf20cd374097ff210e1ecb952d23
2019-09-06 07:21:32 +00:00
pengyuesheng
3cb1ace8c7 Add asterisk mark for the required field
Change-Id: I831efdbac8f2b3216917005318bb52669be0bf5c
2019-05-08 16:42:31 +08:00
privaterookie
9f35dca96f fix mistral dashbaord workflow execution form bug
fix a bug that when a workflow has no input params, execution form
will has a requried field with empty label

Close-bug:#1786723
Change-Id: I49b2125ef649e94e210ff5df739684626c175172
2018-08-13 11:31:57 +08:00
Akihiro Motoki
3ae1e8aae3 Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.

Change-Id: I6d2e38201387012ba9a02c4b0bd8377895a5919a
2018-05-15 06:14:48 +09:00
Mateusz Kowalski
b42b2c4f25 Expand parameter list for workflow execution
Currently one generic field "Input" is shown when executing a workflow.
This patch checks list of parameters for a workflow and generates
a Django form according to the results, also prefilling any default
value.

In case default value for a parameter is none, field is not marked
as required.

Closes-bug: #1712322
Change-Id: I702d2b196f87e46bc39da00cad509d2f08f5d24c
2017-08-22 14:30:31 +02:00
Sharat Sharma
b31320c041 Make the definition section of the wb/wf create section editable
User cannot modify wb/wf definition that is uploaded as a file
during its creation. After file is selected, the user just sees
its context but can't modify it if it is needed. So, making the
field editable.

Change-Id: I884b2dbf106f328843f81b23c838f7397c89375e
Closes-Bug: #1505601
2017-04-06 18:03:57 +05:30
Jenkins
eede6abcc8 Merge "UI: Actions screen improvements" 2016-02-16 17:27:58 +00:00
Jenkins
dd10bf2b34 Merge "Fix gate-mistral-dashboard-python34" 2016-02-16 17:06:03 +00:00
Gal Margalit
ff8e684d84 UI: Actions screen improvements
* added pagination:  adressed all comments given to Liat on:
  https://review.openstack.org/#/c/266826/
* removed redundant template inheritance
* resolved bug: [ui] Pagination is absent in the "Actions" tab
* resolved bug: [ui] Every click on "Actions" tab takes too much time
* resolved bug: [ui] Problem with "Actions" page layout

Screenshots:
  http://pasteboard.co/1yhuS10g.png

Partially implements blueprint: Actions-screen-improvements
Closes-Bug: #1505657
Closes-Bug: #1505668
Closes-Bug: #1505662

Change-Id: I4c15e39830ca425a8321b09e7d6039e6623eea8b
2016-02-16 09:48:56 +00:00
Anastasia Kuznetsova
19761bfa60 Fix gate-mistral-dashboard-python34
Fixed a lot of AttributeError: 'module' object has no attribute 'nested'
and F821 undefined name 'unicode' errors.

Change-Id: I79e73e27608ec6b76fd4ccf0ee9dcaf2ddf965ed
Closes-Bug: #1544499
2016-02-16 11:15:59 +03:00
Gal Margalit
de9ce6ea22 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
2016-02-15 15:41:38 +00:00
Zhenguo Niu
85a20944cc Add update workflow support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Idcd728fd5788ff126026628899c3c232eee8470f
2015-07-15 15:09:57 +08:00
Zhenguo Niu
d01d6206cf Add create workflow support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I55a5ea17acbb1ef0b8290d7f7317337134954b76
2015-07-14 17:20:49 +08:00
Zhenguo Niu
79e6d9c136 Fix H306 errors
Change-Id: I1ff850e87979a05f5daec489d8a50008e2489e97
2015-07-13 09:42:33 +08:00
Zhenguo Niu
3ea61da17f Wrap mistralclient code in api.py
All mistralclient specific code should be wrapped in api.py,
see discusstion on:
https://review.openstack.org/#/c/198056/1/mistraldashboard/executions/views.py

Change-Id: Idcf94f523473bdb31c257ca2054942fe79ea54ba
2015-07-03 18:51:22 +08:00
Renat Akhmerov
f928ac885e Making style changes and adding AUTHORS file
Change-Id: I3238253e03d9f80975c65a3efc84bd202b338815
2014-09-30 11:31:32 +07:00
Kirill Izotov
bb03d06ebe Modify to use API v2
Change-Id: Iacaab88d7ce8618aa7331e8cb7f23c69191e5f49
Implements: blueprint mistral-ui
2014-09-15 14:57:59 +07:00