[openstreetmap/openstreetmap-website] Add UserMute to control private message visibility (PR #4284)

Gregory Igelmund notifications at github.com
Thu Nov 2 08:09:18 UTC 2023


@grekko pushed 35 commits.

4e7fb7c236f3387bc67546de2f0cbc2232fba0a9  Create UserMute, add Message#muted-flag
8ae2be2867bd05a31ab217e2937ee2692133c9ce  Basic controllers, routes, ability
573e005385188f03271dca99a5af122bc8075a86  Add UI, locales, extract messages/_heading
cb8078602db32df9a8194042e4c2e13e2b6f9cc6  script/deliver-message: Respect muted messages
ebc2cb27e3c56af10cefa8e4f05bfca533d9494c  Restore messages table
7a9af417f5f9bf9bf5f47e9f8ec881d4ae003ee3  Messages: Add actions column
548a696ad394f1d9327dd90edf7fd7eab1916650  Never mute admins
141b2f3d78eaf5f905cd4a709ad604715d82409c  Add UserMutes#index, allow unmuting messages
f79c6b748ec817f4a0d30871c95d6b274258e905  Rephrase/Reformat UserMutes#index page
5bb4806ee90a287fb60a3e775cdf2306555e20fd  Users#show: Rephrase mute actions, add title w/ explainer to Mute action
1c1fba738a4cd47972f82f6582842d9d043680d7  Delint, thanks rubocop
65007bb3bb0dce66c8fa8c1a65f4f812a1004cff  Add test to verify correct Mailer behaviour
bc6017451861549484cf0ece415761e9865c1aa3  Rephrase comment
327a7a5f160cf8c56fe8c3e49ed9b6c4599e22ef  UserMutes#index: Add i18n for site title
dab29cc221d5b6aa9491833610fa18d4570d4ef3  messages/_message_summary.html.erb: Revert rename message{_summary,}
c1b2aeb0d37c31fd3c9a90e26d0f6e45d141ad41  UserMute: rename creator -> owner, appointee -> subject
6da8d1c232a4d81852c7bfc5fff55b522d4b2f75  Drop UserMute.active_for?
cf4952212771f33b4696e1c57ffc04c5d37d35aa  Run erblint 🎉
ab44671c7dfe235216de772485eab05c883b1a4c  Use specific error messages for UserMutes#{create,destroy}
b4b59aab2e7f8c664f80da357e135fa0cc13400a  Rephrase the mute-limitations for Admin/Moderator subjects
042eebc7e4a4145ebcd18f40b29d32e89697dedf  Add missing locales
6a0a78a03c1ed31e348bb17b679d593fd43ea88b  Fix syntax error introduced by erblint
b17eb77240d393fda05a071b9e1d6ef327e05839  Add basic integration test
9fd6f098a95fc05385a082adbed6fc85fe42d903  Messages#unmute: Rewrite message query scope
328caaed9fb74d52effe530891db54d3b08c71d2  config/locales/en.yml: Change Capitalisation of `Users` -> `users`
4a910dfa2c725db236cd8055a30d21e027a84f69  Replace deprecated redirect_back w/ redirect_back_or_to
e987ea04acd56891f2e5b9acdc3aa4981bb596ce  Update db/structure.sql
8c69a19955dc90a3eae79b853b40a8383186a553  Rename integration test to avoid class name collision
ac654777636a493336a598a24675cd2aff1ae6db  Add controller test, add missing locales
52f7e75612b96ab622f2e295715283d992fa4f30  Solve I18nTest#test_en_for_zero_key error by extracting locale
16a1e15d34c8e7c51957df8d65f37c7d605676b6  UserMutesController#destroy: Scope mute query on current_user
130f7601c11b26588c3271273c49548a684080ab  UserMute#create: Custom error message, add tests
bec21ed8ea510df0d8916ba3343c6c78ee0fd237  MessageTest: Add test to cover Message#unmute
830faf7656f87d611ea34cfcc7c87981c9b1f622  Extract UserMailer-call from Modelinto Controller/Script context
5e5f081035bcee70f0fafec44eab348eb4d8e30d  Refactor UserMute#for_message? -> #active?

-- 
View it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4284/files/501d324472d919961e8ab0c923daae34f3ec73b1..5e5f081035bcee70f0fafec44eab348eb4d8e30d
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4284/push/15663641759 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231102/fd26ebac/attachment.htm>


More information about the rails-dev mailing list