[openstreetmap/openstreetmap-website] Added (un)hide note comments API endpoint (PR #3438)
mmd
notifications at github.com
Fri Jan 28 21:07:41 UTC 2022
Adding the API part to address #1934 to hide/unhide single note comments for moderators. The code is very closely following the existing changeset comment hide / destroy implementation.
NotesController `comment` method could be moved to the new NoteCommentsController, to more closely follow the overall design in ChangesetCommentsController. I left that for another request to keep this one as small as possible.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/3438
-- Commit Summary --
* Added (un)hide note comments API endpoint
-- File Changes --
M .rubocop.yml (8)
M app/abilities/api_ability.rb (1)
M app/abilities/api_capability.rb (1)
A app/controllers/api/note_comments_controller.rb (52)
M config/routes.rb (3)
A test/controllers/api/note_comments_controller_test.rb (100)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/3438.patch
https://github.com/openstreetmap/openstreetmap-website/pull/3438.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3438
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/3438 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220128/cdebd7c1/attachment.htm>
More information about the rails-dev
mailing list