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

Issue 8657043: Fix exposed attribute handling in delta stream

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by frankban
Modified:
11 years ago
Reviewers:
teknico, mp+158331, gary.poster
Visibility:
Public.

Description

Fix exposed attribute handling in delta stream This branch fixes the service "exposed" and unit "relation_errors" attributes handling when the delta comes from juju-core. The _process_delta function allows for overriding those attrs in the case a delta stream arrives from PyJuju. The juju-core handlers, instead, must update model instances with partial changes, e.g. when handling annotations. This was the cause of the regression. Also improved the cleanUpEntityTags helper. https://code.launchpad.net/~frankban/juju-gui/bug-1167339-exposed/+merge/158331 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix exposed attribute handling in delta stream #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -20 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/handlers.js View 2 chunks +28 lines, -18 lines 0 comments Download
M test/test_model_handlers.js View 2 chunks +49 lines, -2 lines 0 comments Download

Messages

Total messages: 5
frankban
Please take a look.
11 years ago (2013-04-11 11:16:30 UTC) #1
teknico
LGTM
11 years ago (2013-04-11 13:29:20 UTC) #2
gary.poster
LGTM. Thank you! Gary https://codereview.appspot.com/8657043/diff/1/app/models/handlers.js File app/models/handlers.js (right): https://codereview.appspot.com/8657043/diff/1/app/models/handlers.js#newcode239 app/models/handlers.js:239: // We cannot use the ...
11 years ago (2013-04-11 13:47:18 UTC) #3
frankban
On 2013/04/11 13:47:18, gary.poster wrote: > LGTM. Thank you! > > Gary > > https://codereview.appspot.com/8657043/diff/1/app/models/handlers.js ...
11 years ago (2013-04-11 13:52:25 UTC) #4
frankban
11 years ago (2013-04-11 13:59:27 UTC) #5
*** Submitted:

Fix exposed attribute handling in delta stream

This branch fixes the service "exposed" and unit "relation_errors"
attributes handling when the delta comes from juju-core.
The _process_delta function allows for overriding those attrs
in the case a delta stream arrives from PyJuju. The juju-core 
handlers, instead, must update model instances with partial changes, 
e.g. when handling annotations. This was the cause of the regression.

Also improved the cleanUpEntityTags helper.

R=teknico, gary.poster
CC=
https://codereview.appspot.com/8657043
Sign in to reply to this message.

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