DescriptionEnabled 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 #
MessagesTotal messages: 8
|