Commit Graph

100 Commits

Author SHA1 Message Date
Corey Bryant d956d059f9 Django 4.x: Replace removed features
force_text(), ugettext_lazy(), ungettext_lazy(), urlquote_plus()
and is_ajax() are removed in 4.0.
https: //docs.djangoproject.com/en/4.0/releases/4.0/

Co-Authored-By: manchandavishal <manchandavishal143@gmail.com>

Change-Id: I9e43926cc3011b8b7321bbec59bebe915502eb4a
2022-12-01 23:05:33 +05:30
manchandavishal 1c1dac9aa6 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 .

Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I4e0f50b95b7c94cf641fc778268b6c4c1267175c
2020-08-28 15:18:14 +00:00
zhurong f91d017789 Remove six
Change-Id: I15ab42b44fbc40a66a52d1fd16087ee18c8b0494
2020-04-21 05:53:26 +00:00
zhurong 673f501fc9 Using six to fix python2/3 compatible
Change-Id: I405284808be78082e96d077ba11a59534affba12
2019-03-12 09:28:26 +08:00
zhurong 87f1b5b658 Django 2.0 support and fix lower-constraints tox env
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.
And update the lower-constraints.

Co-Authored-By: Akihiro Motoki <amotoki@gmail.com>
Co-Authored-By: Ellen Batbouta <ellen.batbouta@oracle.com>

Change-Id: I3456162c934eb48ccf180d80b5cf7ff5614221c0
2018-06-13 12:03:55 +00:00
Aaron 4dea571014 Removed inline_edit functionality for tables
Horizon remove the inline_edit, So murano-dashboard should remove it too.
And this cause murano-dashboard tests failed.

Change-Id: I1a0e23255de3c620a2976c1a9043f26df21a9a57
2018-04-20 13:54:24 +08:00
Jenkins 7b1b801e60 Merge "Add table_actions_menu for Environments Table" 2017-07-17 21:44:12 +00:00
zhurong c5a7fa2f4f Add table_actions_menu for Environments Table
Now there are too many actions for the Environments table,
we can use table_actions_menu fuction to add some of the actions to the
More Actions menu, this can reduce the lenth of the table actions.

Change-Id: If1dd94f737f2e893e5d40492b1f8a65d5fc81d36
2017-07-11 14:45:08 +00:00
Jenkins ad38530be3 Merge "Fixes Deployment History page incorrectly formatting status." 2017-07-11 00:28:12 +00:00
zhurong b9ea284b96 Fix KeyError in deployment history page
use package name as the service name when service have no name.

Change-Id: Ib7585b2c8742dde7c1c0a350db48dee96d1ad0a8
Closes-bug: #1703180
2017-07-09 19:32:37 +08:00
zhurong 31b7a5dcc3 Fixes Deployment History page incorrectly formatting status.
Currently, the all Deployment History page always adds a
red underline underneath every status table
cell, even for those in a non-error/non-warning status.
The red underline should only appear for error/warning status.

This patch ensures that only error/warning status has the red underline.

Change-Id: I606162174bd02da1851d03c303f6fd755ddf1563
Closes-Bug: #1703187
2017-07-09 18:05:22 +08:00
Felipe Monteiro 9f72d2fb19 Improve log browsing for deployments.
Added new view for browsing through all deployments for all
environments in a tenant.

Change-Id: I64bce83be69a22e52994b7f51b96f3bdafbc6867
Partially-implements: blueprint improve-deployment-log-browsing
Closes-Bug: #1497261
Depends-On: I80c02a8cfd82260f097474bb512f693aa6734655
2017-04-24 20:01:14 +01:00
Felipe Monteiro 8a10c6a62f Fixes Deployment History tab incorrectly formatting status.
Currently, the Deployment History tab in the environment details
page always adds a red underline underneath every status table
cell, even for those in a non-error/non-warning status.
The red underline should only appear for error/warning status.

This patch ensures that only error/warning status has the
red underline.

Change-Id: I641cb7fbeb4bf2987c0a582a8da138e676aea7eb
Closes-Bug: #1654896
2017-02-07 10:02:09 -05:00
Timur Sufiev 87cf0e7dae Fix passing session id to Update Metadata link in Env and Comps tables
Change-Id: I7ce67563c216956d166547d853b154e75352dd9a
2016-12-13 13:11:37 +03:00
Felipe Monteiro 4dbf729fbd Fixes TypeError thrown by UpdateServiceRow.update_cell.
Change-Id: I0888adbcb127eea432bb2e3a11e64c5b46d5bf14
Closes-Bug: #1637568
2016-10-31 20:22:41 +00:00
Alexander Tivelkov 6d40d87987 Ability to assign metadata to Murano Applications and Environments
Applications deployed in Murano Environments can now be assigned with
metadata attributes which are passed to their object model as a
"metadata" block in their ?-header. A standard metadata assignment
modal dialog is utilized for this purpose.

Same action and dialog is available for Murano Environments as well.

Implementation adds a horizon-hosted rest API which handles requests
from Angular-based scripts and forwards them to murano-api.

To properly support the new api in metadata modal dialog a Horizon
core metadata service is decorated during the configuration of murano
module (explicitly added in enabled/_50_murano.py). This allows us to
reuse the latest version of upstream metadata service and put
murano-related calls on top of it.

Co-Authored-By: Timur Sufiev <tsufiev@mirantis.com>
Change-Id: I348629aedc3e9731616a53d731c33fb442ee12ec
Targets-blueprint: metadata-assignment-and-propagation
2016-10-07 14:54:52 +00:00
Kirill Zaitsev 67223ea1f0 Rename 'murano' dashboard to 'app-catalog'
Before this commit murano used 'murano' as the name of it's dashboard.
This is too specific and contradicts with general practice of naming
dashboards after the names of the service.
This also prevents us from re-using the same dashboard in
murano-dashboard and app-catalog-ui

Targets bp: catalog-dashboard-reorg

Change-Id: I3df3865f6bf82626325e66120c408552260c7e2b
2016-09-06 12:46:46 +03:00
Jenkins 900c22b469 Merge "Fix create/delete/abandon environment redirect_url" 2016-09-06 09:43:57 +00:00
Jenkins 88a9d4afd2 Merge "Using WrappingColumn to prevent long names breaking table layouts" 2016-09-05 18:46:14 +00:00
zhurong ce5c8e397d Fix create/delete/abandon environment redirect_url
Now create/delete/abandon environment redirect_url using
"horizon:project:murano:environments", will cause the
NoReverseMatch error. This patch fix it.

Closes-Bug: #1616697

Change-Id: I27a25f6d2f8854df1cc19a783dabf2717e6e513a
2016-09-01 10:01:12 +00:00
zhurong 9d7f30eef8 Using WrappingColumn to prevent long names breaking table layouts
Now WrappingColumn was introduced in Horizon, So we can using this
to prevent long names breaking table layouts.

Closes-Bug: #1618961
Change-Id: Ic5db239752a147c364823ed9fcd192181098f976
2016-08-31 19:24:55 +03:00
Jenkins 16b20bbf11 Merge "Using rbac policy for environments panel" 2016-08-30 15:38:15 +00:00
Jenkins c82809ba9d Merge "Separate internal MURANO_REPO_URL and DISPLAY_MURANO_REPO_URL" 2016-08-29 14:12:24 +00:00
lvdongbing 0eceafb448 Separate internal MURANO_REPO_URL and DISPLAY_MURANO_REPO_URL
The repo url in dashboard is not found, since it used the same url with
internal repo_url. This patch separates internal repo_url and display
repo_url.

Change-Id: I600f32a02814eacf2a920763ee9f70ce37b57ab8
Closes-Bug: #1542776
2016-08-29 03:45:41 +03:00
zhurong 8af6b385dd Using rbac policy for environments panel
Using rbac policy for environments panel and table action.

Change-Id: Ia67477f72501f9fc05b94624a8b3f4d9d52d8bdb
Depends-On: I3e6aec8e1cbe57cb80e6d1b8df012f5047aad511
Partially-Implements: blueprint murano-dashboard-rbac
2016-08-26 17:45:13 +08:00
Jenkins 655663cd29 Merge "Honor title of Action in murano dashboard" 2016-08-16 11:37:46 +00:00
Snihyr Kostyantyn 83fd44d625 Honor title of Action in murano dashboard
Title of action can be declared via io.murano.metadata.Title:text
metadata. If metadata not attached to Public method, Action name
used as Action.title, this commit backward compatible.

Change-Id: Ie79898678e9d0b677ffe7e530221591bb8aa2143
Partially-implements: blueprint muranopl-forms
2016-08-15 20:44:59 +03:00
Valerii Kovalchuk c30ae0e06e Fix allowance of Deploy environment action
Previously action's allow() method didn't consider situation when
component was deleted from deployed environment as the valid case
to show the button. This patch fixes that by simply checking
env's status to be 'pending' or 'deploy failure'.

Change-Id: I40d62d4fcb620e7f2ffc515884c755abf6b8421c
Closes-bug: #1594354
2016-08-15 16:55:23 +00:00
Jenkins 495c6c7d59 Merge "Disable action buttons according to the statuses of environments" 2016-07-23 20:22:47 +00:00
Valerii Kovalchuk f719229431 Disable action buttons according to the statuses of environments
In environments list view, action buttons are only clickable if
all checked environments have appropriate status to run this
action.
Page reload after environment status change is added to refresh
displayed buttons.
Selenium tests to check buttons availability are added.

Change-Id: Iae50fb87697c3fa745e412f1cab50dc0da9d981b
Closes-bug: #1593292
2016-07-12 17:04:46 +03:00
Jenkins d8d76e4489 Merge "Use template filter to convert list of packages in the template" 2016-06-21 05:36:47 +00:00
Jenkins 02fd0fdafb Merge "Added a warning message if environment name is empty" 2016-06-17 10:12:23 +00:00
Jenkins 8cb2151f37 Merge "Fix message for environment deploy action" 2016-06-09 23:28:11 +00:00
Tetiana Lashchova f5d9fe7c46 Fix message for environment deploy action
Change-Id: I206b2846a5eb9d05f93a4d0c8fa0dbdab10bb299
Closes-Bug: #1578306
2016-06-06 16:02:05 +00:00
Valerii Kovalchuk 7e5121b465 Change "Deploy Environment" button
If environment already has deployed services, and new ones are
added, button "Deploy Environment" changes to "Update
Environment". It removes confusion for the user who might think
that the whole environment will be redeployed from scratch.
For deployment of multiple environments at once the button is
still called "Deploy Environments" in any case.

Change-Id: I6bb4b563e11ce32da0ce5dde00dd32ad6e38f299
Closes-bug: #1392874
2016-05-25 14:09:50 +03:00
Jenkins 99b82e86be Merge "Add ability to manage several environments at once in dashboard" 2016-05-24 15:17:43 +00:00
zhurong d5f9bce3f3 Added a warning message if environment name is empty
Adding required=False to the environment name form allows it to call
update_cell when it has been left empty. Added logic to update_cell
to check if the form is empty or contains only whitespace and issue a
warning if true and only if the form in question is called 'name'.

Change-Id: I60eb475574be7713807fd0f5548a64b1f8c890c7
Closes-Bug: #1571663
2016-05-24 01:59:19 -04:00
Kirill Zaitsev b7a6a23344 Use template filter to convert list of packages in the template
Before this patch _data_table.html checked string
representation to check if the list is empty.

This patch adds jsonify filter and moves actual jsonification into
template, thus eliminating the need to compare string representation of
lists.

Change-Id: Iddf6ab7c8cff1d1dff98badbd117200e9d3b22e7
Closes-Bug: #1584802
2016-05-23 17:27:41 +03:00
Valerii Kovalchuk 70a0cfbbea Add ability to manage several environments at once in dashboard
Patch makes it possible for user to select several environments and
execute one of the three actions to them: delete, abandon or
deploy.
Tests to check new functionality are added.

Change-Id: I2b395cc2ed80a59d39eb984c920f83ac6b687572
Closes-bug: #1582193
2016-05-23 12:04:35 +03:00
zhurong 3de1c425e1 Trival: Add icons for DeployEnvironment and DeployThisEnvironment
Trival fix: Add icons for DeployEnvironment and DeployThisEnvironment

Closes-Bug: #1583867
Change-Id: I805c9969a7999d47efb7e276d83e8354ecf3b371
2016-05-19 22:39:40 -04:00
Akihiro Motoki 12f232699b i18n: Use new way to define action_present/past
In Kilo or Liberty cycle, the way to define action messages in
horizon BatchAction was changed for better translation support
(pluralization and better word order control).
The previous way with data_type_singular/plural is deprecated.
This commit cleans up the deprecated usage.

Change-Id: Icbb75710ac7e7c9c97a6198a28d02583c37136d7
2016-03-12 21:25:48 +09:00
Kirill Zaitsev 4a4bb14c11 Restore multi_valued=False to relevant tables
Change-Id: Iaa8c0cd260ca0ce8bdb92f65e2acdd319a5afb24
Depends-On: I665df75fe09da149c5401620df188f738845a016
Closes-Bug: #1555705
2016-03-10 23:45:20 +03:00
zhurong 94b0c092ed Fix broken dashboard tables
Due to this patch: https://review.openstack.org/#/c/246625/, Horizon
changes the table styles. This broke murano-dashboard tables.

This patch fixes the following:
1 Fix package, images, categories, environments table looks broken
2 Fix import package descriptions displayed
3 Removes unicode symbols from README to unlock py34 gate
4 Comment out the 'multi_select=false' to pass the ci test
5 Dixed broken tests

Co-Authored-By: Kirill Zaitsev <k.zaitsev@me.com>

Change-Id: I802aaa89021b5f20805a498ad2a17ba73c076bed
Closes-bug: #1552702
Closes-bug: #1550822
Closes-bug: #1554317
2016-03-09 14:16:23 +03:00
zhurong 4b7846ae4a Remove environment name restrictions
Since we don't use environments and environment templates names during
deployment process we don't need to check what is the name of the
environment. Now we should only keep it human-readable and check that
it exists.

Change-Id: I2d665b41deebf0c008d8b2b71802a1ab2c6673e8
Closes-Bug: #1405788
2016-01-28 05:06:55 +00:00
Jenkins fac66c53b3 Merge "Fix the run_test unchecked pep8 W503 errors" 2015-12-10 14:31:52 +00:00
Ekaterina Chernova 5943b4dc9c Use iso time filter for time occurrences
Previously custom modifications were made
to improve time output format.

Change-Id: I19a625bcd080facb49932d7754344d2f28433565
Closes-Bug: #1503293
2015-10-06 16:59:12 +03:00
Ekaterina Chernova 2c66c3f43d Fix links on env details package in case of packages absence
Change-Id: Ifa7c41722d3cdb5d47a9a4752205c4947452e3e6
Closes-Bug: #1500845
2015-09-30 18:49:41 +03:00
zhu.rong 90eda852e5 Add truncate for Environments and Image table
Now the Environments and the Image use a long name, it makes little sense.

This patch fix it

Change-Id: I1b4072c94f3967a47533026e1d411e26a67f01f7
Closes-bug: #1499973
2015-09-29 08:55:10 +08:00
zhu.rong f9171339ff Fix the run_test unchecked pep8 W503 errors
Now thw flake8 did not check W503 error,
W503:doesn't allow binary ops at start of line,
And this patch fixes it.

Change-Id: I7b2cccee662bbabac381e82cad221803618f3065
2015-09-26 13:35:36 +08:00
Jenkins 91f8080a99 Merge "Change env table meta name to environments" 2015-09-22 11:50:05 +00:00