Page MenuHomePhabricator

Remove Title in public interface of Parser
Open, MediumPublic

Description

  • First step: widen types in method signatures to accept PageReference, PageIdentity or LinkTarget instead. (Done except for setTitle)
  • Second step: widen types in method signatures to return PageReference, PageIdentity or LinkTarget instead (BREAKING!). (Done except for getTitle)
  • Third step: survey callers of methods that return a Title (alone or as part of a tuple), and see of we can return a PageIdentity instead.
  • Hard-deprecate setTitle() and getTitle()
  • remove setTitle() and getTitle()
  • Forth step: change callback signatures so they no longer require a Title (and, while we are at it, remove the need to have a RevisionRecord)

Event Timeline

Change 682328 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] Parser: remove Title from method signatures

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

Change 682328 merged by jenkins-bot:

[mediawiki/core@master] Parser: remove Title from method signatures

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

daniel triaged this task as Medium priority.May 24 2022, 8:09 AM
daniel updated the task description. (Show Details)

Change 872473 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/Kartographer@master] Replace deprecated Parser::getTitle

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

Change 872473 merged by jenkins-bot:

[mediawiki/extensions/Kartographer@master] Replace deprecated Parser::getTitle

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

Change 872987 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/extensions/GeoCrumbs@master] Replace deprecated Parser::getTitle

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

Change 872987 merged by jenkins-bot:

[mediawiki/extensions/GeoCrumbs@master] Replace deprecated Parser::getTitle

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