Remove help visibility feature flag
The helpVisibility feature flag should be removed, now that the feature has been established and around for a while without any problems.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- The
helpVisibilityfeature flag should be entirely removed. - Any functionality that is currently behind the flag should now become the default behavior. Any functionality that is currently only used when the flag is disabled should be entirely removed.
- Components or functions that are no longer used as a result should also be removed (potentially
HelpLink).
- Components or functions that are no longer used as a result should also be removed (potentially
Implementation Brief
- Using
feature-flags.json, remove thehelpVisibilityfeature flag. - Search for the
helpVisibilitystring within the code base and review code where thehelpVisibility. Any logic/component which was rendered conditionally when thehelpVisibilityfeature was enabled should be rendered unconditionally now. Any code which was rendered when the feature flag was disabled should be removed. For e.g inassets/js/components/settings/SettingsApp.jswhere theHelpLinkcomponent is rendered whenhelpVisibilityis disabled. - Use of the
useFeaturehook withhelpVisibilityas parameter should be removed. - The
PageFootercomponent can be removed since it returnsnullwhenhelpVisibilityis enabled, this it can be safely removed. Update code base to remove occurrences ofPageFooter. - The
HelpLinkcomponent should be deleted as well since it was rendered whenhelpVisibilitywas not enabled. - The following components are class based ones and the
helpVisibilityEnabledprop should be removed as well as thewithFeatureFlagHOC use within them:assets/js/components/legacy-setup/search-console.jsassets/js/components/legacy-setup/SetupUsingGCP.jsassets/js/components/legacy-setup/site-verification.jsassets/js/components/legacy-setup/wizard-step-authentication.js
Test Coverage
- No new tests to be added.
Visual Regression Changes
- Expected in cases where components are now being rendered unconditionally.
QA Brief
- Verify that the
helpVisibilityfeature flag no longer exists in the codebase. - Verify that the other ACs have been met.
Changelog entry
- N/A
IB :heavy_check_mark:
QA failed ❌
Hi @johnPhillips, I found thehelpVisibility string in a few places in the code:
components/legacy-setup/wizard-step-authentication.jsfeature-tours/help-visibility.jsfeature-tours/index.js
@Hazlitte the following shouldn't be removed because they are the feature tour itself (I could have been more clear on this in the QAB, sorry):
feature-tours/help-visibility.jsfeature-tours/index.js
However, this one can go, so I'll open a PR to remove it.
components/legacy-setup/wizard-step-authentication.js
QAB updated to be more specific.
Looked for helpVisibility string in the codebase, none found.