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

Issue 7884044: Fail silently when annotations are misisng.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by matthew.scott
Modified:
12 years ago
Reviewers:
bcsaller, jeff.pihach, mp+154106
Visibility:
Public.

Description

Fail silently when annotations are misisng. If the 'landscape-computer(s)' annotations are missing in the DB, the GUI will now fail silently (along with a console.warn) rather than crashing horribly. This is an intermediary fix, until UX is decided on for warning the user. https://code.launchpad.net/~makyo/juju-gui/check-annotations-1156662/+merge/154106 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fail silently when annotations are misisng. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -2 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/landscape.js View 1 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 7
matthew.scott
Please take a look.
12 years ago (2013-03-19 14:48:48 UTC) #1
jeff.pihach
Thanks for this patch - Just curious if there is a typo or intentional https://codereview.appspot.com/7884044/diff/1/app/views/landscape.js ...
12 years ago (2013-03-19 15:24:16 UTC) #2
matthew.scott
Thanks for the review. https://codereview.appspot.com/7884044/diff/1/app/views/landscape.js File app/views/landscape.js (right): https://codereview.appspot.com/7884044/diff/1/app/views/landscape.js#newcode130 app/views/landscape.js:130: var computer = model.annotations['landscape-computer']; On ...
12 years ago (2013-03-19 15:56:34 UTC) #3
bcsaller
LGTM with trivial Thanks for the fix. Curious what conditions set the landscape-annotation on the ...
12 years ago (2013-03-21 16:08:08 UTC) #4
gary.poster
On 2013/03/19 15:56:34, matthew.scott wrote: > Thanks for the review. > > https://codereview.appspot.com/7884044/diff/1/app/views/landscape.js > File ...
12 years ago (2013-03-21 16:19:55 UTC) #5
jeff.pihach
LGTM Thanks!
12 years ago (2013-03-21 16:27:19 UTC) #6
matthew.scott
12 years ago (2013-03-21 20:33:30 UTC) #7
*** Submitted:

Fail silently when annotations are misisng.

If the 'landscape-computer(s)' annotations are missing in the DB, the GUI will
now fail silently (along with a console.warn) rather than crashing horribly. 
This is an intermediary fix, until UX is decided on for warning the user.

R=jeff.pihach, bcsaller, gary.poster
CC=
https://codereview.appspot.com/7884044
Sign in to reply to this message.

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