Page MenuHomePhabricator

Normalize ReadingLists entry page titles on database reads and writes
Closed, ResolvedPublic2 Estimated Story Points

Description

As a follow up for https://phabricator.wikimedia.org/T419466, we should ensure that when reading list entries are saved to the database, that the page titles are normalized.

Database writes

  • For @local projects (page saved on the current wiki), we should apply Title::newFromText($title)->getPrefixedDBkey() when saving the entries.
  • For cross-wiki projects, we should only convert spaces to underscores in the page titles. e.g. strtr($title, ' ', '_'). We should not use full Title normalization for pages on different wikis since title normalization varies by language and wiki configurations.

Database lookups

  • When we query the database for reading list entries, we should apply the same normalization logic that we use when saving the entries to the DB (see above)

Event Timeline

aude triaged this task as High priority.Apr 1 2026, 4:12 PM
aude moved this task from Incoming to Needs refinement on the Reader Experience Team board.
aude set the point value for this task to 2.Apr 1 2026, 5:53 PM
aude moved this task from Needs refinement to Ready for sprint on the Reader Experience Team board.

Change #1269020 had a related patch set uploaded (by Aude; author: Aude):

[mediawiki/extensions/ReadingLists@master] Normalize ReadingLists entry page titles on database writes

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

Change #1269020 merged by jenkins-bot:

[mediawiki/extensions/ReadingLists@master] Normalize ReadingLists entry page titles on database writes

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

This is done, though not sure if there was QA and signoff.