Page MenuHomePhabricator

Table of filters should be sortable without reloading the page
Open, LowestPublicFeature

Description

Currently, in order to get a table with all filters of enwiki sorted by their number of hits, in decreasing order, I have to

  1. Go to [[Special:AbuseFilter]]
  2. Increase the "Number per page" to 500 (this reloads the page) and click on "Update"
  3. Click on "Hit count" (this reloads the page, but sorts the filters in ascending order of hits)
  4. Click on "Hit count" (and wait the page to be reloaded) again

Sorting the table on client side would save a page reload in the step (4).


Version: unspecified
Severity: enhancement

Details

Reference
bz50839

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:50 AM
bzimport set Reference to bz50839.
bzimport added a subscriber: Unknown Object (MLST).
Daimona lowered the priority of this task from Low to Lowest.Mar 29 2018, 10:42 AM
Daimona subscribed.

This happens because when sorting the table a new query is run, with 'ORDER BY' specified. Avoiding the reload would mean sorting the table via javascript, which would require passing info about every entry (also the ones not in the current page) and implement a JS method to sort values. A lot of work to do, given that the only benefit would be avoiding the reload (and it may also be slower). The only good point in doing this is that if we implement T87862, those values will also be sortable while at the moment (if I'm right) they aren't since they're not in the DB.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.