39 Commits

Author SHA1 Message Date
Zuul
c3daa34c60 Merge "Address RemovedInDjango40Warning" 2022-08-08 17:11:04 +00:00
Takashi Kajinami
09d63aefbc Replace deprecated ugettext_lazy and ungettext_lazy
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].

These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee

Change-Id: I6697e4c006e7b8ec94a08ad4625a1980582b4d6d
2022-07-11 02:47:44 +00:00
manchandavishal
72e898910f Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I3e95a2ec718b473ffed698652f6bdaba4e9de8a5
2022-04-29 16:44:49 +05:30
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
Ivan Kolodyazhny
9c19e28c21 s/assertItemsEqual/assertCountEqual/g
assertItemsEqual was renamed to assertCountEqual in Python 3, and the
testsuite is failing now - rename it.
See also https://six.readthedocs.io/#six.assertCountEqual

This unbreaks the testsuite.

Change-Id: I910c7f2b3eae107a8d8022366f738b006cf4831a
2020-01-20 18:38:54 +02: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
21663e507e Add the unit test for workbooks detail
Change-Id: Idd8a862f396d8edcf26a7e4ba066946ec5f80aa3
2019-06-21 10:37:17 +08:00
pengyuesheng
8dab9d1c34 fix the Bug of test in workbooks panel
Change-Id: I7282eb58da3fab8361674715ade8361416101dea
2019-06-17 11:16:10 +08:00
pengyuesheng
3cb1ace8c7 Add asterisk mark for the required field
Change-Id: I831efdbac8f2b3216917005318bb52669be0bf5c
2019-05-08 16:42:31 +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
Hanxi Liu
96186a1ba9 Fix workflow language link
There is no more DSL docs since the commit[1]
and all of them should be updated.

[1]I6e2a10932c648836a1e0632b4cd0fce3ab78f946

Change-Id: I5c67d934f2a7a884ab659af43b7ff6713b908d9c
2018-03-28 11:07:20 +00:00
Sharat Sharma
e891c2a4bf Update the URLs
There are a few outdated links in the dashboard repo. Update them
according to the doc-migration.

Change-Id: I6361d14127012415329bf844b7b420980253527a
Depends-on: I20cd94d0423c1b97f8ec83973aabbb7ecee75b49
2017-08-07 17:04:35 +05:30
Jenkins
7a68194473 Merge "Make the definition section of the wb/wf create section editable" 2017-04-19 09:55:36 +00: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
Sharat Sharma
16985029f6 Change the Next button to Validate
In Workbooks -> Create Workbook, when we choose “Direct input” for
“Definition source” field and enter a workbook definition it
proposes to click “Next” button and then on the next screen we
finally see “Create” button. If clicking “Next” does validation
then it is not obvious for the user. So, change the button to
"Validate".

Change-Id: I5a795c08a3b7252f330d976204238a7d27539770
Closes-Bug: 1648390
2017-03-31 07:06:26 +00:00
Rajiv Kumar
ac86dfc55c Removed unnecessary utf-8 encoding
Change-Id: I8195c77f1da137877346f3dc395f71b42cd33086
2017-01-11 08:36:15 +05:30
Sharat Sharma
0bcc4a975d Added links to DSL docs in create/update views
Added links to Mistral DSL docs in the following views
* Create Workbook
* Create Workflow
* Update Workbook
* Update Workflow

Change-Id: Iaa2fbe89b6c82423e068c5ed7dc5fd1379f378b2
Implements: blueprint mistral-dashboard-add-doc-links-in-create-views
2016-12-20 10:57:07 +00:00
Gal Margalit
2a54532154 mistral-dashboard: added action executions screens
* Added 3 new action executions screens: index, overview, and update dialog
 * Added "type" attribute to task screens, followed by a corresponding link
 * Fixed breadcrumbs issue in detail screens following Horizon Newton change
 * Added state label design to detail screens
 * Added design to boolean fields

 * Screenshots: http://pho.to/AXApU

Implements blueprint: mistral-dashboard-action-execution-screens
Implements blueprint: dashboard-detail-screens-improvements
Partially implements blueprint: refactor-execution-link-in-task-executions-screens
Closes-Bug: #1642246

Change-Id: I4c270b2b23d548d4e1cb7e8507e804e44e27c88f
2016-12-06 10:46:15 +00:00
Cao Xuan Hoang
96bee8d9cc Clean imports in code
This patch set modifies lines which are importing objects
instead of modules. As per openstack import guide lines, user should
import modules in a file not objects.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I68edb2a90c560b9c485ec4832af65c777e6e7b6c
2016-09-08 15:26:06 +07:00
Jenkins
22818f5a83 Merge "Update URLs to Django 1.8 style" 2016-02-16 17:30:38 +00:00
Jenkins
eede6abcc8 Merge "UI: Actions screen improvements" 2016-02-16 17:27:58 +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
zhangguoqing
5c622043ab Update URLs to Django 1.8 style
django.conf.urls.patterns() is deprecated since 1.8.
We should not use patterns(), so this patch updates URLs to
1.8 style.

Change-Id: Ida48baed98da4aeabdfdfc2f02b21bc588311161
Closes-Bug: #1539354
2016-02-10 13:20:28 +08:00
hardik
cc7f946ece Changed titles of modal forms.
Modal forms titles has been changed for
"Create Workbooks", "Update Workbooks",
"Create Workflows" and "Update Workflows".

Change-Id: I72abddf71a5704dcaee39b37159035163219cdfa
Closes-Bug: #1505570
2015-09-27 10:05:32 +05:30
Zhenguo Niu
b7cf70b2ce Add tables filter action support
This patch adds the ability to filter tables by specified
string.

screenshots:
http://pasteboard.co/2Q1GyCie.png

Change-Id: I1c4577f0f324d0865e5b4fb16df4767a39b40733
Closes-Bug: #1485827
2015-08-25 16:23:34 +08:00
Zhenguo Niu
91fd3a47bd Add unit tests for workbooks
Partially implements blueprint mistral-dashboard-ut

Change-Id: I0997cbef51d9a014b9d620eb12d1e00295e8a943
2015-08-14 15:35:44 +08:00
Zhenguo Niu
8e1ddfabc4 Add update workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I84b44a5d33718ddef6ac64dcd4fe59f2d1ee914c
2015-07-20 16:48:02 +08:00
Jenkins
d7f8564083 Merge "Add delete workbook support" 2015-07-16 16:21:54 +00:00
Jenkins
e833d49e87 Merge "Add create workbook support" 2015-07-16 16:21:49 +00:00
Zhenguo Niu
a99d302725 Add delete workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Ifde0de4542f01452cf201f785edfae2f63a4cf4d
2015-07-15 15:53:05 +08:00
Zhenguo Niu
9235096427 Add create workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: If6bcf09e1f3269e8b1a9ad7c7e98a692e7656682
2015-07-15 15:07:50 +08:00
Zhenguo Niu
ea6d14f99c Remove H101, H803, H238 from ignore list
Enable H101 check,
H803 was removed from hacking,
Fix H238 errors and enable the check.

Change-Id: Ifa69d18bb1ee54f7b42c6a281d76dc720e2043ba
2015-07-14 21:52:56 +08:00
Zhenguo Niu
5de33e6fa5 Show workbook definition
Add a link to workbook name field to show the definition.

Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Iabf0632282840f25466810c597e8810aacfa15ea
2015-07-10 16:54:36 +08:00
Zhenguo Niu
c14116a7eb Refactor workbook table fields
Remove description field since there's no such attribute on
workbook, also add created and updated fields.

Change-Id: I0805402c15dfef9d0400f05b525c83f2090584c4
Closes-Bug: #1471777
2015-07-09 17:42:48 +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
Kirill Izotov
bb03d06ebe Modify to use API v2
Change-Id: Iacaab88d7ce8618aa7331e8cb7f23c69191e5f49
Implements: blueprint mistral-ui
2014-09-15 14:57:59 +07:00
Kirill Izotov
744309b2e1 Horizon plugin system compatibility
- added enabled script
- removed horizon from requirements
- updated README
- refactor folder structure

Change-Id: If3fb4eddec26c5817cb0971eb7c4fe2ebb5641f3
Implements: blueprint mistral-ui
2014-06-23 14:54:57 +07:00