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

hoo created this task.Aug 4 2016, 2:46 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 4 2016, 2:46 PM
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.
Rical added a subscriber: Rical.Aug 5 2016, 12:13 PM
This comment was removed by Rical.
Rical added a comment.Aug 7 2016, 7:33 AM

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

hoo added a comment.Aug 8 2016, 12:05 PM

@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.

Base added a subscriber: Base.Aug 8 2016, 5:43 PM
hoo triaged this task as High priority.Aug 8 2016, 6:16 PM
Rical added a comment.Aug 8 2016, 10:45 PM
This comment was removed by Rical.
hoo added a comment.Aug 8 2016, 11:59 PM

@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.

Rical added a comment.EditedAug 9 2016, 6:27 PM

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.

Rical removed a subscriber: Rical.Mar 20 2018, 11:05 AM