Add new feature flag for the Unified Review Banner
Review Request #10187 — Created Sept. 27, 2018 and submitted
This is the first step of the larger project of creating the Unified
Review Banner Base Shell. Adding this feature flag will allow us to
toggle between the current banner experience and the new Unified Review
Banner experience to allow development on the Unified Banner to continue
without breaking the current experience.Out of scope for this patch: using the feature flag to toggle between
the two experiences (will come in the next patch).
- Ran all JS Unit tests (all pass)
- Set the value in settings_local.py as
ENABLED_FEATURES = {
'reviews.unified_banner': True/False
}
and tested output of RB.EnabledFeatures.unifiedBanner
in
ReviewablePage.es6.js
file (where the Unified Banner will be
instantiated)
Description | From | Last Updated |
---|---|---|
You can remove the bit about the failing tests, as that isn't relevant context to the patch. |
brennie | |
To do multi-line markdown code segments, the first line (with the triple backticks) needs to be blank ``` like this … |
brennie | |
Can you wrap your summary & testing done at 72 characters? |
brennie | |
Tiny nit: summaries don't need a period. |
brennie | |
Also, your summary should be in the imperitive mood, i.e, Add instead of Adding. |
brennie | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
This should be two blank lines instead of one. |
david |
- Commit:
-
b12cd63bb886ca64ba1b8ea98e4c538e3394eac0e4b7e431a22342f1d302f1a6ac066ae098a7c3ac
Checks run (2 succeeded)
- Description:
-
~ This is the first step of the larger project of creating the Unified Review Banner Base Shell. Adding this feature flag will allow us to toggle between the current banner experience and the new Unified Review Banner experience to allow development on the Unified Banner to continue without breaking the current experience.
~ This is the first step of the larger project of creating the Unified
+ Review Banner Base Shell. Adding this feature flag will allow us to + toggle between the current banner experience and the new Unified Review + Banner experience to allow development on the Unified Banner to continue + without breaking the current experience. ~ Out of scope for this patch: using the feature flag to toggle between the two experiences (will come in the next patch).
~ Out of scope for this patch: using the feature flag to toggle between
+ the two experiences (will come in the next patch). - Testing Done:
-
~ - Ran all JS Unit tests (all pass except the 6 known to fail in release-4.0.x)
~ - Set the value in settings_local.py as
ENABLED_FEATURES = { 'reviews.unified_banner': True/False }
and tested output ofRB.EnabledFeatures.unifiedBanner
inReviewablePage.es6.js
file (where the Unified Banner will be instantiated)
~ - Ran all JS Unit tests (all pass)
~ - Set the value in settings_local.py as
+ + ENABLED_FEATURES = {
+ 'reviews.unified_banner': True/False
+ }
+ + + and tested output of
RB.EnabledFeatures.unifiedBanner
in+ ReviewablePage.es6.js
file (where the Unified Banner will be+ instantiated)