Page MenuHomePhabricator

Create a service for going from LinkTarget object to EntityId
Closed, ResolvedPublic


From the task breakdown on 11 May T249836#6124657

Create a service that can go from a Title / LinkTarget object to an EntityId object.

  • This is essentially the reverse of TitleLookupBasedEntityTitleTextLookup with some more logic
  • The extra logic would be that from HtmlPageLinkRendererBeginHookHandler::doHtmlPageLinkRendererBegin
    • parse the title part using an entity id parser to get the ID object.
    • make sure that the namespace being used matches the entity type of the parsed ID

Event Timeline

Restricted Application added a project: User-Addshore. · View Herald TranscriptMay 18 2020, 10:26 AM

Change 597101 had a related patch set uploaded (by Addshore; owner: Addshore):
[mediawiki/extensions/Wikibase@master] FP: add LinkTargetEntityIdLookup

Change 597101 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] FP: add LinkTargetEntityIdLookup

Samantha_Alipio_WMDE closed this task as Resolved.Jun 9 2020, 8:54 AM