Page MenuHomePhabricator

UsernameLookup: Update `initialInputValue` prop
Closed, ResolvedPublic2 Estimated Story Points

Description

The initialInputValue prop of the Lookup component was deprecated as of Codex v1.12.0 and has been removed as of Codex v2.0.0-rc.1 in favor of the inputValue prop, which is set via v-model. The UsernameLookup component in the PageTriage extension is still using the deprecated prop and should be updated ASAP to prevent an interruption in user experience (the Lookup should still work, but if there's an initial selection, it won't display in the input). Codex v2.0.0-rc.1 will ride the deployment train the week of 2025-05-11.

Please reference the Lookup docs to learn how to use the inputValue prop.


Acceptance criteria

  • Update the UsernameLookup component to use the CdxLookup component's inputValue prop instead of initialInputValue

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
jsn.sherman moved this task from Inbox to To be estimated on the Moderator-Tools-Team board.
jsn.sherman subscribed.

getting this in the queue for us to work on ASAP

Kgraessle set the point value for this task to 2.Tue, May 13, 3:09 PM
Kgraessle moved this task from To be estimated to Estimated on the Moderator-Tools-Team board.
DMburugu raised the priority of this task from High to Unbreak Now!.Tue, May 13, 4:11 PM

Change #1145311 had a related patch set uploaded (by Kgraessle; author: Kgraessle):

[mediawiki/extensions/PageTriage@master] UsernameLookup: Update `initialInputValue` prop

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

Given this will be broken in the current train, should it be marked as a train blocker?

Seems like a really minor bug to me. I don't think it needs to be a train blocker / don't think it needs a backport. Special:NewPagesFeed still works, it just doesn't auto fill the username text box when filtering by username, then closing and re-opening the filters panel.

Agreed, this shouldn't need to block the train

Change #1145311 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] UsernameLookup: Update `initialInputValue` prop

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