Reenable notifications with new OAuth consumer
Using a new OAuth consumer [1], we can once again display notifications
that the previous consumer [2] no longer has privileges to read due to
T420154 / T421991. This will require users to log in again, but we
already have the necessary code to handle the relevant error since
b6cd1e9722.
The deployment plan for this is:
- Wait for the background runner to be idle, i.e. the following query to return no results: SELECT command_id, command_batch FROM s53976quickcategories.command JOIN s53976quickcategories.background ON command_batch = background_batch WHERE background_auth IS NOT NULL AND command_status = 0; (Ideally we would just wait for there to be no background runs with nonnull background_auth, but apparently there are some perpetually-pending commands that didn’t get cleaned up and didn’t delete their auth data either. I should fix that at some point.)
- Update the OAuth consumer (toolforge envvars, TOOL_OAUTHCONSUMER_KEY + TOOL_OAUTHCONSUMER_SECRET).
- Restart the webservice and the background runner.
[1]: https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/760ac52c957b3964253fbaa884f8abb8
[2]: https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/aa6ef4c336d48c7b406549aff82d8107