Change how the UI reacts to neutron responding to API requests.
Without this change when the user clicks create or edit:
* we display a spinner
* wait for the neutron to respond
* then we open the modal.
With this change:
* we open the modal immediately and
* send the request(s) to neutron asynchronously.
* We display a 'please wait' message in place of the relevant (but not
all) input forms (or transfer tables) of the workflow steps.
* When neutron responds to each request we replace the 'please wait'
message with the pre-filled input forms.
The latter is better experience for the user because he or she can
progress with parts of the workflow until the rest is loaded.
Partially-Implements: blueprint neutron-trunk-ui
Change-Id: I9ac8f75a390424ad05cf51fa679ef9803124179c
DeleteActiona and BatchAction in the network, subnet and router tables
are improved using handle_exception_with_detail_message decorator.
There is no need to have separate delete action in the admin network
and subnet tables now, so they are merged into the corresponding delete
actions in the project tables.
Change-Id: I976e4e6ed8e9c1430f82ac362c080853744b5d07
Closes-Bug: #1733207
Previously BatchAction.handle() automatically adds an error message
when handle() method raises an exception. If some custom error message
is shown in handle() method, two error messages will be shown.
This commit allows a special handling for HandledException to
BatchAction.handle(). In individual BatchAction instances,
handle() method can now show a custom error message and raise an
HandledException, and then BatchAction.handle() skips to show an
error message for that. The reason of using HandledException is
because the exception can be raised from exceptions.handle() function
which is commonly used to handle exceptions.
The common pattern in handle() would be:
try:
<do something>
except Exception as e:
# HandledException which wrapps the original exception will be raised.
# HandledException will be caught by BatchAction.handle().
exceptions.handle(request, msg, escalate=True)
To make it easier to use the pattern, a new decorator
horizon.tables.actions.handle_exception_with_detail_message is introduced.
Partial-Bug: #1733207
Change-Id: I4bb0f61c7b63ea6ecd2e30c03eddecee62ff9b13
BatchAction.handle() displays an aggregate error message
if an exception is returned from individual action() method.
If we don't need a detail error message, try/except is unnecessary.
Note that a fix for a case where a detail error message is needed
will be covered in the subsequent patches.
Change-Id: I8037355b12e0756c6add5c5b9ba05a430155dfe5
Partial-Bug: #1733207
As we discussed in the team meeting, we plan to drop Django 1.8
to 1.10 support in Rocky. It is worth mentioned in the release note
and the document.
Change-Id: I11a4f4ec1d2a237fad7c58951ff23affd0b5708d
3 'if' at same levels and each 'if' has 'return',
in this case, elif is better than if.
more readable, more effective.
Change-Id: Ib0528ab69679f320f1580971945ce36eaaedf011
Signed-off-by: peiy <peiy@rc.inesa.com>
This patch makes serial console resizable according to
parent element size like window or div container.
Change-Id: Ie4bc4d7302ce80ed9925db4156ff52f928460aca
Closes-Bug: #1728533
Needed-By: Ia26be196758e5f3617b31750702a6c54436efb93
* User menu links can be specified in the settings page
* Defaults to the standard Open RC links (bug and help links are
not modified in this patch)
* Url, name and icon can all be specified
Change-Id: I3cbcfbf06ede18d468d4c611ad6005cb74f1b284
Closes-Bug: 1736048
Unhid the message on the div so that if there are no networks,
routers, or connected instances it says this instead of a blank
white box
closes bug: #1661350
Change-Id: Id5f86a81125ff91c5824b51ca4a2141cabc2d0c4
When adding a new rule to a secruity group that would exceede the
quota, the error message displays a quota error, rather than rule
already exists error. It does this my first checking for an
"OverQuotaClient" error, then if that except doesn't trigger it
checks for any other conflict
Change-Id: I8eaa0f00b25c8c3b75fef2bf46979f1f248c6896
Closes-Bug: #1699724
Edited 404.html to make the error page more appealing and the
style now matches the login page.
Change-Id: I491f77d73beacf6d3c6ae2ded3d8cfc0cd8f5cb2
closes-bug: 1606294