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

Issue 7231067: View model improvements

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

Description

View model improvements Change BoundingBoxes to retain reference to module. This allows box models to directly resolve the db.Model backing them. This also allow access to the DOMNode in the canvas directly. Certain features of box directly depend on methods being available in the passed in module, mocking this is still possible and shown in tests. https://code.launchpad.net/~bcsaller/juju-gui/viewmodel-improvements/+merge/145755 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 15

Patch Set 2 : View model improvements #

Total comments: 8

Patch Set 3 : View model improvements #

Patch Set 4 : View model improvements #

Patch Set 5 : View model improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -541 lines) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M app/views/service.js View 1 chunk +0 lines, -1 line 0 comments Download
M app/views/topology/relation.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M app/views/topology/service.js View 1 2 3 4 28 chunks +85 lines, -112 lines 0 comments Download
M app/views/topology/topology.js View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M app/views/utils.js View 1 2 3 chunks +244 lines, -181 lines 0 comments Download
M test/test_environment_view.js View 1 2 3 chunks +63 lines, -55 lines 0 comments Download
M test/test_service_module.js View 1 2 7 chunks +22 lines, -6 lines 0 comments Download
M test/test_topology.js View 1 1 chunk +0 lines, -79 lines 0 comments Download
M undocumented View 6 chunks +117 lines, -104 lines 0 comments Download

Messages

Total messages: 11
bcsaller
Please take a look.
11 years, 3 months ago (2013-01-31 00:34:30 UTC) #1
teknico
Land with changes. This looks like a nice refactoring. Thanks for regenerating the "undocumented" file. ...
11 years, 3 months ago (2013-01-31 10:44:24 UTC) #2
teknico
Uhm, I should mention that while "make test-prod" completes successfully, in "make test-debug" mocha times ...
11 years, 3 months ago (2013-01-31 12:06:08 UTC) #3
bcsaller
Please take a look.
11 years, 3 months ago (2013-01-31 16:57:58 UTC) #4
gary.poster
I was in the middle of a review--with a long hiatus for various calls and ...
11 years, 3 months ago (2013-01-31 17:30:12 UTC) #5
matthew.scott
Reviewing this in light of the possible changes to my current branch. Overall I think ...
11 years, 3 months ago (2013-01-31 17:53:55 UTC) #6
matthew.scott
Increasing the number of units for a service is not reflected in the environment view ...
11 years, 3 months ago (2013-01-31 19:51:03 UTC) #7
bcsaller
On 2013/01/31 19:51:03, matthew.scott wrote: > Increasing the number of units for a service is ...
11 years, 3 months ago (2013-02-01 00:59:09 UTC) #8
gary.poster
Hi Ben. Thank you for this very nice branch. Land with changes, as documented in ...
11 years, 3 months ago (2013-02-01 02:26:05 UTC) #9
bcsaller
https://codereview.appspot.com/7231067/diff/1/app/views/topology/service.js File app/views/topology/service.js (right): https://codereview.appspot.com/7231067/diff/1/app/views/topology/service.js#newcode243 app/views/topology/service.js:243: this.services = Y.Object.values(this.service_boxes); On 2013/01/31 17:30:12, gary.poster wrote: > ...
11 years, 3 months ago (2013-02-01 15:35:29 UTC) #10
bcsaller
11 years, 3 months ago (2013-02-01 15:44:03 UTC) #11
*** Submitted:

View model improvements

Change BoundingBoxes to retain reference to module. This allows box models
to directly resolve the db.Model backing them. This also allow access to the 
DOMNode in the canvas directly. Certain features of box directly depend on
methods being available in the passed in module, mocking this is still
possible and shown in tests.

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

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