[openstreetmap/openstreetmap-website] Add a page to change legacy trace visibility in bulk (PR #7368)
Ruben L. Mendoza
notifications at github.com
Wed Sep 9 12:53:54 UTC 2026
@Rub21 commented on this pull request.
> + assert_routing(
+ { :path => "/traces/mine/legacy_visibility", :method => :patch },
+ { :controller => "traces/legacy_visibilities", :action => "update" }
+ )
+ end
+
+ def test_edit_requires_login
+ get edit_traces_legacy_visibility_path
+ assert_redirected_to login_path(:referer => edit_traces_legacy_visibility_path)
+ end
+
+ def test_edit_shows_only_own_legacy_traces
+ user = create(:user)
+ public_trace = create(:trace, :without_validations, :visibility => "public", :user => user)
+ private_trace = create(:trace, :without_validations, :visibility => "private", :user => user)
+ create(:trace, :visibility => "trackable", :user => user)
I added identifiable, and both current visibilities are now asserted as not listed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7368#discussion_r3968566209
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7368/review/5154499117 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260909/ba7ca62b/attachment.htm>
More information about the rails-dev
mailing list