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

Issue 7130051: Do not attempt login if ws doesn't exist.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by bac
Modified:
11 years, 3 months ago
Reviewers:
mp+143602, hazmat
Visibility:
Public.

Description

Do not attempt login if ws doesn't exist. If the web socket is not connected the env login function should not proceed. https://code.launchpad.net/~bac/juju-gui/1099909/+merge/143602 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -3 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M app/store/env.js View 2 chunks +4 lines, -2 lines 1 comment Download
M test/test_login.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2
bac
Please take a look.
11 years, 3 months ago (2013-01-16 22:04:49 UTC) #1
hazmat
11 years, 3 months ago (2013-01-16 22:18:53 UTC) #2
idle thoughts

https://codereview.appspot.com/7130051/diff/1/app/store/env.js
File app/store/env.js (right):

https://codereview.appspot.com/7130051/diff/1/app/store/env.js#newcode299
app/store/env.js:299: }
this short circuits, but its unclear that it doesn't cause an unintended
consequence for a caller which expects a login. the caller should probably be
changed to do this on connected with an evt sub

incidentally we should probably check for some value on username / password.
Sign in to reply to this message.

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