DescriptionSupport read-only mode in the GUI
The GUI can be configured so that it denies the
execution of write operations. This branch
introduces a check at Juju environment level:
if the user tries to change the environment and
the GUI is in read-only mode, the environment
object refuses to send the message to the server,
fires a permissionDenied event, logs the exception
and executes the provided callback (if any)
passing an error event.
Subsequently, an error notification is created by
the app. In a pre-implementation call with Gary
we decided that controls and widget can still be
displayed, they are just ineffective.
Other changes:
Added documentation for all modified
objects/methods/functions.
Fixed a bug: the environment view was not
propagating the getModelURL from the app to
the topology instance.
Also added a test for this bug.
Updated the destroy service callback to make
the destroy dialog disappear also when
an error occurs.
Fixed an intermittent failure when
test_environment_view.js is run in isolation.
https://code.launchpad.net/~frankban/juju-gui/bug-1083928-read-only-mode/+merge/143289
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 25
Patch Set 2 : Support read-only mode in the GUI #Patch Set 3 : Support read-only mode in the GUI #Patch Set 4 : Support read-only mode in the GUI #
MessagesTotal messages: 9
|