Page MenuHomePhabricator

Parser and Lua functions should track changes to 'formatter URL' property
Open, Needs TriagePublic

Description

When {{#statement:Pxxx}} is used on a wiki page to generate an external link, it always consumes the "formatter URL" of the Pxxx property. (The same applies to Lua functions like mw.wikibase.formatValue.)
When this "formatter URL" statement is updated, the pages have to be re-parsed (purged) to show the correct link.
Use Wikibase usage tracking to deliver these updates (e.g., aspect C.P1630).

Note that the option formatterUrlProperty is only available to the repository, which makes this somewhat non-trivial.

See T112081: [Story] purge cached renderings of IDs when the formatter URL changes for a similar story on the repository.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

@matej_suchanek , this is good point. I think it is not related to usage aspect C directly. Can you please elaborate ?
Currently either someone access it explicitly (getEntity(P214)) or implicitly using formatValue and similar stuff. I think it is/should be handled in UsageTrackingSnakFormatter.

PS: C is going to be evaluated soon in https://gerrit.wikimedia.org/r/#/c/375544/ (if this could have any negative impact please -1 there)

Now this is not being tracked at all and we are not able to focus a single property. So the only way is to use an inaccurate aspect (O/X) that tracks all changes to the property, which are irrelevant to individual articles. With C introduction, the aspect will be as simple as C.P1630.