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

Issue 12797046: Fixes support for loading config from file.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by rharding
Modified:
10 years, 8 months ago
Reviewers:
mp+180176, jeff.pihach, matthew.scott
Visibility:
Public.

Description

Fixes support for loading config from file. The config file handling code was copied to the inspector, but the tests weren't. Most of this branch is adding the tests from the old to the new. - The two main bugs were that the variable name was called fileContent vs configFileContent. - The other was the deploy call looking on this.configFileContent vs on the viewletManager where the content is kept. - Small change to the onFileLoad to make testing easier. The UI is updated now without having to fake it or to mock up handleFileChange in odd ways. - Also did some small tweaks to alphabetize the var names and such in the tests to make it easier to see what vars there are and find out if something is global (in the test scope) or not. https://code.launchpad.net/~rharding/juju-gui/ghost-config-upload/+merge/180176 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixes support for loading config from file. #

Patch Set 3 : Fixes support for loading config from file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -28 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/ghost-inspector.js View 2 chunks +6 lines, -4 lines 0 comments Download
M app/views/inspector.js View 4 chunks +11 lines, -9 lines 0 comments Download
M test/test_ghost_inspector.js View 1 2 4 chunks +80 lines, -15 lines 0 comments Download

Messages

Total messages: 6
rharding
Please take a look.
10 years, 8 months ago (2013-08-14 15:48:56 UTC) #1
jeff.pihach
This is looking good thanks for the fix and the tests! Couple small things and ...
10 years, 8 months ago (2013-08-14 15:56:07 UTC) #2
matthew.scott
LGTM once Jeff's happy. Thanks for the tests!
10 years, 8 months ago (2013-08-14 15:56:53 UTC) #3
rharding
Please take a look. https://codereview.appspot.com/12797046/diff/1/app/views/charm-panel.js File app/views/charm-panel.js (right): https://codereview.appspot.com/12797046/diff/1/app/views/charm-panel.js#newcode319 app/views/charm-panel.js:319: '.zonfig-file-upload-widget': {change: 'onFileChange'}, ok...so this ...
10 years, 8 months ago (2013-08-14 15:57:00 UTC) #4
jeff.pihach
LGTM
10 years, 8 months ago (2013-08-14 16:18:21 UTC) #5
rharding
10 years, 8 months ago (2013-08-15 00:47:49 UTC) #6
*** Submitted:

Fixes support for loading config from file.

The config file handling code was copied to the inspector, but the tests
weren't. Most of this branch is adding the tests from the old to the new.

- The two main bugs were that the variable name was called fileContent vs
configFileContent.
- The other was the deploy call looking on this.configFileContent vs on the
viewletManager where the content is kept.
- Small change to the onFileLoad to make testing easier. The UI is updated now
without having to fake it or to mock up handleFileChange in odd ways.
- Also did some small tweaks to alphabetize the var names and such in the
tests to make it easier to see what vars there are and find out if something
is global (in the test scope) or not.

R=jeff.pihach, matthew.scott
CC=
https://codereview.appspot.com/12797046
Sign in to reply to this message.

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