Page MenuHomePhabricator

MergeHistory: Avoid querying master DB for the purpose of trivial message variation
Closed, ResolvedPublic

Description

SpecialMergeHistory uses Title::exists( Title::READ_LATEST ) (which may query master) to decide whether to append additional explanatory message to the output. However, MergeHistory authoritatively knows whether the page is deleted or not and if it passes this fact to the special page, then the special page would have no need to make that query (which can even be unreliable after all due to T265775)

Related Objects

Event Timeline

Ammarpad renamed this task from MergeHistory should query master for the purpose of trivial message variation to MergeHistory: Avoid querying master DB for the purpose of trivial message variation.Mar 24 2021, 9:56 AM

Change 674520 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] MergeHistory: Avoid potential DB query for trivial message variation

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

Change 674520 merged by jenkins-bot:

[mediawiki/core@master] MergeHistory: Avoid potential DB query for trivial message variation

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