Commit Graph

23 Commits (master)

Author SHA1 Message Date
Zuul c3daa34c60 Merge "Address RemovedInDjango40Warning" 10 months ago
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
11 months ago
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
1 year ago
manchandavishal f5473fc236 Fix gate jobs
This patch update the following:
* add ignore_basepython_conflict = true in tox.ini file.
* replace horizon tarballs dependency with constraints file.
* update hacking version to latest 4.0.0 version.
* fix pep8 warnings.

Change-Id: If0275b78f9084e314e6a69e267a79fc4472c0dfe
2 years ago
pengyuesheng 773b34937c Remove redundant exception handling
Some interfaces have been treated abnormally in [1] and [2],
The exception has been processed using handle_errors,
there is no need to do additional processing later.

[1] https://github.com/openstack/mistral-dashboard/blob/master/mistraldashboard/api.py#L358-L365
[2] https://github.com/openstack/mistral-dashboard/blob/master/mistraldashboard/api.py#L347-L355

Change-Id: I0dd4709072e23615054d4c8511f0766bab3a62ea
4 years ago
pengyuesheng 5d1f9ab4c0 Modify the name of action_executions panel
Change-Id: I9ae90abc4945b6600582a443a2726cfc405b1084
4 years ago
pengyuesheng b7a408a19b Add the unit test for update_action_execution
Change-Id: I73464cbb8d561ad2d9b30c976fc7afaba6a8b300
4 years ago
pengyuesheng 8bceb199d6 Add the unit test for action_executions detail
Change-Id: I4bc34845cdf33869e840659e9c4138019d6c3575
4 years ago
pengyuesheng 9e7b4bc804 fix the Bug of test in action_executions panel
Change-Id: I974f2551bde4c041eb39fd468eb182e0d23f4286
4 years ago
pengyuesheng 3be30d09d7 The columns out of page range
Too many columns in the table, resulting in out of page range,
affecting the appearance.
Some information can be seen on the details page,
I think it can be deleted from the table.

Change-Id: Id3b45726f14087088767c5171b14fd8ec12da9ef
4 years ago
Zuul a0bdee0e94 Merge "Indent four spaces" 4 years ago
pengyuesheng 7dc4afb3b9 Change action_execution to action_executions in url
Change-Id: I14ab5578cd6d4e027833f798871bd68e67627e5e
4 years ago
pengyuesheng f820ab442e Indent four spaces
Change-Id: I73ed4e24f16b702cd39a1ee57cadade091693d20
4 years ago
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
5 years ago
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
6 years ago
Sharat Sharma 9f12b2d99c Fix "Workflow" section of "Action Execution Details" view
Change the Workflow Execution section to Workflow in the Action
Execution Details view.

Change-Id: I753685d2587bd49c83b8b9b7a8f5798f007e4875
Partial-Bug: #1648433
6 years ago
sanu madhavan 962603c0e2 Add test for mistral-dashboard action_executions
Change-Id: I9bab10cd5cae33909ea0cbecd695fb93675041ed
Closes-Bug: 1667939
6 years ago
Jenkins ba7c0111b8 Merge "Task table - type column would refer to workflow executions accordingly" 6 years ago
Rajiv Kumar ac86dfc55c Removed unnecessary utf-8 encoding
Change-Id: I8195c77f1da137877346f3dc395f71b42cd33086
6 years ago
Gal Margalit 696c330f28 Task table - type column would refer to workflow executions accordingly
* Task table - type column would refer to workflow executions accordingly
* Fixed django wrong url params (no logic changed, just better code)

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

Partially implements blueprint: refactor-execution-link-in-task-executions-screens

Change-Id: I70e7ba1f8a6595d15f30cee3f4f17db4d246a34e
7 years ago
Gal Margalit 907cb4de54 Fixed: Dashboard: "Run action" functionality doesn't work
Change-Id: I1ebd9f612957aaaaf864ea6befdff5e5a459b160
Closes-Bug: #1648420
7 years ago
Gal Margalit 91fac9f1b1 mistral-dashboard:fixed boolean field design bug
* boolean field design - removed the false check from detail screens,
  it is actually a bug: false is a valid value - and has a matching
  design.

Change-Id: Ifbec1757026f69abe6035ca35d0275c534e09b71
7 years ago
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
7 years ago