[openstreetmap/openstreetmap-website] Get the recently closed / reopened / commented notes (Issue #4290)
Mateusz Konieczny
notifications at github.com
Wed Oct 25 11:51:51 UTC 2023
> https://wiki.openstreetmap.org/w/index.php?title=API_v0.6&type=revision&diff=1959465&oldid=1954119
I reached out to Wiki editor, they replied with https://wiki.openstreetmap.org/w/index.php?title=User_talk:ENT8R&curid=192853&diff=2608297&oldid=2608258
> Thanks for reaching out to me. I looked at the source code again and it looks like the side-effects of using the from parameter without explicitly specifying the sort and/or order are not documented in the Wiki right now. The issue is that in order to achieve backwards compatibility with previous states of the API (where sort and order did not exist yet), when using from to limit the results to a specific date range, this range is applied to the creation date of notes by default (necessary to keep old behavior) while the sorting happens based on the last update of the notes by default. This might lead to the confusion in the linked issue because it is not very clear which date (either creation date or last update) is used to apply the date range to when omitting the sort parameter.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4290#issuecomment-1779096657
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4290/1779096657 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231025/0839db8c/attachment.htm>
More information about the rails-dev
mailing list