Page MenuHomePhabricator

[Task] Populate badges page props on client
Closed, ResolvedPublic

Description

Katie says we probably need a script.

It should probably do a null edit on all pages on the client that have a badge starting from https://www.wikidata.org/wiki/Special:WhatLinksHere/Q17437796

Event Timeline

Bene raised the priority of this task from to High.
Bene updated the task description. (Show Details)
Bene moved this task from incoming to consider for next sprint on the Wikidata board.
Bene added subscribers: Aklapper, Bene, Lydia_Pintscher and 2 others.

This should be done by someone who has a bot handy. I haven't run a bot in years.
It could easily be done by someone in the community, too.

Oh, I thought this requires a maintenance script. What does the bot exactly need to do? Is purging all pages enough? I can create a script then.

@Bene I would use a bot for this.

all it needs to do is action=purge with a list of titles or page ids.

e.g. https://en.wikipedia.org/w/api.php?action=help&modules=purge

all it needs to do is action=purge with a list of titles or page ids.

e.g. https://en.wikipedia.org/w/api.php?action=help&modules=purge

Are you sure this will be enough? I have purged this one (and the Wikibase item) but the corresponding page_props records have not changed at all.

@Superyetkin we haven't deployed the new code yet to Wikipedia

https://wikitech.wikimedia.org/wiki/Server_Admin_Log

should be very soon though, and think purging just the Wikipedia page is enough.

I think it takes a null-edit. A purge may not be enough to trigger a RefreshLinks job.

Bene added a project: Addwiki.

See https://github.com/Benestar/benebot/blob/master/src/PurgeBadgesPageProps.php for the bot's code.

Update: I will run the bot tomorrow if no issues arise.

Bene moved this task from Doing to Done on the Wikidata-Sprint-2015-09-01 board.