Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rerun script/misc/update-wiki-pages #1767

Closed
wants to merge 1 commit into from
Closed

rerun script/misc/update-wiki-pages #1767

wants to merge 1 commit into from

Conversation

matkoniecz
Copy link
Contributor

@matkoniecz matkoniecz commented Feb 24, 2018

sudo apt install libcpanplus-perl
sudo cpanp i MediaWiki::API YAML::XS
script/misc/update-wiki-pages

I rerun this script as part of debugging of #1762, but I think that there is no good reason for not using this data

It should make diff of PR fixing #1762 cleaner

@matkoniecz
Copy link
Contributor Author

matkoniecz commented Feb 25, 2018

I cleared some caches on wiki and rerun update script what fixed #1762.

EDIT:

For people attempting to figure out similar problems: this Perl script relies on https://www.mediawiki.org/wiki/API:Embeddedin and run queries similar to https://wiki.openstreetmap.org/w/api.php?action=query&list=embeddedin&eititle=Template:KeyDescription&eilimit=500 (further pages may be request by passing eicontinue in &eicontinue= parameters),

At least in this case wiki API failed to include page with a template that exists on it, so it is a wiki bug. I will try to clear Wiki cache by making edit to this page and rerun this script.

There is also https://wiki.openstreetmap.org/w/index.php?title=Special%3AWhatLinksHere&limit=500&target=Template%3AKeyDescription&namespace=0 that is probably using the same internal calls to display similar list and is easier to paginate for humans.

@tomhughes tomhughes closed this in 94ffa36 Feb 25, 2018
@matkoniecz matkoniecz deleted the rerun_script branch February 25, 2018 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant