Merge lp:~benji/juju-gui/potpourri into lp:juju-gui/experimental

Proposed by Benji York
Status: Merged
Merged at revision: 553
Proposed branch: lp:~benji/juju-gui/potpourri
Merge into: lp:juju-gui/experimental
Diff against target: 56 lines (+10/-7)
3 files modified
Makefile (+7/-5)
app/models/handlers.js (+2/-1)
app/views/service.js (+1/-1)
To merge this branch: bzr merge lp:~benji/juju-gui/potpourri
Reviewer Review Type Date Requested Status
Juju GUI Hackers Pending
Review via email: mp+158949@code.launchpad.net

Description of the change

Potpourri, see below.

- elide some of the unnecessary commentary from the linter
- add a bug number to a XXX
- change a Y.Object.each to Y.Array.each

https://codereview.appspot.com/8770044/

To post a comment you must log in.
Revision history for this message
Jeff Pihach (hatch) wrote :

LGTM Thanks for the cleanup!

https://codereview.appspot.com/8770044/

Revision history for this message
Gary Poster (gary) wrote :

LGTM. Thank you!

I did not QA; if you would like me to, let me know.

Gary

https://codereview.appspot.com/8770044/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2013-04-08 21:03:12 +0000
3+++ Makefile 2013-04-15 14:59:16 +0000
4@@ -245,7 +245,8 @@
5 gjslint: virtualenv/bin/gjslint
6 virtualenv/bin/gjslint --unix --strict --nojsdoc --jslint_error=all \
7 --custom_jsdoc_tags module,main,class,method,event,property,attribute,submodule,namespace,extends,config,constructor,static,final,readOnly,writeOnce,optional,required,param,return,for,type,private,protected,requires,default,uses,example,chainable,deprecated,since,async,beta,bubbles,extension,extensionfor,extension_for \
8- -x $(LINT_IGNORE) $(JSFILES)
9+ -x $(LINT_IGNORE) $(JSFILES) \
10+ | sed -n '0,/^Found /p'| sed '/^Found /q1' # less garbage output
11
12 jshint: node_modules/jshint
13 node_modules/jshint/bin/hint $(JSFILES)
14@@ -257,10 +258,11 @@
15 bin/lint-yuidoc
16
17 recess: node_modules/recess
18- # We need to grep for "Perfect" because recess does not set a non-zero
19- # exit code if it rejects a file. If this fails, run the recess command
20- # below without the grep to get recess' report.
21- node_modules/recess/bin/recess lib/views/stylesheet.less --config recess.json | grep -q Perfect
22+ @# We need to grep for "Perfect" because recess does not set a
23+ @# non-zero exit code if it rejects a file. If this fails, run the
24+ @# recess command below without the grep to get recess' report.
25+ node_modules/recess/bin/recess lib/views/stylesheet.less \
26+ --config recess.json | grep -q Perfect
27
28 lint: test-prep gjslint jshint recess yuidoc-lint test-filtering
29
30
31=== modified file 'app/models/handlers.js'
32--- app/models/handlers.js 2013-04-11 11:06:05 +0000
33+++ app/models/handlers.js 2013-04-15 14:59:16 +0000
34@@ -166,7 +166,8 @@
35 id: change.Name,
36 charm: change.CharmURL,
37 exposed: change.Exposed
38- // XXX 2013-04-05 frankban: missing config and constraints.
39+ // XXX 2013-04-05 (bug 1169167) frankban: missing config and
40+ // constraints.
41 };
42 db.services.process_delta(action, data);
43 },
44
45=== modified file 'app/views/service.js'
46--- app/views/service.js 2013-04-12 20:47:28 +0000
47+++ app/views/service.js 2013-04-15 14:59:16 +0000
48@@ -639,7 +639,7 @@
49 }
50 });
51
52- Y.Object.each(env.genericConstraints, function(gkey) {
53+ Y.Array.each(env.genericConstraints, function(gkey) {
54 if (!(gkey in constraints)) {
55 display_constraints.push({name: gkey, value: ''});
56 }

Subscribers

People subscribed via source and target branches