[openstreetmap/openstreetmap-website] Show tag changes in object history view (PR #6448)
Tom Hughes
notifications at github.com
Wed Oct 15 17:13:10 UTC 2025
@tomhughes commented on this pull request.
> + previous_tags.each do |key, value|
+ unless current_tags.key?(key)
+ changes[key] = { type: :deleted, previous: value }
+ end
+ end
Maybe `previous_tags.keys.difference(current_tags.keys).each` is better?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6448#discussion_r2433381864
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6448/review/3341500268 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251015/fc8af4fa/attachment.htm>
More information about the rails-dev
mailing list