[openstreetmap/openstreetmap-website] Add show_redactions param to changeset downloads (PR #5724)

Anton Khorev notifications at github.com
Sun Feb 23 17:57:41 UTC 2025


This PR adds a missing feature in osm-website as compared to cgimap.

There's a `show_redactions` parameter which lets moderators see redacted element versions. In osm-website it works with element versions and histories. In cgimap it also works with changeset downloads. Without this parameter it's impossible to know which elements were changed in a given changeset. If you do a redaction and don't record all elements+versions somewhere, you won't be able to check whether everything was redacted correctly. You'll know that something in a changeset was redacted because the changes count won't match the number of elements in the download. But since the elements are missing, you won't be able to check their next versions, and you often need to redact the versions after the target changeset too.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Add show_redactions param to changeset downloads

-- File Changes --

    M app/controllers/api/changesets/downloads_controller.rb (20)
    M test/controllers/api/changesets/downloads_controller_test.rb (56)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/5724 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250223/447bf514/attachment.htm>


More information about the rails-dev mailing list