Page MenuHomePhabricator

Sort warning-types in menu by their description, not their internal name
Open, LowPublic

Description

Example config excerpt from en.wikipedia.org:

warning-types:

warning: Vandalism
spam: Spam
attack: Personal attacks
test: Editing tests
delete: Removal of content
blank: Blanking pages
npov: Biased content (not adhering to NPOV)
genre: NPOV genre change
fringe: NPOV fringe
error: Factual errors
bio: Inappropriate biographical content
speedy: Removal of speedy deletion template
afd: Removal of an AFD template
unsor: Failing to cite a verifiable reliable source
nor: Original research
chat: Using talk page as forum
mos: Manual of style

Sorting this list alphabetically by the first column, which is the current behavior, creates a weirdly sorted list in the user interface. I have always wondered about that sorting before I saw the configuration file and finally understood where it comes from.

Please sort this list by the second column.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 10 2018, 10:09 PM

Closing as intentional and not really required, per https://github.com/huggle/huggle3-qt-lx/issues/278 -- Thank you very much for the tip. :)

ToBeFree closed this task as Invalid.Apr 12 2018, 12:43 AM

Oh no. Reopening. This is a maintenance nightmare.

Please make the sorting column configurable, at least.

https://github.com/huggle/huggle3-qt-lx/issues/278#issuecomment-380642117

ToBeFree reopened this task as Open.Apr 12 2018, 1:06 AM

Here's another problem: Renaming the default "warning" seems to break the default vandalism revert key "Q". How should Huggle know that "02100_warning" is the default?

Are all the problems that come with this decision really "intentional"?

Petrb triaged this task as Low priority.May 13 2018, 7:47 PM
Petrb added a subscriber: Petrb.

That shouldn't break anything if you use default-template: "warning" per https://www.mediawiki.org/wiki/Manual:Huggle/Deploying/DefaultConfig.yaml

ToBeFree added a comment.EditedMay 13 2018, 9:08 PM

That shouldn't break anything if you use default-template: "warning" per https://www.mediawiki.org/wiki/Manual:Huggle/Deploying/DefaultConfig.yaml

Oh! That line was completely missing from the en.wikipedia configuration; I should have had a look at the global default too!

Thank you very much for the tip, that actually solved the problem. :)

(Note: This bug isn't affecting the reporter anymore, but might still be nice to have)

Restricted Application added a subscriber: RichSmith. · View Herald TranscriptMay 13 2018, 9:08 PM