Page MenuHomePhabricator

Add sysop_itwiki to Wikistats
Closed, DeclinedPublic

Description

title is self-explanatory :).

Related Objects

StatusSubtypeAssignedTask
ResolvedUrbanecm
DeclinedNone

Event Timeline

added to database

MariaDB [wikistats]> insert into wmspecials (prefix,name,lang,loclang,url,statsurl,method) values ('sysop-it','Italian Sysops Wiki','Italian','Italiano','sysop-it.wikipedia.org','https://sysop-it.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=statistics','8');

But unfortunately the API does not allow read access to even get the stats numbers:

[code] => readapidenied
  [info] => You need read permission to use this module.

Can that be changed or ?... if not.. then this ticket would have to be declined because I can't fetch numbers from this wiki.

@Urbanecm @Daimona What do you think.. can the statistics numbers be public if the rest of the wiki is private? Or should it just not be listed in the stats tables?

I think it should be treated as any other private wiki. I created this task as the on wiki docs for adding a wiki doesn't make a public/private difference. It that should be changed, feel free to edit them.

I don't know if the definition of "private" wiki also automatically contains "readapidenied" for "meta=siteinfo&siprop=statistics" in all cases or not. That was the question.

I don't know if the definition of "private" wiki also automatically contains "readapidenied" for "meta=siteinfo&siprop=statistics" in all cases or not. That was the question.

Ah, I'm sorry, I misunderstood the question then. Yes, all private wikis require authentication for all API calls, including meta=siteinfo&siprop=statistics.

Thanks, that means the ticket needs to be declined because it can't get numbers. And the on wiki docs should be updated.

I made this edit to the docs:

https://wikitech.wikimedia.org/w/index.php?title=Add_a_wiki&action=historysubmit&type=revision&diff=1878904&oldid=1878829

declined to add wiki, resolved to fix docs ;)