Page MenuHomePhabricator

Legacy title matching against multiple variants
Closed, ResolvedPublic2 Estimated Story Points

Description

Background

getEquivalentPageTitlesForLookup() ('src/ReadingListRepository.php:1632-1651') builds up
to 5 title variants and filters with rle_title IN (…), because titles were historically
not normalized on write (see the FIXME / T422028). This widens the lookup.

e.g. currently we query WHERE title IN ("United States", "United_States", "united states")

With the title normalization cleanup done, we can query WHERE title ="United_States"

Goal

Once existing rows are normalized, look up only the canonical form (point lookup on
rle_user_project_title).

Acceptance criteria for done

  • The T422028 normalization migration has run over production data.
  • The lookup checks for the canonical title form, as well as capitalization variation.
  • No regression in bookmark detection for previously space/underscore rows.

Event Timeline

Volker_E triaged this task as Medium priority.Aug 11 2026, 9:01 PM
aude raised the priority of this task from Medium to High.Aug 14 2026, 5:42 PM
aude set the point value for this task to 2.Aug 17 2026, 1:56 PM
aude lowered the priority of this task from High to Medium.Aug 17 2026, 7:49 PM

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

[mediawiki/extensions/ReadingLists@master] Remove title variations lookup in ReadingList query

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

Change #1326869 merged by jenkins-bot:

[mediawiki/extensions/ReadingLists@master] Remove title variations lookup in ReadingLists query

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

Jdlrobson-WMF lowered the priority of this task from Medium to Low.Aug 19 2026, 8:21 PM
Etonkovidova subscribed.

Checked on enwiki beta for user search - case, spaces, leading/trailing spaces - all works as expected.

Jdlrobson-WMF assigned this task to aude.
Jdlrobson-WMF updated the task description. (Show Details)