Page MenuHomePhabricator

[DeepCat-Gadget] CatGraph could not find the category 'Classical_mechanics_stubs‎'.
Closed, ResolvedPublic

Description

deepcat:"Classical mechanics stubs‎" reports correctly, but randomly reports zero.
'CatGraph could not find the category 'Classical_mechanics_stubs‎'.

The following reproduces the problem:
deepcat:"Classical mechanics stubs‎"
deepcat:Physics
deepcat: "Disambiguation pages"
deepcat:"Classical mechanics stubs‎"

And then these also begin to do the same (begin to report zero)
deepcat: "Optics stubs"
deepcat: Physics

And then this fixes "Physics", but not "Classical Mechanics stubs"
deepcat: "Disambiguation pages"
deepcat: Physics

Event Timeline

Cpiral raised the priority of this task from to Needs Triage.
Cpiral updated the task description. (Show Details)
Cpiral subscribed.

T37402 led me to mw.loader.load( "//de.wikipedia.org/w/index.php?title=User:Christoph Fischer (WMDE)/Gadgets/DeepCat.js&action=raw&ctype=text/javascript" (plus the CSS) on my enwiki acct.

Cpiral renamed this task from [DeepCat-Gadget] page counts are off to [DeepCat-Gadget] CatGraph could not find the category 'Classical_mechanics_stubs‎'..Jan 20 2016, 1:14 AM
Cpiral updated the task description. (Show Details)
Cpiral set Security to None.

Hi Cprial,

I tried the posted examples and by looking at the requests to the CatGraph server I could see the problem:

In deepcat:"Classical mechanics stubs‎" there seems to be an invisible symbol between the quotation mark at the end and the 's'. You can test this by copy&pasting the line somewhere (eg the search) and hitting backspace twice from the end. You will see, that the quotation mark will be deleted but the s stays there. When you now add the quotation mark again the query should execute as successfully.

I am not sure where this invisible signs comes from. In the future development we could make sure that symbols like that get filtered by the gadget.

Thanks for your report!
Fisch