Merge lp://staging/~gary/juju-gui/socket_url_revisited into lp://staging/juju-gui/experimental
Proposed by
Gary Poster
Status: | Merged |
---|---|
Merged at revision: | 431 |
Proposed branch: | lp://staging/~gary/juju-gui/socket_url_revisited |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
215 lines (+124/-19) 5 files modified
app/app.js (+17/-1) app/config-debug.js (+6/-0) app/config-prod.js (+6/-0) app/index.html (+0/-12) test/test_app.js (+95/-6) |
To merge this branch: | bzr merge lp://staging/~gary/juju-gui/socket_url_revisited |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Prefer socket_port and socket_protocol
In order to allow the charm to be backwards compatible, change the websocket url code to prefer socket_port and/or socket_protocol if they are also provided with socket_url in the configuration. Added tests. Moved pertinent code from index.html to app because it was easier to test there.
To post a comment you must log in.
Reviewers: mp+153202_ code.launchpad. net,
Message:
Please take a look.
Description:
Prefer socket_port and socket_protocol
In order to allow the charm to be backwards compatible, change the
websocket url code to prefer socket_port and/or socket_protocol if they
are also provided with socket_url in the configuration. Added tests.
Moved pertinent code from index.html to app because it was easier to
test there.
https:/ /code.launchpad .net/~gary/ juju-gui/ socket_ url_revisited/ +merge/ 153202
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/7703047/
Affected files:
A [revision details]
M app/app.js
M app/config-debug.js
M app/config-prod.js
M app/index.html
M test/test_app.js