[openstreetmap/openstreetmap-website] Stop using session flash to communicate with callbacks (PR #5658)

Tom Hughes notifications at github.com
Wed Feb 12 00:18:04 UTC 2025


Using flash for this is silly, and has weird effects as observed in the fact that I had to fix a test which had accidentally relied on fetching user details from the API causing a session to spring into existence because it wrote to flash.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Stop using session flash to communicate with callbacks

-- File Changes --

    M app/controllers/accounts/terms_controller.rb (3)
    M app/controllers/api/users_controller.rb (12)
    M app/controllers/api_controller.rb (8)
    M app/controllers/application_controller.rb (4)
    M app/controllers/concerns/session_methods.rb (9)
    M app/controllers/sessions_controller.rb (4)
    M test/integration/user_blocks_test.rb (2)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5658 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250211/8597ff94/attachment.htm>


More information about the rails-dev mailing list