[openstreetmap/openstreetmap-website] A new foundation for user notifications (PR #6837)
Tom Hughes
notifications at github.com
Wed Mar 18 18:30:24 UTC 2026
@tomhughes commented on this pull request.
> @@ -55,4 +55,18 @@ def test_body_valid
assert_not_predicate changeset_comment, :valid?, "#{body} is valid when it shouldn't be"
end
end
+
+ def test_notifiable_subscribers
+ commenter1 = create(:user)
+ commenter2 = create(:user, :suspended)
+ commenter3 = create(:user)
+ commenter4 = create(:user)
+ changeset = create(:changeset)
+ create(:changeset_subscription, :changeset => changeset, :subscriber => commenter1)
+ create(:changeset_subscription, :changeset => changeset, :subscriber => commenter2)
+ create(:changeset_subscription, :changeset => changeset, :subscriber => commenter3)
Should we be subscribing `commenter4` here as well, so that we are checking that it excludes the author from the list of notifiable subscribers?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6837#pullrequestreview-3969989472
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6837/review/3969989472 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260318/17beefd2/attachment-0001.htm>
More information about the rails-dev
mailing list