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
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
Horizon remove the inline_edit, So murano-dashboard should remove it too.
And this cause murano-dashboard tests failed.
Change-Id: I1a0e23255de3c620a2976c1a9043f26df21a9a57
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
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
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
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
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
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
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
Now WrappingColumn was introduced in Horizon, So we can using this
to prevent long names breaking table layouts.
Closes-Bug: #1618961
Change-Id: Ic5db239752a147c364823ed9fcd192181098f976
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
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
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
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
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
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
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
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
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
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
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
Now the Environments and the Image use a long name, it makes little sense.
This patch fix it
Change-Id: I1b4072c94f3967a47533026e1d411e26a67f01f7
Closes-bug: #1499973
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