We can send an notification email few days (maybe multiple at interval of 5, 2, 1 days) before the key is going to expire.
This could be a simple script ran as a cron job checking on a daily basis when API keys expire.
@pingou can I work on this ? do I need a complete pagure local install for this ?
@ardian, that would be cool if you want to work on it.
You probably don't need the complete local install but you will need the sources (especially pagure.lib since the query to the DB will go there) and a DB (sqlite will do) to have some data in there.
What you could do is write the tests first, for the method in pagure.lib and then in the cron simply call this method, this would allow you to do test-driven development and minimize the environment you'd need to develop :)
hey @ardian are you working on this issue?
can be closed. related pr: https://pagure.io/pagure/pull-request/1058