Page MenuHomePhabricator

Make Special:GadgetUsage show how many users deactivate the default gadgets
Open, Needs TriagePublicFeature

Description

In [[special:GadgetUsage]] the default gadgets does not have Statistics only "default" word, but there are some users deactivate these gadgets I want to know how many users deactivated the gadget by something like (default - 10) means there 10 users deactivate this gadget. It is useful to me as Interface admin to decide what to stay a default and what to be optional.

Event Timeline

hubaishan renamed this task from In gadget-usage I want to see how deactivate the default gadgets to In gadget-usage I want to see how many users deactivate the default gadgets.Sep 1 2023, 2:32 PM
Aklapper renamed this task from In gadget-usage I want to see how many users deactivate the default gadgets to Make Special:GadgetUsage show how many users deactivate the default gadgets.Sep 1 2023, 7:07 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".

Change 994614 had a related patch set uploaded (by Hubaishan; author: Hubaishan):

[mediawiki/extensions/Gadgets@master] Show how many users deactivate the default gadgets

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

hubaishan changed the task status from Open to In Progress.Jan 31 2024, 7:26 AM
hubaishan claimed this task.

Main changes in posted patch:

  • delete getDefaultGadgets function in SpecialGadgetUsage.php, because the page now process default and non default gadgets in one block.
  • function formatResult blanked the page now work with array.
  • the page now list gadgets in gadgets-definition order. Old was default gadgets in alphabetic order, then other gadgets in db query order (no order clause in SQL query).
  • fixed a bug of no data when no preference data in DB, but the site has gadgets. Now will list defined gadgets even there isn't any data in DB.
  • when sort by users, the table will give the exact order of gadgets default gadgets may order in mid of list in small wikis.
  • non default hidden gadgets will not be listed even it has data in DB.
Aklapper changed the task status from In Progress to Open.Apr 11 2025, 10:19 PM

Resetting task status from "In Progress" to "Open" as this task has been "in progress" for more than one year (see T380300). Feel free to set that status again, or rather break down into smaller subtasks.