Page MenuHomePhabricator

[GOAL, placeholder] Address feature flag technical debt by removing feature flags
Closed, DeclinedPublic

Description

During development of the three features, user links, language button, toggle button, and Vue.js search we have accumulated quite a bit of technical debt. The feature flags created for A/B tests and progressive roll out add unnecessary complexity to the code by providing lesser tested variants of the site appearance and come at a cost to the end-user as we often need to ship multiple styles to support these different modes.

I suggest now is the time we review the technical debt and perform some clean-up before going into the sticky header epic.

Tasks to create when ready...

  • We have a configuration flag (wgVectorShowSkinPreferences) to show the "Use legacy preference". It's true everywhere so canbe removed and no longer be configurable.
  • VectorShowSkinPreferences

To talk to Olga about

Toggle button

Code remains around the default sidebar visibility state. Can these be revised/removed?

  • VectorDefaultSidebarVisibleForAuthorisedUser and VectorDefaultSidebarVisibleForAnonymousUser

Code remains around being able to disable the sidebar persistence preference. it's probably safe to remove this code given there have been no issues.

  • VectorDisableSidebarPersistence

Search

We currently support 2 modes - WVUI search and search suggest. At minimum it seems we should remove associated A/B testing code. Ideally we should get the search enabled on all wikis

  • Remove the VectorSearchTreatmentABTest
  • Remove VectorUseWvuiSearch (make WVUI search the default everywhere, blocked on Commons and Wikidata.org move)

Language

  • VectorLanguageInHeader, currently disabled for mediawiki.org, wikispecies, wikidata and commons. Under what circumstances can we remove this?
  • VectorLanguageInHeaderTreatmentABTest can be removed when we're happy with A/B test running successfully and don't need to run another.

User links

  • VectorConsolidateUserLinks
  • The HTML generating ".skin-vector-consolidated-user-links" is removed.
  • Remove any :not( .skin-vector-consolidated-user-links selectors.

VectorResponsive

Vector works quite well at mobile resolutions. There is also a user preference that allows users to disable it.

How comfortable would we feel enabling responsive mode for users using the desktop skin on mobile devices and removing this feature flag?

Event Timeline

Jdlrobson renamed this task from [EPIC] Address feature flag technical debt by removing feature flags to [GOAL, placeholder] Address feature flag technical debt by removing feature flags.Jul 29 2021, 12:16 AM
Jdlrobson updated the task description. (Show Details)
Jdlrobson triaged this task as Medium priority.Sep 2 2021, 7:27 PM

Pulling out more specific task: T302027