Merge lp://staging/~hatch/juju-gui/detail-hang into lp://staging/juju-gui/experimental
Status: | Needs review |
---|---|
Proposed branch: | lp://staging/~hatch/juju-gui/detail-hang |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
745 lines (+350/-89) (has conflicts) 8 files modified
app/app.js (+188/-24) app/views/service.js (+11/-49) app/views/topology/service.js (+6/-1) app/views/unit.js (+6/-4) app/views/utils.js (+131/-0) test/test_application_notifications.js (+2/-2) test/test_service_view.js (+6/-5) undocumented (+0/-4) Text conflict in app/views/topology/service.js |
To merge this branch: | bzr merge lp://staging/~hatch/juju-gui/detail-hang |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email: mp+160228@code.staging.launchpad.net |
Description of the change
Fix GUI hanging when service viewed is deleted
WIP BRANCH
The UI will now display a notification if the user is:
1) Viewing a service and it gets destroyed. The user will
be redirected to the env view.
2) Viewing a unit and it gets destroyed. The user will be
redirected to the service view.
3) Viewing a unit and its service gets destroyed. The
user will be redirected to the env view.
The service views have been converted to use promises to
pull the service data in.
To Do:
The unit views still need to be converted to use promises.
Tests need to be written.
This branch cannot land until the multiple 'login' event
bug has been fixed as it causes the application to break
if the user navigates to a service view before the second
'login' event has been dispatched.
Unmerged revisions
- 583. By Jeff Pihach
-
lint and tests passing
- 582. By Jeff Pihach
-
warning now shows if service is destroyed while being viewed
- 581. By Jeff Pihach
-
moved service view rendering and promise support into extension
- 580. By Jeff Pihach
-
converted service view to use promise
- 579. By Jeff Pihach
-
refactoring to remove dispatching from service and unit views
- 578. By Jeff Pihach
-
service deleted notification redirect works
- 577. By Jeff Pihach
-
units now use new prefetch
- 576. By Jeff Pihach
-
working towards restructuring prefetch service
- 575. By Jeff Pihach
-
removed unit warning added
- 574. By Jeff Pihach
-
notification is thrown and user is redirected to the env
Reviewers: mp+160228_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix GUI hanging when service viewed is deleted
WIP BRANCH
The UI will now display a notification if the user is:
1) Viewing a service and it gets destroyed. The user will
be redirected to the env view.
2) Viewing a unit and it gets destroyed. The user will be
redirected to the service view.
3) Viewing a unit and its service gets destroyed. The
user will be redirected to the env view.
The service views have been converted to use promises to
pull the service data in.
To Do:
The unit views still need to be converted to use promises.
Tests need to be written.
This branch cannot land until the multiple 'login' event
bug has been fixed as it causes the application to break
if the user navigates to a service view before the second
'login' event has been dispatched.
https:/ /code.launchpad .net/~hatch/ juju-gui/ detail- hang/+merge/ 160228
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8782046/
Affected files: javascripts/ ns-routing- app-extension. js service. js topology/ service. js application_ notifications. js service_ view.js
A [revision details]
M app/app.js
M app/assets/
M app/views/
M app/views/
M app/views/unit.js
M app/views/utils.js
M test/test_
M test/test_
M undocumented