Page MenuHomePhabricator

Implement new usage types for qualifiers and references
Open, In Progress, Needs TriagePublic

Description

User Story
As an engineer, I want qualifiers and references to have their own usage tracking types, so that we can independently manage and control the collapsing limit for them.

Formerly:
Statements (this included statement changes or reference or qualifiers)

The new setup would be:

  • Statement changes (includes changes to mainSnak, may include changes to ref/qual)
  • Statement change refOrQualifierOnly

image.png (1×1 px, 254 KB)

Note:

  • we will not extract them as a separate change (e.g. reference only). This means there will be less multiplying of changes.
  • currently we expect to combine qualifier/reference tracking for simplicity

Background

Acceptance Criteria
Make a new kind of usage tracking type, and adjust the definition of the statement type, as described above

Reference
https://phabricator.wikimedia.org/T106287

Event Timeline

seanleong-WMDE renamed this task from Implement new usage types for qualifiers and references to [Blocked] Implement new usage types for qualifiers and references.Aug 6 2025, 1:11 PM
seanleong-WMDE changed the task status from Open to Stalled.

@Lydia_Pintscher - would having a 'qualifier or reference' usage type work here, or is it better to track them separately?

My gut feeling is to track them separately but I don't have more to back that up. I guess the question we would need to answer is "Are qualifiers and references usually accessed together from the client"? If so then I believe the answer is that these two are not correlated much but don't have data for it.

Ladsgroup subscribed.

We could go with modifiers. Something like C.P21Q and C.P21R (or introduce second layer modifier: C.P21.Q) That would make things much easier?

SuzanneWood-WMDE renamed this task from [Blocked] Implement new usage types for qualifiers and references to Implement new usage types for qualifiers and references.Sep 3 2025, 7:29 AM

Change #1185060 had a related patch set uploaded (by Joely Rooke WMDE; author: Joely Rooke WMDE):

[mediawiki/extensions/Wikibase@master] Implement new usage types for statement with qualifiers and references

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

Change #1191301 had a related patch set uploaded (by Joely Rooke WMDE; author: Joely Rooke WMDE):

[mediawiki/extensions/Wikibase@master] Translations for new usage types for statement with qualifiers and references

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

Change #1191301 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Translations for new usage types for statement with qualifiers and references

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

seanleong-WMDE changed the task status from Stalled to In Progress.Mon, Sep 29, 8:44 AM

Change #1185060 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Implement new usage types for statement with qualifiers and references

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

Change #1195755 had a related patch set uploaded (by Joely Rooke WMDE; author: Joely Rooke WMDE):

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.22] Implement new usage types for statement with qualifiers and references

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

Change #1195755 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.22] Implement new usage types for statement with qualifiers and references

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

Mentioned in SAL (#wikimedia-operations) [2025-10-14T07:32:15Z] <dcausse@deploy2002> Started scap sync-world: Backport for [[gerrit:1195755|Implement new usage types for statement with qualifiers and references (T401290)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-14T07:36:36Z] <dcausse@deploy2002> joelyrookewmde, dcausse: Backport for [[gerrit:1195755|Implement new usage types for statement with qualifiers and references (T401290)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-14T07:43:05Z] <dcausse@deploy2002> Finished scap sync-world: Backport for [[gerrit:1195755|Implement new usage types for statement with qualifiers and references (T401290)]] (duration: 10m 50s)

Change #1197274 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Neslihan Turan):

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197276 had a related patch set uploaded (by Neslihan Turan; author: Neslihan Turan):

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197276 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Revert "Implement new usage types for statement with qualifiers and references"

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

Mentioned in SAL (#wikimedia-operations) [2025-10-20T14:27:50Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1197276|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-20T14:31:56Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde, neslihanturan: Backport for [[gerrit:1197276|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

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

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Restore "Implement new usage types for statement with qualifiers and references"

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

Change #1197281 merged by Lucas Werkmeister (WMDE):

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Restore "Implement new usage types for statement with qualifiers and references"

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

Mentioned in SAL (#wikimedia-operations) [2025-10-20T14:46:50Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1197281|Restore "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-20T14:51:05Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde: Backport for [[gerrit:1197281|Restore "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-20T14:55:31Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:1197281|Restore "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] (duration: 08m 43s)

Change #1197289 had a related patch set uploaded (by Seanleong-wmde; author: Seanleong-wmde):

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references". This patch temporary fixes the CQR aspects not found error as well which will be patched asap.

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

Change #1197289 abandoned by Lucas Werkmeister (WMDE):

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references"

Reason:

squashed into Ib6ddef47e5

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

Change #1197293 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Neslihan Turan):

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197274 abandoned by Lucas Werkmeister (WMDE):

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references"

Reason:

recreated as I3709641e75 (same change, different Change-Id) so we can cherry-pick it to wmf.23 a second time

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

Change #1197294 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Neslihan Turan):

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197294 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.23] Revert "Implement new usage types for statement with qualifiers and references"

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

Mentioned in SAL (#wikimedia-operations) [2025-10-20T16:02:30Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1197294|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-20T16:07:13Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde: Backport for [[gerrit:1197294|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-20T16:19:14Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:1197294|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] (duration: 16m 43s)

Change #1197608 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Neslihan Turan):

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.24] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197608 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@wmf/1.45.0-wmf.24] Revert "Implement new usage types for statement with qualifiers and references"

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

Mentioned in SAL (#wikimedia-operations) [2025-10-21T10:17:13Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:1197608|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]]

Mentioned in SAL (#wikimedia-operations) [2025-10-21T10:21:29Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde: Backport for [[gerrit:1197608|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-10-21T10:26:29Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:1197608|Revert "Implement new usage types for statement with qualifiers and references" (T401290 T407684 T407744)]] (duration: 09m 15s)

Change #1197293 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Revert "Implement new usage types for statement with qualifiers and references"

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

Change #1197626 had a related patch set uploaded (by Joely Rooke WMDE; author: Joely Rooke WMDE):

[mediawiki/extensions/Wikibase@master] Revert^2 "Implement new usage types for statement with qualifiers and references"

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