Page MenuHomePhabricator

Make the popular pages bot database and config page data sync
Closed, ResolvedPublic3 Estimated Story Points

Description

The new popular pages bot has a database, with a single table that keeps track of the projects and the date they were last updated on. However the database does not keep up with the config page, so any new project or deleted project won't be reflected on the db.

Instead of inventing a system to keep them in sync, I'm thinking of dropping the database altogether and instead using the API to get the last revision timestamp for the page. This seems like a quite simple solution with a pretty low chance of false positives (such as when someone other than the bot wrote to the page). We can also investigate if the API can tell us the last time the bot updated that page but I'm not sure if it can.

Event Timeline

@Niharika: Sounds reasonable. You can use the rvuser query string parameter to only retrieve revisions by a specific user.

kaldari triaged this task as Medium priority.Mar 21 2017, 10:35 PM
kaldari set the point value for this task to 3.