[openstreetmap/openstreetmap-website] Check if db is writable on oauth authorization pages (PR #5406)

Anton Khorev notifications at github.com
Mon Dec 16 23:27:55 UTC 2024


Redirect to `/offline` from `/oauth2/authorize` if the database is offline.

Instead of this:
![image](https://github.com/user-attachments/assets/7b9511c5-459b-4b6b-aadf-c45fdb038e87)

users will see this:
![image](https://github.com/user-attachments/assets/b1464660-eb53-4575-83ac-63b54720480f)

Fixes #5400
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5406

-- Commit Summary --

  * Check if db is writable on oauth authorization pages

-- File Changes --

    M app/controllers/oauth2_authorizations_controller.rb (2)
    M test/controllers/oauth2_authorizations_controller_test.rb (14)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5406.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5406.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5406
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5406 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241216/3ee3879c/attachment.htm>


More information about the rails-dev mailing list