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

Issue 6561066: Better descripion of errors in notifications.

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

Description

Better descripion of errors in notifications. Currently notifications contain only "User actions suggested..." The messages need to provide more insight into what the failure was. https://code.launchpad.net/~bac/juju-ui/notify-errs/+merge/126672 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better descripion of errors in notifications. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -90 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 3 chunks +3 lines, -19 lines 0 comments Download
M app/modules.js View 2 chunks +0 lines, -5 lines 0 comments Download
M app/store/notifications.js View 4 chunks +24 lines, -4 lines 0 comments Download
M app/templates/notifications.handlebars View 1 2 chunks +2 lines, -5 lines 0 comments Download
D app/views/search.js View 1 chunk +0 lines, -57 lines 0 comments Download
M lib/views/stylesheet.less View 1 1 chunk +4 lines, -0 lines 0 comments Download
M test/test_notifications.js View 1 chunk +71 lines, -0 lines 1 comment Download

Messages

Total messages: 4
bac
Please take a look.
11 years, 7 months ago (2012-09-27 20:16:11 UTC) #1
benjamin.saller
LGTM after a trunk merge. As a minor I think it would be a good ...
11 years, 7 months ago (2012-09-28 00:43:32 UTC) #2
bac
*** Submitted: Better descripion of errors in notifications. Currently notifications contain only "User actions suggested..." ...
11 years, 7 months ago (2012-09-28 11:42:12 UTC) #3
hazmat
11 years, 7 months ago (2012-09-28 15:12:54 UTC) #4
there's a significant issue with this cleanup, although not directly related to
the work here, namely that its using assuming the client side sync op is
representative of the server side op, when in fact its not, because from the
perspective of the client-side db. 

The solution would be to distinguish notification strings in the notifier based
on the sync state (initial vs subsequent).

https://codereview.appspot.com/6561066/diff/8/test/test_notifications.js
File test/test_notifications.js (right):

https://codereview.appspot.com/6561066/diff/8/test/test_notifications.js#newc...
test/test_notifications.js:306: showable[0].title.should.equal('Error with add
unit');
Delta stream ops do not directly correspond without additional context (is it
past the initial sync) to the corresponding environment action. else your
reporting add errors on things that have been alive for quite a while.
Sign in to reply to this message.

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