Page MenuHomePhabricator

switch miraheze imports from Special:SiteMatrix to Special:WikiDiscover
Closed, ResolvedPublic

Description

Miraheze will stop using SiteMatrix but wikistats pulls data for the Miraheze table from it (the list of public wikis).

It needs to be switched to use

https://meta.miraheze.org/w/api.php?action=wikidiscover

code is at usr/local/bin/wikistats/import_miraheze.php in the wikistats repo

Event Timeline

Change 423585 abandoned by MacFan4000:
switch miraheze imports from Special:SiteMatrix to Special:WikiDiscover

https://gerrit.wikimedia.org/r/423585

MacFan4000 subscribed.

John says the script needs a rewrite.

yea, it does. thanks though

Change 439452 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/debs/wikistats@master] update miraheze import scripts for Special:WikiDiscover

https://gerrit.wikimedia.org/r/439452

Change 439452 merged by Dzahn:
[operations/debs/wikistats@master] update miraheze import scripts for Special:WikiDiscover

https://gerrit.wikimedia.org/r/439452

  • uploaded and merged changed scripts
  • when trying to deploy them:
Notice: /Stage[main]/Wikistats/Git::Clone[operations/debs/wikistats]/Exec[git_pull_operations/debs/wikistats]/returns: error: Your local changes to the following files would be overwritten by merge:
Notice: /Stage[main]/Wikistats/Git::Clone[operations/debs/wikistats]/Exec[git_pull_operations/debs/wikistats]/returns: 	usr/local/bin/wikistats/import_miraheze_combined.sh
Notice: /Stage[main]/Wikistats/Git::Clone[operations/debs/wikistats]/Exec[git_pull_operations/debs/wikistats]/returns: Please, commit your changes or stash them before you can merge.
Notice: /Stage[main]/Wikistats/Git::Clone[operations/debs/wikistats]/Exec[git_pull_operations/debs/wikistats]/returns: Aborting

Has the production instance been used for live hacking?

Change 439455 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/puppet@production] wikistats: update name of miraheze import script

https://gerrit.wikimedia.org/r/439455

Change 439455 merged by Dzahn:
[operations/puppet@production] wikistats: update name of miraheze import script

https://gerrit.wikimedia.org/r/439455

Change 439458 had a related patch set uploaded (by Dzahn; owner: Dzahn):
[operations/debs/wikistats@master] for wikis "with_prefix_w" (miraheze) expect full statsurl in DB

https://gerrit.wikimedia.org/r/439458

Change 439458 merged by jenkins-bot:
[operations/debs/wikistats@master] for wikis "with_prefix_w" (miraheze) expect full statsurl in DB

https://gerrit.wikimedia.org/r/439458

Dzahn claimed this task.

switch is done.

04:12 < mutante> ok, the update is done. http://wikistats.wmflabs.org/display.php?t=mh is now current data and you can sort the various coulmns

1552 wikis detected and updated