~hatch/juju-gui/ghost-view

Viewing all changes in revision 682.

  • Committer: Brad Crittenden
  • Date: 2013-05-22 19:10:56 UTC
  • mfrom: (670.3.9 endpoints-delay)
  • Revision ID: bac@canonical.com-20130522191056-g14fqss8zjg4rlnf
Disable building relations if charm is not loaded.

The potential endpoints for a service are not available until the charm is
loaded.  This branch fixes a bug where an attempt was made to access the
non-existent endpoints and then blithely proceeded along.  In addition, the UI
is changed so that the 'Build Relation' submenu is disabled if the charm is
not loaded (a proxy for the endpoints not being there) and the
'long-click-to-begin-relation-building' is also disabled.

The whole relation building experience is up for redesign.  At that time we
may chose to do something that provides a better user experience, such as
showing a spinner until the service is fully available.  For now, the actual
time the actions will be disabled should be a matter of a few seconds.

A feature flag is introduced and can be used with the sandbox to artifically
set the charm loading delay for testing.  Use it as follows for a ten second
delay before the charm is reported as loaded:

http://localhost:8888/:flags:/charmLoadDelay=10000

R=teknico, frankban
CC=
https://codereview.appspot.com/9650043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: