Page MenuHomePhabricator

Huggle fails to send the correct warning to vandals
Closed, ResolvedPublic

Description

Hi. I have just noticed today on eswiki that when you use the revert & warn feature, Huggle fails to issue the correct warning. As you can see, huggle first issue a level 1 warning, then a level 2 warning and finally a level 1 warning again, when it should be a level 3 warning (es:template:prueba3). Can this be fixed? Thank you.


Version: 3.1.4
Severity: normal
URL: https://es.wikipedia.org/w/index.php?title=Usuario_discusi%C3%B3n:179.27.2.170&action=history

Details

Reference
bz73231

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:46 AM
bzimport added a project: Huggle.
bzimport set Reference to bz73231.

You don't have section in configuration file that contains definitions for template parser. No wonder it's broken. You need to insert something like

warning-template-tags:

1;<!-- Template:uw-vandalism1 -->,
1;<!-- Template:uw-spam1 -->,
1;<!-- Template:uw-biog1 -->,
1;<!-- Template:uw-npa1 -->,
1;<!-- Template:uw-disruptive1 -->,
1;<!-- Template:uw-test1 -->,
1;<!-- Template:uw-huggleafd1 -->,
1;<!-- Template:Huggle/warn-1 -->,
1;<!-- Template:Huggle/warn-blank-1 -->,
1;<!-- Template:Huggle/warn-bio-1 -->,
1;<!-- Template:Huggle/warn-unsor-1 -->,
1;<!-- Template:Huggle/warn-test-1 -->,
1;<!-- Template:uw-delete1 -->,
1;<!-- Template:uw-unsourced1 -->,
2;<!-- Template:uw-vandalism2 -->,
2;<!-- Template:uw-huggleafd2 -->,
2;<!-- Template:Huggle/warn-2 -->,
2;<!-- Template:Huggle/warn-blank-2 -->,
2;<!-- Template:Huggle/warn-bio-2 -->,
2;<!-- Template:uw-spam2 -->,
2;<!-- Template:uw-biog2 -->,
2;<!-- Template:uw-disruptive2 -->,
2;<!-- Template:uw-test2 -->,
2;<!-- Template:Huggle/warn-unsor-2 -->,
2;<!-- Template:Huggle/warn-test-2 -->,
2;<!-- Template:uw-npa2 -->,
2;<!-- Template:uw-delete2 -->,
2;<!-- Template:uw-unsourced2 -->,
3;<!-- Template:uw-vandalism3 -->,
3;<!-- Template:uw-biog3 -->,
3;<!-- Template:uw-huggleafd3 -->,
3;<!-- Template:Huggle/warn-3 -->,
3;<!-- Template:Huggle/warn-blank-3 -->,
3;<!-- Template:Huggle/warn-bio-3 -->,
3;<!-- Template:uw-spam3 -->,
3;<!-- Template:uw-npa3 -->,
3;<!-- Template:uw-disruptive3 -->,
3;<!-- Template:uw-test3 -->,
3;<!-- Template:Huggle/warn-unsor-3 -->,
3;<!-- Template:Huggle/warn-test-3 -->,
3;<!-- Template:uw-delete3 -->,
3;<!-- Template:uw-unsourced3 -->,
4;<!-- Template:uw-vandalism4 -->,
4;<!-- Template:Huggle/warn-4 -->,
4;<!-- Template:uw-spam4 -->,
4;<!-- Template:uw-spam4im -->,
4;<!-- Template:uw-huggleafd4 -->,
4;<!-- Template:Huggle/warn-blank-4 -->,
4;<!-- Template:Huggle/warn-bio-4 -->,
4;<!-- Template:Huggle/warn-unsor-4 -->,
4;<!-- Template:Huggle/warn-test-4 -->,
4;<!-- Template:uw-biog4 -->,
4;<!-- Template:uw-disruptive4 -->,
4;<!-- Template:uw-test4 -->,
4;<!-- Template:uw-vandalism4im -->,
4;<!-- Template:Huggle/warn-4im -->,
4;<!-- Template:Huggle/warn-blank-4im -->,
4;<!-- Template:Huggle/warn-bio-4im -->,
4;<!-- Template:Huggle/warn-unsor-4im -->,
4;<!-- Template:Huggle/warn-test-4im -->,
4;<!-- Template:uw-npa4 -->,
4;<!-- Template:uw-delete4 -->,

That means, huggle don't know which template is which warnings, unless you tell it how to recognize it. These defs need to contains some identification strings that are present in each of these warnings, depends on the warning template.

Ok, I see. I was sysop on eswiki some time ago. As the /Config page over there is outdated I can no longer edit it; but it looks overall kind of outdated... Can you please provide us with a complete and updated config page to update the eswiki page? - I mean, which parts are outdated, missing, etc... so we can have a fully functioning Huggle on eswiki. Best regards.

I am trying to make huggle do that. When you login you should see number of warnings regarding configuration page.

I updated your configuration page so that it has at least some information but most of templates are probably still not there, also, you are using same template for all 3 warnings in some cases which makes it impossible for huggle to verify which level it is

I have also updated the /Config page and now seems to work fine. I'm then closing the bug. Thanks for your help.