Commit Graph

222 Commits

Author SHA1 Message Date
Zuul 27fe8009b5 Merge "Use wf_identifier when creating a execution" 2023-02-07 18:59:27 +00:00
Zuul df869fdf60 Merge "Revert "Use workflow_id when creating a execution"" 2023-02-07 18:59:25 +00:00
Tobias Urdin 3f57545479 Use wf_identifier when creating a execution
The parameter in mistralclient was changed from
workflow_identifier to wf_identifier.

Change-Id: Idae13cd39c909127a0772e970426c98235e8a993
2023-02-07 13:41:01 +00:00
Tobias Urdin 1f33d6ec68 Revert "Use workflow_id when creating a execution"
This reverts commit 728b294add.

Reason for revert: This should be wf_identifier because it's using mistralclient and not the REST API.

Change-Id: I71e154f53f26655e9d1aeb93b0ee9d1ac21f0f49
2023-02-07 13:39:09 +00:00
Zuul 8edaafe2c3 Merge "Replace deprecated inspect.getargspec" 2023-02-05 21:58:45 +00:00
Tobias Urdin 728b294add Use workflow_id when creating a execution
The field workflow_identifier causes an exception
in the API and in Wallaby the API was moved to
using workflow_id.

Change-Id: I328ce3584f225dc47264a9cba10be7ca788b8e5b
2023-01-25 17:41:15 +00:00
Zuul a08b56b760 Merge "Enforce usage of raw definitions" 2022-08-12 10:02:14 +00:00
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
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
2021-09-05 20:46:13 +09:00
Takashi Kajinami e94c2b3d34 Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Change-Id: I2f5c95b9dd00a2460e81788343c47a5206589693
2021-07-15 20:37:55 +09:00
shubham 7fd7c820d1 Setting DEFAULT to False.
In openstack when user logged in, user is redirected to project page
but after installation of mistral , now default dashboard page is
set to mistral.
In order to make project as default dashboard page setting
DEFAULT as False.

Change-Id: I663149cc4986f5c1ca83a819eb10bf484baa228a
2021-02-18 08:53:07 +00:00
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
2021-02-16 18:06:05 +00:00
Zuul 4a80f08352 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-02 07:13:35 +00:00
manchandavishal c9e8d95c09 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
Closes-Bug: #1886296
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Story: #2007865
Task: #40196

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
Change-Id: I29eae255a0cb87c41d1d739e3bb608c303c5b9b8
2020-09-01 16:19:30 +00:00
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
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
2019-09-18 23:00:14 +07:00
Zuul ee3680a4d6 Merge "Remove redundant exception handling" 2019-09-12 05:15:07 +00: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 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
2019-07-01 11:09:19 +08:00
Zuul 9f1a186c74 Merge "Add the unit test for executions" 2019-06-27 10:22:28 +00:00
Zuul f9f2881ff2 Merge "Add the unit test for cron_triggers" 2019-06-27 10:22:27 +00:00
Zuul ce95be2d5f Merge "Remove the ErrorHandleTests class" 2019-06-27 10:20:38 +00:00
pengyuesheng a7d67256c9 Remove the ErrorHandleTests class
ErrorHandleTests is not being used, so remove it

Change-Id: Ib0774e90a202e46213cbe733333c2e675d02fc91
2019-06-26 11:08:50 +08:00
pengyuesheng 5d1f9ab4c0 Modify the name of action_executions panel
Change-Id: I9ae90abc4945b6600582a443a2726cfc405b1084
2019-06-26 10:30:23 +08:00
pengyuesheng e5b94ec93b Add the unit test for executions
Change-Id: I89145b7bb71cbcb74c7a29534362bbf0c558a5f7
2019-06-25 13:57:20 +08:00
pengyuesheng b7d63224ee Add the unit test for cron_triggers
Change-Id: Ic792830a679a14b9a349ad1a07349575999a72c5
2019-06-25 10:48:33 +08:00
Zuul 37e16b2753 Merge "Add the unit test for create and update action" 2019-06-24 08:47:19 +00:00
pengyuesheng b7a408a19b Add the unit test for update_action_execution
Change-Id: I73464cbb8d561ad2d9b30c976fc7afaba6a8b300
2019-06-24 10:48:29 +08:00
pengyuesheng 293cf1cc35 Add the unit test for create and update action
Change-Id: I05dc7bacaa155d7c1deae97e3c7e9786f7bc177d
2019-06-24 10:12:17 +08:00
Zuul 63f404e38c Merge "Add the unit test for action_executions detail" 2019-06-21 05:34:03 +00:00
Zuul 050a8d0838 Merge "Add the unit test for executions detail" 2019-06-21 05:19:04 +00:00
Zuul 3b1728d02b Merge "Add the unit test for tasks detail" 2019-06-21 04:32:08 +00:00
Zuul 770d19fce0 Merge "Add the unit test for workbooks detail" 2019-06-21 04:32:08 +00:00
Zuul e7def38207 Merge "Add the unit test for workflows detail" 2019-06-21 04:32:07 +00:00
pengyuesheng 386525516a Add the unit test for executions detail
Change-Id: Ib2d9edd1b554935c4b1171db09065999403dc51f
2019-06-21 12:30:27 +08:00
Zuul b38d6806eb Merge "Add the unit test for cron_triggers detail" 2019-06-21 04:24:31 +00:00
pengyuesheng e0a972f70e Add the unit test for workflows detail
Change-Id: I45eafaed7053444314cb1dc99de4fd903698c217
2019-06-21 10:42:47 +08:00
pengyuesheng 21663e507e Add the unit test for workbooks detail
Change-Id: Idd8a862f396d8edcf26a7e4ba066946ec5f80aa3
2019-06-21 10:37:17 +08:00
pengyuesheng c4fd4d8e64 Add the unit test for tasks detail
Change-Id: I185fc97d5da6d7686707138b10799a2d2986a7d3
2019-06-21 10:29:21 +08:00
pengyuesheng bcc743e559 Add the unit test for cron_triggers detail
Change-Id: I0b63595ff975e08b2e82ed32fbf34d0bc03baf9c
2019-06-21 09:31:52 +08:00
pengyuesheng 8bceb199d6 Add the unit test for action_executions detail
Change-Id: I4bc34845cdf33869e840659e9c4138019d6c3575
2019-06-20 17:11:53 +08:00
pengyuesheng d1df6b3998 Add the unit test for actions detail
Change-Id: Iafe4d0459b4e89111f63e594f00163419dfdfc70
2019-06-20 16:53:04 +08:00
pengyuesheng 6726cee3b3 fix the Bug of test in workflows panel
Change-Id: Icc99fb89c2b500bd3ce6fce1c610bacd5599abc6
2019-06-17 14:06:55 +08:00
Zuul a6f7d3f8fb Merge "fix the Bug of test in tasks panel" 2019-06-17 04:11:30 +00:00
pengyuesheng 8dab9d1c34 fix the Bug of test in workbooks panel
Change-Id: I7282eb58da3fab8361674715ade8361416101dea
2019-06-17 11:16:10 +08:00
pengyuesheng 268c542218 fix the Bug of test in tasks panel
Change-Id: I98e865cd9ba20d44f1461007718db2b0a6624182
2019-06-17 10:24:35 +08:00