[openstreetmap/openstreetmap-website] Add 'from' and 'to' chageset query parameters (PR #4171)
Anton Khorev
notifications at github.com
Tue Aug 15 16:45:11 UTC 2023
See https://github.com/openstreetmap/openstreetmap-website/pull/4164#issuecomment-1677667971
These parameters work exactly like they do with note searches when notes are sorted by `created_at`.
`time` parameter is left unchanged, but its use together with `order=oldest` is disallowed.
Sorting is restored to `created_at`.
Supersedes #4168
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4171
-- Commit Summary --
* Add tests for changeset order + from..to queries
* Sort changesets by creation time
* Disallow changesets query with both time and order=oldest
* Revert misleading comment about time restriction
* Add 'from' and 'to' changeset query parameters
-- File Changes --
M app/controllers/api/changesets_controller.rb (36)
M test/controllers/api/changesets_controller_test.rb (74)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4171.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4171.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4171
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4171 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230815/289ba088/attachment.htm>
More information about the rails-dev
mailing list