magnusmanske / listeria_rs

Repo for the Wikimedia Listeria bot
https://listeria.toolforge.org/
25 stars 6 forks source link

ListeriaBot does not support single quotes in column headers since the release of 2021-05-28 #77

Open geertivp opened 3 years ago

geertivp commented 3 years ago

I have created a new script https://nl.wikipedia.org/wiki/Wikipedia:Wikiproject/Gendergap/Ontwerp/België/Wiki_Women_Design/Design_Museum_Gent_x_Flanders_DC/ListeriaBot/Query

It fails with the strange message Last line: OK (script page name) not edited:

Last line: OK: Wikipedia:Wikiproject/Gendergap/Ontwerp/België/Wiki_Women_Design/Design_Museum_Gent_x_Flanders_DC/ListeriaBot/Query not edited

The same happens on other Wiki's like https://en.wikipedia.org/wiki/Wikipedia:WikiProject/Wiki_Women_Design_(2020-2021)/ListeriaBot/Query

Existing scripts are also not updated, as far as I can see since 2021-05-28. I assume there is an operational problem since then on the platform? Please urgently investigate/confirm/fix?

geertivp commented 3 years ago

I see the above error when I am logged in.

When I am not logged in and I click on "Update the list now" https://listeria.toolforge.org/index.php?action=update&lang=en&page=Wikipedia:WikiProject/Wiki_Women_Design_(2020-2021)/ListeriaBot/Query generates the following error:

502 Bad Gateway nginx/1.14.2

geertivp commented 3 years ago

Not edited error is still there

Since 11 June the nginx error when not logged in disappeared. I again see the same "not edited" message as when logged in.

The "not edited" error is still not resolved. There is a (wrong) OK message in https://listeria.toolforge.org/botstatus.php because none of the Listeria lists get updated.

@magnusmanske Can this operational error be urgently fixed, please? Which operational component is failing? Who can fix it?

geertivp commented 3 years ago

I have found the problem -- and applied a workaround

In the release of the Hackathon weekend end of May 2021 something changed in the Listeria code, related to column titles containing a single quote.

Before the following code worked.

{{Wikidata list|sparql=# Select all items for this project SELECT ?item ?linkcount WHERE { ?item wdt:P6104 wd:Q107076070; wikibase:sitelinks ?linkcount. } |columns=P18,item,label:naam,P735,P734,alias/nl:alias,description:beschrijving,P937:werklocatie,P19,P20,P569:geboren,P570:gestorven,P27:nationaliteit,P101,P106,P108,P800,P39,P166,P103,?linkcount:pagina's,P21:gender,P990:stem |min_section=1 |sort=label |links=red |thumb=90 |autolist=fallback |summary=itemnumber }}

Now the columns must be coded as:

|columns=P18,item,label:naam,P735,P734,alias/nl:alias,description:beschrijving,P937:werklocatie,P19,P20,P569:geboren,P570:gestorven,P27:nationaliteit,P101,P106,P108,P800,P39,P166,P103,?linkcount:pages,P21:gender,P990:stem

Remark the single quote that was removed from the column title as a workaround to the problem.