iftechfoundation / ifdb-suggestion-tracker

Bugs and feature requests for a future IFDB update
10 stars 0 forks source link

Add a cron job to update pending links #398

Open dfabulich opened 9 months ago

dfabulich commented 9 months ago

https://ifdb.org/help-pending-link

The "pending" checkbox for an external link tells IFDB that the file isn't available for download yet, but will be soon. If you check this box, IFDB will do two things:

  • Hide the link on the game's home page, so that users viewing the page won't be confused by a broken link error.
  • Check the URL periodically to see if it's working yet, and remove the "pending" flag as soon as the link works.

This option is especially useful with the IF Archive, because files uploaded to the Archive are not available for download until they're reviewed by administrators. This process usually takes a few days. You could just wait to add the download link until the file appears on the Archive, but the "pending" option saves you that extra editing step. Just check the box, and IFDB will monitor the Archive for you, updating the link as soon as it's working.

I think https://github.com/iftechfoundation/ifdb/blob/main/www/cron-pending.php is supposed to be a CLI tool. I warmed it up, but it seems to be busted.

dfabulich commented 9 months ago

Yeah, cron-pending.php looks like it needs a lot of fixes. (And monitoring…?)