Page MenuHomePhabricator

Changing the sorting of the wish index table should jump to the first page
Closed, ResolvedPublic3 Estimated Story Points

Description

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

  • Sort the wish index page by any header.
  • Go to a different page other than first page
  • Sort again

What happens?:

  • The wish index page is sorted by it does NOT go to first page

What should have happened instead?:

  • The wish index page is sorted and it goes to the first page

Derived Requirement

Update the wish index table sorting behavior so that when a user changes the sorting order:

  • The table should reset to the first page automatically.
  • Sorting should correctly apply across all pages, not just the current one.
  • Pagination state should only persist when navigating pages, not when changing the sort order.
Test Steps

Test Case 1: Sorting on First Page

  1. Go to Wish Index.
  2. On the first page, sort the table by a header (e.g., “Title”).
  3. ✅❓❌⬜ AC1: Sorting is applied correctly and user remains on the first page (no unexpected navigation)..

Test Case 2: Sorting After Navigating to Another Page

  1. Go to the Wish Index page.
  2. Navigate to page 2 or beyond.
  3. Sort the table by a header (e.g., “Status” or “Support Count”).
  4. ✅❓❌⬜ AC2: Sorting is applied correctly and table automatically jumps back to page 1

Test Case 3: Sorting by Multiple Headers Sequentially

  1. On the wish index, sort by “Title,” then sort by “Created.”
  2. ✅❓❌⬜ AC3: Each sort correctly applies and after each sort, the user is on the first page

QA Results - Meta Beta

ACStatusDetails
1T405387#11230028
2T405387#11230028
3T405387#11230028

Event Timeline

MusikAnimal set the point value for this task to 3.
HMonroy changed the task status from Open to In Progress.Sep 24 2025, 11:07 PM
HMonroy claimed this task.

Change #1191563 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Jump to first page when sorting wishlist

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

Change #1191563 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Jump to first page when sorting wishlist

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

@HMonroy Confirmed changing the sorting of the wish index table should jump to the first page, as seen in the videos below. I will mark this as Resolved. Thanks for all your work!

Test Result - Meta Beta

Status: ✅ PASS
Environment: Meta Beta
OS: macOS Tahoe 26.0
Browser: Chrome 140
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/Wishes
https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist

Test Steps

Test Case 1: Sorting on First Page

  1. Go to Wish Index.
  2. On the first page, sort the table by a header (e.g., “Title”).
  3. AC1: Sorting is applied correctly and user remains on the first page (no unexpected navigation).
Community_Wishlist/WishesCommunity_Wishlist

Test Case 2: Sorting After Navigating to Another Page

  1. Go to the Wish Index page.
  2. Navigate to page 2 or beyond.
  3. Sort the table by a header (e.g., “Status” or “Support Count”).
  4. AC2: Sorting is applied correctly and table automatically jumps back to page 1
Community_Wishlist/WishesCommunity_Wishlist

Test Case 3: Sorting by Multiple Headers Sequentially

  1. On the wish index, sort by “Title,” then sort by “Created.”
  2. AC3: Each sort correctly applies and after each sort, the user is on the first page

See AC1 and AC2

GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)