Commit Graph

48 Commits (master)

Author SHA1 Message Date
Zuul a08b56b760 Merge "Enforce usage of raw definitions" 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
Takashi Kajinami 8b876b0b22 Enforce usage of raw definitions
This change ensures that any definitions passed is treated as raw
contents. With this change mistral-dashboard no longer tries to load
contents based on file path or uri passed in by users, and this
prohibits access to any local files or any internal contents accessible
without authentication.

Depends-on: https://review.opendev.org/800950
Closes-Bug: #1931558
Change-Id: I4de45cadc4e174794d0c2ef82223a9da5cbdcabc
2 years ago
Bo Tran 538fc12dff Fix error when use keystone federation
If we config keystone federation, we was received a error when
we change to region other.

Change-Id: Ie475b8ab5b40d5b365eeb9f63ecb34b13a810f8c
4 years ago
pengyuesheng f154594d0e Correct error messages on update action execution form
When update action execution fails,
two prompt messages are displayed,
one successful and one fails.

This patch Correct error messages

Change-Id: I7001106d804e893e10726695956c9db519fa22f8
4 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
6 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
Gal Margalit ba78e5d2f6 Fix [ui] Actions screen pagination supports only descending order
* fix action pagination order - added reverse flag,
  same mechanism in horizon glance code.

Change-Id: Ibe7c2c5196c330c49dce42347c38721c176c17ab
Closes-Bug: #1546021
7 years ago
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
7 years ago
Gal Margalit 40222407bf UI: table pagination logic encapsulation
* following https://review.openstack.org/#/c/266826/ suggestion: API requests
  that required UI pagination will be passed via generic handler.
* At first I've written a decorator - which I didn't like,
  feel faulty by design - too many returns and over complicated blocks...

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: Ie131bf74a74b816d2779888c6c23e7bcfa4b8f22
7 years ago
Gal Margalit 10a31bdb7a UI: Cron trigger create modal
* Added cron trigger create modal

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

Partially implements blueprint: mistral-dashboard-cron-trigger-screen

Change-Id: I80449534b5e1ce35b9f60b1d3160550933297345
7 years ago
Liat Fried e93c979197 Mistral-dashboard: Actions screen
Added “Run Action” screen to each row
which allows of a specific action execution run.

Added "Filter Action" to actions list.

Print screen
http://pasteboard.co/vRURv4E.png
http://pasteboard.co/VqKFjEw.png

Partially implements blueprint: Actions-screen-improvements
Closes-Bug: #1505665
Change-Id: I359b402bbb60defe40112c7c95c7e18351277107
7 years ago
Gal Margalit c56d137a90 UI: Cron Trigger screens - list and overview
* Added new Cron Trigger screens
  - main list
  - detail overview

Screenshots:
 http://pasteboard.co/rPZIMnT.png
 http://pasteboard.co/rPX6730.png

Partially implements blueprint: mistral-dashboard-cron-trigger-screen

Change-Id: I69f8b143f6ab4ca91f860e66b34471542cbdb6dd
7 years ago
Gal Margalit 87a74ece9d UI: Execution pagination on client side
* added execution list
  client side pagination
  which rely on the server api
* both next and previous iteration
  are supported
* items per page are coherent to
  user settings

Screenshots:
http://pasteboard.co/2p5A512S.png
http://pasteboard.co/2p5Cd1qW.png

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: If13482d8fe62e4989dd1a62874c88c08c3e43d54
8 years ago
Gal Margalit 936548c1e5 UI: Execution update - table actions
* added table action buttons to pause resume and cancel execution

Screenshots:
http://pasteboard.co/2benOWcT.png

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: I3b0b475f7e9e24f90396d145c453544cfcfe71ac
8 years ago
Jenkins 248493475f Merge "Add delete action support" 8 years ago
Jenkins 7786a7fa51 Merge "Add update action support" 8 years ago
Jenkins 4dff66faa1 Merge "Correct wrong argument name in workbook_delete()" 8 years ago
Jenkins 6711c2747a Merge "Added execution get method to mistral-dashboard api" 8 years ago
Zhenguo Niu c6cbb0322d Correct wrong argument name in workbook_delete()
Change-Id: Iccec4c3b6c8700a1d88db60851b1c2c288046117
8 years ago
Zhenguo Niu 9dc6b9ea7f Add delete action support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Iceda724d771df567c82180e44200fe60c4e88153
8 years ago
Zhenguo Niu 386f8342a6 Add update action support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I11241c2c5b8dd3e0f1115cf8bd7df160b7437f82
8 years ago
Zhenguo Niu 9f5ea7c56c Add create action support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Ibb45f55e72ab37c3942a165b7f9a51522ce75d26
8 years ago
Gal Margalit d407766b05 Added execution get method to mistral-dashboard api
* added execution get method to mistral-dashboard api

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: I290558b2e44f9cdcff43596b62d88341009a8730
8 years ago
Zhenguo Niu c85c3a6bbe Show Action definition
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Ib275d2fb772278d081af69c56dca9d78c46c127c
8 years ago
Zhenguo Niu c4822e3314 Add actions panel
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I943c11c63dd5f12df82058a10bfd015d50d41d8c
8 years ago
Jenkins 054f579494 Merge "Add update workbook support" 8 years ago
Gal Margalit 1846ea19fc Added delete button to execution screen ui on mistral-dashboard
* added delete button to execution screen ui

Partially implements blueprint: mistral-dashboard-executions-screen

Change-Id: I12b28f46a89ba5188fba5d5b2aa8534e46505ac2
8 years ago
Zhenguo Niu 8e1ddfabc4 Add update workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I84b44a5d33718ddef6ac64dcd4fe59f2d1ee914c
8 years ago
Jenkins a11b32a216 Merge "Show task result when click the id" 8 years ago
Jenkins c31b6afc45 Merge "Add update workflow support" 8 years ago
Jenkins d7f8564083 Merge "Add delete workbook support" 8 years ago
Jenkins e833d49e87 Merge "Add create workbook support" 8 years ago
Zhenguo Niu a400d1997b Show task result when click the id
Change-Id: I03f9892e4f9c89c658a84f973c984fea2e0849aa
Closes-Bug: #1471784
8 years ago
Zhenguo Niu a99d302725 Add delete workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Ifde0de4542f01452cf201f785edfae2f63a4cf4d
8 years ago
Zhenguo Niu 85a20944cc Add update workflow support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: Idcd728fd5788ff126026628899c3c232eee8470f
8 years ago
Zhenguo Niu 9235096427 Add create workbook support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: If6bcf09e1f3269e8b1a9ad7c7e98a692e7656682
8 years ago
Zhenguo Niu b4b3edad18 Add delete workflow support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I335cb97aa5bff2c2eca75cd39e81dc62b4a3a534
8 years ago
Zhenguo Niu d01d6206cf Add create workflow support
Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I55a5ea17acbb1ef0b8290d7f7317337134954b76
8 years ago
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
8 years ago
Zhenguo Niu 39da85ad29 Show workflow definition
Add a link to workflow name field to show the definition.

Partially implements blueprint mistral-dashboard-crud-operations

Change-Id: I02aacd2db80c4a3edd721fb39e016af52040ecbb
8 years ago
Zhenguo Niu f330cca03b Reduce API client object in a request
Mistralclient is created every time methods in api.
It leads to regeneration of API HTTP connections.
This commit caches API client object for a WSGI request
to reduce the number of HTTP connection to backends.
As WSGI request object is recreated, a cached API client
object will live in a single request.

Change-Id: I46f101505801f8d650722c9c84397ab4d813e097
8 years ago
Zhenguo Niu 307cde8cd8 Add handle_error decorator to API calls
It wraps the original method in a try-except block, with horizon's
error handling added.

Change-Id: Id6f7001a6d77f4ba0c0ca8fa62801d6007266bd3
8 years ago
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
8 years ago
Zhenguo Niu c9375086d5 Switch to v2 mistral api
Mistral v1 api is not supported since april 2015

Change-Id: Icfc7d511b5bb6ea1f36356e52dc6880ef8599951
Partially implements blueprint mistral-enrich-dashboard
8 years ago
Renat Akhmerov f928ac885e Making style changes and adding AUTHORS file
Change-Id: I3238253e03d9f80975c65a3efc84bd202b338815
9 years ago
Kirill Izotov bb03d06ebe Modify to use API v2
Change-Id: Iacaab88d7ce8618aa7331e8cb7f23c69191e5f49
Implements: blueprint mistral-ui
9 years ago
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
9 years ago