Page MenuHomePhabricator

[AOI][Citation Bot] Fix doibot's manual citation checking capabilities (doibot.html/doibot.php)
Closed, ResolvedPublic

Description

It used to be possible to manually check a page's citations through https://tools.wmflabs.org/citations/doibot.html, which calls doibot.php. The bot started blanking pages it checked and was blocked.

Acceptance criteria:

  • doibot.html works as it did before the bot shutoff
  • It fixes and expands citation templates and either offers a chance to check before posting or posts automatically, and also either runs a thorough check or not.

Event Timeline

Fhocutt claimed this task.
Fhocutt raised the priority of this task from to High.
Fhocutt updated the task description. (Show Details)
Fhocutt added a project: Community-Tech.
Fhocutt moved this task from New & TBD Tickets to In Dev/Progress on the Community-Tech board.

A complication is that I'm not entirely clear on how it did work before the bot shut-off. My dev version seems to be expanding citations fine, but I don't see anything in the code that allows checking wikicode (as the second tickybox promises), so I am wondering how that actually functioned.

This is ready for testing on testwiki, as commented here: https://en.wikipedia.org/wiki/User_talk:Citation_bot#Citation_bot_progress. I have disabled the second tickybox until it's clear whether I should figure out how to actually make it allow checking wikicode.

For clarification, the interface that is ready for testing is https://tools.wmflabs.org/citations-dev/doibot.html.

From the on-wiki discussion, it sounds like there are a few bugs to resolve:

If you agree that these are all blockers, we should create sub-tasks for each of them.

I've made tasks for the first two. I'm not sure about the third--discussion seems to be ongoing in the RfCs in this notice and I'm not clear on what that implies for this bot. Citation bot already uses the pmid, doi, and jstor templates.

doibot.html/doibot.php now run smoothly on testwiki. doibot.php has the capability to check the wikitext to be saved and POST the appropriate request to doibot.php to submit the checked page text.

This seems to be more or less working as expected. There are some minor bugs, but those can followed up afterwards.