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

Issue 9731047: Enabled browser to be enabled by default via FF

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by rharding
Modified:
10 years, 11 months ago
Reviewers:
hatch, j.c.sackett, mp+166048
Visibility:
Public.

Description

Enabled browser to be enabled by default via FF - Add the idea of the browser_enabled feature flag. - Only add the browser subapp to the list of subApplications if the FF is present - Pulled the existing branch of code that enables the browser to operate by default. - Updated the tests so that the flag is enabled when checking the subapp is loaded correctly. MP Notes from original browser default MP: - Remove the /bws/ prefix on the routes and all instances of it. - Add a new route for / and /*charmid - Add a couple of tests to verify the new routes will route correctly, defaulting to the sidebar view - Update the browser app and the Charmworld0 store api handler to allow for a nop since not all tests will want to setup a fake store api endpoint. Since the browser is always visible, it wants to try to always load editorial content. The nop allows it to carry on but will hit the apifailure call so that it should not silently hide failures. Notes: - Using the dot notation for feature flags in JS is confusing. I initially wanted to create an nested object for the browser subapp space of flags. I changed this to _ in the docs and used browser_enabled so that the JS code can read simpler as just window.flags.browser_enabled vs using a combination of object/array-like notation. - There was an update required to allow setting the feature flags in the juju_config. That's not the same as GlobalConfig. Mistake in the previous branch. Known issues: - This only deals with enabling the browser to get away from the url /bws namespace and to feature flag it. Other known bugs still exist. In particular, in QA'ing you'll run across the black bar at the top of the UI for pages with the tabview on it. This will be updated in a follow up branch. QA: - To QA, pull this branch down and hit the app with the flag enabled: /:flags:/browser_enabled https://code.launchpad.net/~rharding/juju-gui/flag-browser/+merge/166048 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : Enabled browser to be enabled by default via FF #

Patch Set 3 : Enabled browser to be enabled by default via FF #

Patch Set 4 : Enabled browser to be enabled by default via FF #

Patch Set 5 : Enabled browser to be enabled by default via FF #

Patch Set 6 : Enabled browser to be enabled by default via FF #

Unified diffs Side-by-side diffs Delta from patch set Stats (+302 lines, -101 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M app/app.js View 2 chunks +10 lines, -4 lines 0 comments Download
M app/index.html View 4 chunks +5 lines, -5 lines 0 comments Download
M app/store/charm.js View 3 chunks +29 lines, -1 line 0 comments Download
M app/subapps/browser/browser.js View 1 2 3 4 5 8 chunks +70 lines, -15 lines 0 comments Download
M app/subapps/browser/views/charm.js View 1 chunk +6 lines, -0 lines 0 comments Download
M app/subapps/browser/views/view.js View 2 chunks +1 line, -5 lines 0 comments Download
M app/templates/charm-token.handlebars View 1 chunk +1 line, -1 line 0 comments Download
M lib/views/browser/main.less View 1 chunk +0 lines, -1 line 0 comments Download
M test/test_app.js View 2 chunks +8 lines, -0 lines 0 comments Download
M test/test_browser_app.js View 1 23 chunks +170 lines, -69 lines 0 comments Download

Messages

Total messages: 8
rharding
Please take a look.
10 years, 11 months ago (2013-05-28 13:32:42 UTC) #1
hatch
LGTM - With a few changes See the trivial comments below. We now have a ...
10 years, 11 months ago (2013-05-28 14:14:51 UTC) #2
j.c.sackett
https://codereview.appspot.com/9731047/diff/1/app/subapps/browser/views/charm.js File app/subapps/browser/views/charm.js (right): https://codereview.appspot.com/9731047/diff/1/app/subapps/browser/views/charm.js#newcode67 app/subapps/browser/views/charm.js:67: } Should we update style on these to make ...
10 years, 11 months ago (2013-05-28 14:16:00 UTC) #3
j.c.sackett
Previous comment is an LGTM; just a thought on the styling.
10 years, 11 months ago (2013-05-28 14:16:23 UTC) #4
rharding
Please take a look.
10 years, 11 months ago (2013-05-28 14:21:56 UTC) #5
rharding
Updated per comments and replies below. https://codereview.appspot.com/9731047/diff/1/app/subapps/browser/views/charm.js File app/subapps/browser/views/charm.js (right): https://codereview.appspot.com/9731047/diff/1/app/subapps/browser/views/charm.js#newcode67 app/subapps/browser/views/charm.js:67: } On 2013/05/28 ...
10 years, 11 months ago (2013-05-28 14:22:31 UTC) #6
j.c.sackett
On 2013/05/28 14:22:31, rharding wrote: > Updated per comments and replies below. > > https://codereview.appspot.com/9731047/diff/1/app/subapps/browser/views/charm.js ...
10 years, 11 months ago (2013-05-28 14:23:16 UTC) #7
rharding
10 years, 11 months ago (2013-05-28 15:03:27 UTC) #8
*** Submitted:

Enabled browser to be enabled by default via FF

- Add the idea of the browser_enabled feature flag.
- Only add the browser subapp to the list of subApplications if the FF is
present
- Pulled the existing branch of code that enables the browser to operate by
default.
- Updated the tests so that the flag is enabled when checking the subapp is
loaded correctly.

MP Notes from original browser default MP:

- Remove the /bws/ prefix on the routes and all instances of it.
- Add a new route for / and /*charmid
- Add a couple of tests to verify the new routes will route correctly,
defaulting to the sidebar view
- Update the browser app and the Charmworld0 store api handler to allow for a
nop since not all tests will want to setup a fake store api endpoint. Since
the browser is always visible, it wants to try to always load editorial
content. The nop allows it to carry on but will hit the apifailure call so
that it should not silently hide failures.


Notes:
- Using the dot notation for feature flags in JS is confusing. I initially
wanted to create an nested object for the browser subapp space of flags. I
changed this to _ in the docs and used browser_enabled so that the JS code can
read simpler as just window.flags.browser_enabled vs using a combination of
object/array-like notation.
- There was an update required to allow setting the feature flags in the
juju_config. That's not the same as GlobalConfig. Mistake in the previous
branch.

Known issues:
- This only deals with enabling the browser to get away from the url /bws
namespace and to feature flag it. Other known bugs still exist. In particular,
in QA'ing you'll run across the black bar at the top of the UI for pages with
the tabview on it. This will be updated in a follow up branch.

QA:
- To QA, pull this branch down and hit the app with the flag enabled:
/:flags:/browser_enabled

R=hatch, j.c.sackett
CC=
https://codereview.appspot.com/9731047
Sign in to reply to this message.

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