Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5567)

Issue 13242046: Fixes state issues with browser/service view

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by rharding
Modified:
10 years, 7 months ago
Reviewers:
mp+182459, frankban, jeff.pihach
Visibility:
Public.

Description

Fixes state issues with browser/service view - Fixes #1217449 & #1217450 - viewmode controls widget now clear the events to the DOM it binds with a custom destroy event helper. - Since it's not cleaning them up, we can not clean them in tests manually. - Update the app.js triggers on the viewmode control events to build the entire url and send that along to the navigate call. - Make sure we destroy controls when we're done with the app managing them (while the gui service views are available) - The initState needs to clear old views so that when we re-init no old views are holding events that no longer apply. Share the code now since it's used in multiple places. - _getStateUrl was improperly updating the _oldState to aid testing. Remove that and fix tests. - In some cases when hidden, we might have no subapp._sidebar but the _oldState says there's been no state change. - Update tests around initState, viewmode controls widget, etc. https://code.launchpad.net/~rharding/juju-gui/more-state-issues/+merge/182459 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : - #

Patch Set 3 : Fixes state issues with browser/service view #

Total comments: 3

Patch Set 4 : Fixes state issues with browser/service view #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -32 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 4 chunks +13 lines, -6 lines 0 comments Download
M app/store/env/sandbox.js View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M app/subapps/browser/browser.js View 1 2 8 chunks +41 lines, -19 lines 0 comments Download
M app/widgets/viewmode-controls.js View 1 2 chunks +17 lines, -2 lines 0 comments Download
M test/test_browser_app.js View 1 6 chunks +34 lines, -1 line 0 comments Download
M test/test_viewmode_controls_widget.js View 2 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 9
rharding
Please take a look.
10 years, 7 months ago (2013-08-27 19:31:33 UTC) #1
rharding
Please take a look.
10 years, 7 months ago (2013-08-28 00:35:41 UTC) #2
rharding
Please take a look.
10 years, 7 months ago (2013-08-28 00:46:57 UTC) #3
rharding
QA Notes: see the bugs for what *should* work now that did not previously.
10 years, 7 months ago (2013-08-28 00:47:58 UTC) #4
jeff.pihach
There is a console log in sandbox.js:788 if you could remove that plz that would ...
10 years, 7 months ago (2013-08-28 04:51:21 UTC) #5
rharding
On 2013/08/28 04:51:21, jeff.pihach wrote: > There is a console log in sandbox.js:788 if you ...
10 years, 7 months ago (2013-08-28 11:21:45 UTC) #6
frankban
LGTM, with just a question below. Thank you Rick. https://codereview.appspot.com/13242046/diff/7001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/13242046/diff/7001/app/subapps/browser/browser.js#newcode662 app/subapps/browser/browser.js:662: ...
10 years, 7 months ago (2013-08-28 11:53:03 UTC) #7
rharding
Thanks for the reviews! https://codereview.appspot.com/13242046/diff/7001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/13242046/diff/7001/app/subapps/browser/browser.js#newcode662 app/subapps/browser/browser.js:662: var forceFullscreen = false; On ...
10 years, 7 months ago (2013-08-28 12:01:45 UTC) #8
rharding
10 years, 7 months ago (2013-08-28 12:10:12 UTC) #9
*** Submitted:

Fixes state issues with browser/service view

- Fixes #1217449 & #1217450
- viewmode controls widget now clear the events to the DOM it binds with a
custom destroy event helper.
- Since it's not cleaning them up, we can not clean them in tests manually.
- Update the app.js triggers on the viewmode control events to build the
entire url and send that along to the navigate call.
- Make sure we destroy controls when we're done with the app managing them
(while the gui service views are available)
- The initState needs to clear old views so that when we re-init no old views
are holding events that no longer apply. Share the code now since it's used in
multiple places.
- _getStateUrl was improperly updating the _oldState to aid testing. Remove
that and fix tests.
- In some cases when hidden, we might have no subapp._sidebar but the
_oldState says there's been no state change.
- Update tests around initState, viewmode controls widget, etc.

R=jeff.pihach, frankban
CC=
https://codereview.appspot.com/13242046
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b