[openstreetmap/openstreetmap-website] Don't order by id when getting last records (PR #5055)

Anton Khorev notifications at github.com
Wed Aug 7 02:11:36 UTC 2024


Ordering by id [happens by default](https://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-last).

Some more `order(:id)` are removed in #5054.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Don't order by id when getting last records

-- File Changes --

    M test/controllers/diary_entries_controller_test.rb (6)
    M test/controllers/user_blocks_controller_test.rb (7)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5055 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240806/3614fc9b/attachment.htm>


More information about the rails-dev mailing list