[openstreetmap/openstreetmap-website] Use created_at instead of updated_at for searching notes through the API (#2380)

ENT8R notifications at github.com
Wed Oct 2 21:16:25 UTC 2019


Is there a specific reason why in
https://github.com/openstreetmap/openstreetmap-website/blob/83983bfc6a31c2da0af6f18137cd31ba40519191/app/controllers/api/notes_controller.rb#L301
the notes (via the `/api/0.6/notes/search` call) are sorted by their `updated_at` value?
Actually I can't really think of any reason right now as sorting it by `created_at` sounds a lot more plausible to me and that was actually the behaviour I would expect from that API call...

If there is a reason why `updated_at` is rather used than `created_at`, maybe it would be feasible to add another parameter specifying the wanted sorting value?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2380
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191002/22292f29/attachment.html>


More information about the rails-dev mailing list