Page MenuHomePhabricator

Enable sorting of results in Special:Investigate when the results have multiple pages
Open, Needs TriagePublicFeature

Description

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

  • Open Special:Investigate
  • Perform an investigation with one or more accounts/IPs
  • Grow the investigation adding more accounts/IPs, if necessary, until it reaches more than one page

What happens?:

  • Column sorting stops working

What should have happened instead?:

  • Column sorting should still work

Other information (browser name/version, screenshots, etc.):

image.png (915×1 px, 78 KB)

Event Timeline

Dreamy_Jazz subscribed.

@Albertoleoncio which wiki did you see this on and also has this recently changed?

We have recently made a large set of changes to Special:Investigate for T329189, so it would be useful to know whether this is related to that or was present before the changes that were recently made.

Dreamy_Jazz changed the subtype of this task from "Bug Report" to "Feature Request".EditedMay 28 2024, 2:03 PM

I looks like this behaviour is deliberate and was implemented before the changes in T329189.

The reason given for this in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/602121 is that:

Since the results can't be sorted with an indexed query due to the way we aggregate them, they can't be sorted across pages. This means we can't make use of the TablePager's sorting infrastructure.

That means that the code that does sorting using the server was disabled but front-end sorting was enabled. However, the front-end sorting was only enabled when the results span one page. This seems to have been done to avoid confusion as the sorting feature on the table would only apply to that page of results, whereas normally the sorting applies to all pages of the results.

What it would be useful to know is whether you expect the sorting on the table to only apply to the specific page of results or all results.

Considering this isn't a bug per-se (because this was specifically intended in the patch that added the sorting), I am marking this as a feature request.

Dreamy_Jazz renamed this task from Column ordering stops working when Special:Investigate results are displayed on more than one page to Enable front-end sorting of results in Special:Investigate when the results have multiple pages.May 28 2024, 2:05 PM
Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz moved this task from Inbox to Investigate on the CheckUser board.

Considering this isn't a bug per-se (because this was specifically intended in the patch that added the sorting), I am marking this as a feature request.

In other words, we have a classic case of "it's not a bug, it's a feature". hahaha.

I consider the lack of ordering to be particularly problematic, as it hinders one of the most essential functions of Special:Investigate, which is to help understand and organize complex sockpuppetry cases. Perhaps it is possible to imagine other solutions, such as increasing the number of lines per page, for example as it works with edit history of pages.

Dreamy_Jazz renamed this task from Enable front-end sorting of results in Special:Investigate when the results have multiple pages to Enable sorting of results in Special:Investigate when the results have multiple pages.May 29 2024, 7:06 AM