Remove temporary feature flag for Entity Labels in parsed edit summaries in API requests again
Closed, ResolvedPublic

Description

The feature flag $wgWBRepoSettings['tmpEnableLabelsInApiSummaries'] was only introduced temporarily to enable a controlled roll-out. Since those labels are now part of our stable API response, we can remove it again.

See the changes associated with the parent task and subtasks for code that was added and now needs to be cleaned up.

A (likely incomplete) list of places to clean up:

  • Wikibase.default.php
  • Wikibase.ci.php
  • HtmlPageLinkRendererEndHookHandler (including shouldConvertNoBadTitle/shouldConvert)
  • HtmlPageLinkRendererEndHookHandlerTestBase::newInstance()
  • wmf-config/Wikibase.php
  • wmf-config/InitialiseSettings-labs.php:2347

Event Timeline

Michael changed the task status from Open to Stalled.Apr 24 2023, 2:36 PM

Waiting for it being enabled on Wikidata and accepted by community and product. See also T335099

Change 923622 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Remove tmpEnableLabelsInApiSummaries feature flag

https://gerrit.wikimedia.org/r/923622

Change 923623 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Remove wmgWikibaseTmpEnableLabelsInApiSummaries feature flag

https://gerrit.wikimedia.org/r/923623

Change 923622 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Remove tmpEnableLabelsInApiSummaries feature flag

https://gerrit.wikimedia.org/r/923622

Stalled until 1.41.0-wmf.12 is fully rolled out, i.e. we can probably deploy the config change after June 12.

Change 923623 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove wmgWikibaseTmpEnableLabelsInApiSummaries feature flag

https://gerrit.wikimedia.org/r/923623

Mentioned in SAL (#wikimedia-operations) [2023-06-12T13:55:47Z] <lucaswerkmeister-wmde@deploy1002> Started scap: Backport for [[gerrit:923623|Remove wmgWikibaseTmpEnableLabelsInApiSummaries feature flag (T335107)]]

Mentioned in SAL (#wikimedia-operations) [2023-06-12T13:57:08Z] <lucaswerkmeister-wmde@deploy1002> lucaswerkmeister-wmde: Backport for [[gerrit:923623|Remove wmgWikibaseTmpEnableLabelsInApiSummaries feature flag (T335107)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-06-12T14:02:37Z] <lucaswerkmeister-wmde@deploy1002> Finished scap: Backport for [[gerrit:923623|Remove wmgWikibaseTmpEnableLabelsInApiSummaries feature flag (T335107)]] (duration: 06m 49s)

Doesn’t look like there are any references left (this search covers both config and source code):

lucaswerkmeister-wmde@deploy1002 /srv/mediawiki-staging (master $ u=) $ grep -rlF -e tmpEnableLabelsInApiSummaries -e tmpWbsubscribersSensibleOutput
lucaswerkmeister-wmde@deploy1002 /srv/mediawiki-staging (master $ u=) $

Change 939300 had a related patch set uploaded (by Hoo man; author: Hoo man):

[mediawiki/extensions/Wikibase@master] HtmlPageLinkRendererEndHookHandler: Remove stray comment

https://gerrit.wikimedia.org/r/939300

Change 939300 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] HtmlPageLinkRendererEndHookHandler: Remove stray comment

https://gerrit.wikimedia.org/r/939300