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

Issue 11443043: Changes `Charm` model to use `options`

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by j.c.sackett
Modified:
10 years, 9 months ago
Reviewers:
rharding, matthew.scott, mp+175283
Visibility:
Public.

Description

Changes `Charm` model to use `options` The `Charm` model has an attr named `config`, which only stores an `options` object. `BrowserCharm` just has the `options` attr. To make the two models more compatible towards finally merging them, this replaces the `config` with `options` in `Charm`. This was done largely by multiple passes scanning for uses of the two attributes--because of several cases where the charm's config is abstracted from the model, and other cases where config is used b/c no model is ever created, it's possible that spots were missed. https://code.launchpad.net/~jcsackett/juju-gui/old-charm-meet-new-charm/+merge/175283 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Changes `Charm` model to use `options` #

Total comments: 1

Patch Set 3 : Changes `Charm` model to use `options` #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -170 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/models/charm.js View 3 chunks +10 lines, -2 lines 0 comments Download
M app/views/charm-panel.js View 3 chunks +3 lines, -9 lines 0 comments Download
M app/views/ghost-inspector.js View 1 chunk +1 line, -7 lines 0 comments Download
M app/views/service.js View 1 2 4 chunks +4 lines, -7 lines 0 comments Download
M app/widgets/charm-token.js View 1 chunk +1 line, -7 lines 0 comments Download
M test/test_charm_configuration.js View 10 chunks +68 lines, -72 lines 0 comments Download
M test/test_charm_panel.js View 1 chunk +0 lines, -36 lines 0 comments Download
M test/test_inspector_overview.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M test/test_inspector_settings.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/test_model.js View 1 1 chunk +16 lines, -0 lines 0 comments Download
M test/test_service_config_view.js View 1 chunk +31 lines, -26 lines 0 comments Download

Messages

Total messages: 6
j.c.sackett
Please take a look.
10 years, 9 months ago (2013-07-17 13:47:13 UTC) #1
rharding
LGTM with one request for readability. https://codereview.appspot.com/11443043/diff/1/test/test_model.js File test/test_model.js (right): https://codereview.appspot.com/11443043/diff/1/test/test_model.js#newcode41 test/test_model.js:41: it('can load options ...
10 years, 9 months ago (2013-07-17 14:10:53 UTC) #2
j.c.sackett
On 2013/07/17 14:10:53, rharding wrote: > LGTM with one request for readability. > > https://codereview.appspot.com/11443043/diff/1/test/test_model.js ...
10 years, 9 months ago (2013-07-17 14:12:10 UTC) #3
j.c.sackett
Please take a look.
10 years, 9 months ago (2013-07-17 14:19:29 UTC) #4
matthew.scott
LGTM \o/ https://codereview.appspot.com/11443043/diff/6002/test/test_charm_configuration.js File test/test_charm_configuration.js (right): https://codereview.appspot.com/11443043/diff/6002/test/test_charm_configuration.js#newcode23 test/test_charm_configuration.js:23: charmConfig = { Thank yooou
10 years, 9 months ago (2013-07-17 16:18:02 UTC) #5
j.c.sackett
10 years, 9 months ago (2013-07-17 18:21:58 UTC) #6
*** Submitted:

Changes `Charm` model to use `options`

The `Charm` model has an attr named `config`, which only stores an `options`
object. `BrowserCharm` just has the `options` attr. To make the two models more
compatible towards finally merging them, this replaces the `config` with
`options`
in `Charm`.

This was done largely by multiple passes scanning for uses of the two
attributes--because of several cases where the charm's config is abstracted from
the model, and other cases where config is used b/c no model is ever created,
it's possible that spots were missed.

R=rharding, matthew.scott
CC=
https://codereview.appspot.com/11443043
Sign in to reply to this message.

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