Page MenuHomePhabricator

PageTriage: use MultiselectLookup instead of Lookup for UsernameLookup
Closed, ResolvedPublicFeature

Description

I propose we switch to using MultiselectLookup instead of Lookup for the UsernameLookup component. My patch to T215742 was originally going to include an exclude username option, but I really don't see it being all that useful -- you can only exclude one user.

image.png (306×153 px, 6 KB)

Being able to exclude more users would be much more useful; the same applies to the "Were created by:" username filter. Swapping Lookup for MultiselectLookup seems like the most sensical (from a UX/UI standpoint) and simplest to implement change to accomplish this. I'm willing to make a patch if this is uncontroversial.

TL;DR: Being able to filter to include/exclude multiple users will be much more useful.

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript
Monkeysmashingkeyboards triaged this task as Medium priority.
Monkeysmashingkeyboards updated the task description. (Show Details)

Two comments:

  • Would querying multiple users together cause a SQL timeout?
  • I think the MultiSelectLookup actually wasn't available when we were migrating this interface, which is why this isn't a thing yet :)

I do think we should test this out tho!

Sounds fine to me. Go ahead.

Fyi most phab tags dont use priority level (pagetriage doesnt either), so you dont need to set it. Can save yourself some work :)

Change #1340840 had a related patch set uploaded (by Apehitkey; author: Apehitkey):

[mediawiki/extensions/PageTriage@master] NewPagesFeed: make UsernameLookup use cdx MultiselectLookup, not Lookup

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

Change #1340840 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] NewPagesFeed: make UsernameLookup use cdx MultiselectLookup, not Lookup

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

Test wiki on Patch demo by MSK using patch(es) linked to this task was deleted by MSK via DeleteWikis-MultiDelete:

https://9ad71635f3.catalyst.wmcloud.org/w/