Page MenuHomePhabricator

Usage tracking table for JsonConfig data pages
Closed, ResolvedPublic5 Estimated Story Points

Description

Implementing the usage tracking tables envisioned in T370378; this will live mostly in JsonConfig but may need explicit invocation from Chart, and work is being done as part of the Charts task force:

  • in a shared database, likely x1 in production:
    • globaljsonlinks, globaljsonlinks_source_ns, globaljsonlinks_target tables with wiki id, namespace name, and titles broken out to help avoid duplicate string storage

[todo: paste or reference the full ADR]

Internally, JsonConfig will add an API for recording usage of a data page into a ParserOutput, and then on page update/creation/deletion will update the local and/or tracking tables.

The global tracking table will contain only cross-wiki links; local refs will be in core's templatelinks.

Acceptance Criteria
  • It's possible to see which Data: namespace pages are used across wikis.

Event Timeline

CCiufo-WMF set the point value for this task to 5.Sep 23 2024, 6:31 PM
CCiufo-WMF moved this task from Backlog to Sprint 7 on the Charts board.
CCiufo-WMF edited projects, added: Charts (Sprint 7); removed: Charts.
CCiufo-WMF edited projects, added: Charts (Sprint 8); removed: Charts (Sprint 7).
CCiufo-WMF moved this task from Incoming to Doing on the Charts (Sprint 8) board.

Change #1076272 had a related patch set uploaded (by Seddon; author: Bvibber):

[mediawiki/extensions/JsonConfig@master] Initial shared usage tracking for cross-wiki JSON data references

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

CCiufo-WMF edited projects, added: Charts (Sprint 9); removed: Charts (Sprint 8).
CCiufo-WMF moved this task from Incoming to Code Review on the Charts (Sprint 9) board.

Brooke and Tim will meet later today to get this merged today.

Patch was merged (thanks Tim for pairing with Brooke!). Anything left to do on this one @bvibber or can we continue in T374746?

Let's close it out -- the Chart-side patch is officially part of next task T374746 :D