Page MenuHomePhabricator

Participants pagination not working correctly when selecting and searching
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Create an event and register with at least 21 participants whose names have at least a letter in common (you can use Test1, Test2, etc.)
  • Go to Special:EventDetails and open the participants tab
  • Select the first user in the list
  • Scroll down to trigger infinite scrolling
  • Select the first dynamically-loaded participant (would be the 21st)
  • Using the search bar at the top, filter the participants for the common part of their names (in my case, I used "Test")
  • Note that the first user is still selected
  • Scroll down to trigger infinite scrolling until you reach the 21st participant

What happens?:
The first 20 participants appear twice: they go 1-20, then 1-20 again, and then it starts from the 21st

What should have happened instead?:
Participants should not be duplicated

Software version (skip for WMF-hosted wikis like Wikipedia):
master

Event Timeline

Restricted Application added a subscriber: Aklapper. ยท View Herald TranscriptJun 30 2023, 11:11 PM

Change 934647 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):

[mediawiki/extensions/CampaignEvents@master] Fix participants pagination when searching and scrolling

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

Change 934647 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Fix participants pagination when searching and scrolling

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

vaughnwalters subscribed.

โœ… Participants are no longer duplicated after searching once infinite scroll has been triggered

Screen Recording 2023-07-05 at 3.26.14 PM.gif (1ร—2 px, 2 MB)