Page MenuHomePhabricator

Decide how to do usage tracking for strings used to lookup entities (page titles, external ids, …)
Open, HighPublic

Description

We have a few bugs open that call for functionality to select entities by a given selector string (a sitelink or similar things) in wiki pages (by using Lua or even a parser function).

In order to provide that, we need a way to track such usages and purge in case something relevant changes. The current usage tracking can't handle this, because it can only track usages of entities by entity id. Unless we consider these cases negligible, we will need new usage tracking functionality for selectors that don't match an entity, thus the selector itself needs to be tracked, so that we can purge once the selector matches an entity.
Also this will be relevant should we not restrain the suggested lookups to only ever return one item per selector.

Usage tracking data for that would probably look like: (page id, selector type, selector value)

Event Timeline

Danny_B renamed this task from [RfC] Decide how to do usage tracking for strings used to lookup entities (page titles, external ids, …) to Decide how to do usage tracking for strings used to lookup entities (page titles, external ids, …).Aug 4 2016, 6:42 PM
Danny_B added a project: Proposal.
This comment was removed by Rical.

I just edited the before "Long term stability" proposition.

@Rical: I don't fully get your comments. They seem to be unrelated for the issue at hand: Decide how to track strings that are used to select entities (1:1 relation).

Could you please open a new bug and add more information about the problem you are trying to solve? You might also want to delete the comments here, as they are off topic for this specific RfC.

hoo triaged this task as High priority.Aug 8 2016, 6:16 PM
This comment was removed by Rical.

@Rical I still don't fully get your proposal.

I don't think this should be part of this ticket, but rather be an own ticket, as I don't think this is crucial for concluding this specific RfC.

Sorry, I misunderstoud something. My comments were about the task T133498 "Any title in wikibase can give its item id to modules".
Now I move my comment in T133498 and delete my previous comments here.