[openstreetmap/openstreetmap-website] Get the recently closed / reopened / commented notes (Issue #4290)

Anton Khorev notifications at github.com
Sat Oct 14 07:55:27 UTC 2023


https://api.openstreetmap.org/api/0.6/notes/search.xml?from=2021-01-01T00:00:00Z&bbox=-81.761460,3.912338,-81.416420,4.085293&closed=5000

This returns one note, but if you add `sort=updated_at`, you'll get two:

https://api.openstreetmap.org/api/0.6/notes/search.xml?from=2021-01-01T00:00:00Z&bbox=-81.761460,3.912338,-81.416420,4.085293&closed=5000&sort=updated_at

`sort=updated_at` was supposed to be the default value, but https://github.com/openstreetmap/openstreetmap-website/commit/b84799f481e67c7a5cf6964e228c7a617b1defc7

Basically, always specify the `sort` parameter to avoid surprises.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4290#issuecomment-1762705831
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/4290/1762705831 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231014/5a7903e6/attachment.htm>


More information about the rails-dev mailing list