docbrown/app/controllers
Jacob Herrington 38d56542eb
[deploy] Moderator and admin actions log (#6797)
* Add audit logging for negative reactions

This change saves requests that create negative reactions to the audit
log. We need to be monitoring admin and moderator actions throughout the
app to increase visiblity on how our tools are being used and identify
abuse.

Additionally, this will help east concerns about giving elevated users
more powerful tools.

* Add a basic UI for moderator audit logs

* Log experience level ratings

* Log tag adjustments

* UI tweaks for moderator actions log

* Add logging to internal reactions controller

* Add logging for admin actions on users and articles

* Add searching to the moderator actions table

* Move audit instrumentation out of concern

We are able to use a PORO here instead of using a Rails concern. Moving
this also makes syntax to audit something quite a bit more explicit and
obvious to future developers

* Change moderator logs pagination page length

* Move auditing to after action filters

* Add moderator actions to the internal navbar

* Add request spec for internal moderator actions

* Use request params to populate AuditLog slug
2020-03-26 16:59:24 -05:00
..
admin Add HtmlVariantSuccess and HtmlVariantTrial dashboards (#6262) [deploy] 2020-02-27 08:34:10 -06:00
api/v0 Move user following suggestions to internal API (#6601) [deploy] 2020-03-13 13:37:24 +01:00
concerns [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
incoming_webhooks Add health check endpoint for Mailchimp unsubscribe webhook (#6034) [deploy] 2020-02-12 15:55:21 -05:00
internal [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
notifications
oauth Change Webhook::DestroyJob to Wehook::DestroyWorker and move to sidekiq (#5424) [deploy] 2020-01-13 12:38:10 -06:00
stories Add feed variants with shuffle post-ranking (#6766) [deploy] 2020-03-23 18:09:30 -04:00
additional_content_boxes_controller.rb Fix (some) n+1/eager loading issues (#5294) [deploy] 2020-01-08 18:48:24 -05:00
api_secrets_controller.rb Move from env variables to SiteConfig (#5385) [deploy] 2020-01-07 16:36:24 -05:00
application_controller.rb Fix broken StoriesController#show article with bad chars (#6248) [deploy] 2020-02-24 13:41:06 -05:00
application_metal_controller.rb
article_approvals_controller.rb Allow tag mods to approve posts even if they mod just one tag (#6525) [deploy] 2020-03-08 15:42:38 -04:00
articles_controller.rb Do not render or link to empty rss feeds (#6429) [deploy] 2020-03-03 21:37:51 -05:00
async_info_controller.rb Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
badges_controller.rb
blocks_controller.rb
buffer_updates_controller.rb
buffered_articles_controller.rb Various optimizations (#6249) [deploy] 2020-02-25 13:42:24 -05:00
chat_channel_memberships_controller.rb Remove algolia from chat channel memberships (#6323) 2020-02-27 09:59:12 -05:00
chat_channels_controller.rb Move chat_channel info to internal API (#6581) [deploy] 2020-03-11 13:57:21 +01:00
classified_listings_controller.rb handle missing displayed_classified_listing for moderate views (#6881) [deploy] 2020-03-26 12:24:26 -05:00
comments_controller.rb Create implicit experience level rating vote upon creating of readinglist reaction (#6522) [deploy] 2020-03-10 10:59:49 -04:00
credits_controller.rb
dashboards_controller.rb Use scopes for Follow instead of where all the time (#6149) [deploy] 2020-02-25 19:29:52 -05:00
display_ad_events_controller.rb Ignore unused display_ads columns (#6785) 2020-03-25 17:59:53 -04:00
downloads_controller.rb
email_subscriptions_controller.rb Add accept attribute to the video upload (#6296) 2020-02-26 08:37:47 -05:00
events_controller.rb Return a 404 response If @event is Not Found (#5798) [deploy] 2020-02-03 11:30:52 -05:00
feedback_messages_controller.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
followings_controller.rb Move followings to internal API (#6494) 2020-03-06 19:33:26 +01:00
follows_controller.rb Rename DataDog to Datadog (#6226) 2020-02-21 12:00:30 -05:00
ga_events_controller.rb
github_repos_controller.rb Fix Github repo pin and and unpin (#6582) [deploy] 2020-03-11 17:50:13 +01:00
html_variant_successes_controller.rb Move HtmlVariantSuccessesCreate from job to inline (#5879) [deploy] 2020-02-04 10:24:39 -08:00
html_variant_trials_controller.rb Move HtmlVariantTrial#create inline (#5901) [deploy] 2020-02-04 17:29:46 -08:00
html_variants_controller.rb
image_uploads_controller.rb
liquid_embeds_controller.rb
live_articles_controller.rb Refactor ProfileImage (#5803) 2020-02-07 08:56:16 -05:00
messages_controller.rb Replace ban/banned with suspend/suspended in user facing text (#5816) [deploy] 2020-02-10 10:12:53 -05:00
moderations_controller.rb Show hidden comments on article mod page (#6493) 2020-03-06 16:12:07 -05:00
notification_subscriptions_controller.rb soft save notification_subscription and then check persisted (#5962) [deploy] 2020-02-10 16:37:28 -05:00
notifications_controller.rb Fix behavior of Organization comments and posts urls (#6383) 2020-03-02 11:49:25 -05:00
omniauth_callbacks_controller.rb Fix logging for dev and test environments (#5922) 2020-02-07 10:15:08 -05:00
onboardings_controller.rb Extract Onboarding into its own controller (#6620) 2020-03-16 15:49:28 +01:00
organizations_controller.rb Add nav_image and dark_nav_image fields to org settings form (#6336) [deploy] 2020-02-27 17:33:52 -05:00
page_views_controller.rb Only Update page_views When They Are Valid (ie created) (#5195) [deploy] 2019-12-26 11:28:18 -06:00
pages_controller.rb Create Article#admin_published_with scope (#6794) 2020-03-24 18:15:43 -04:00
partnerships_controller.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
podcast_episodes_controller.rb
podcasts_controller.rb Enable bullet during tests to catch N+1 early (and some cleanups) (#5930) [deploy] 2020-02-07 09:02:22 -05:00
poll_skips_controller.rb
poll_votes_controller.rb
pro_accounts_controller.rb
pro_memberships_controller.rb
profile_pins_controller.rb
pusher_controller.rb
rating_votes_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
reactions_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
reading_list_items_controller.rb Update ReadingListItemsController#update to return NotAuthorized (#5658) 2020-01-23 13:22:48 -05:00
registrations_controller.rb Don't run the service worker on /enter (#6353) 2020-02-28 12:35:15 -05:00
response_templates_controller.rb [deploy] Add response templates to user settings (#6823) 2020-03-26 14:48:00 -04:00
search_controller.rb Allow user, feed, and classified listing searches even when users are not logged in (#6819) 2020-03-25 11:20:13 -05:00
service_worker_controller.rb
shell_controller.rb Add edge caching to shell (#5146) [deploy] 2019-12-16 19:08:59 -05:00
sitemaps_controller.rb Add dynamic monthly sitemaps (#6704) [deploy] 2020-03-19 17:20:23 -04:00
social_previews_controller.rb Custom social preview template for tags (#6290) [deploy] 2020-02-27 17:56:21 -05:00
stories_controller.rb Add ARel SQL quoting to COALESCE (#6804) [deploy] 2020-03-24 15:44:19 +01:00
stripe_active_cards_controller.rb Add DataDog monitors (#6188) 2020-02-25 11:06:25 -08:00
tag_adjustments_controller.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
tags_controller.rb Move onboarding tags from public to internal API (#6329) 2020-03-06 19:34:31 +01:00
twilio_tokens_controller.rb
twitch_live_streams_controller.rb
twitch_stream_updates_controller.rb
user_blocks_controller.rb
users_controller.rb [deploy] Add response templates to user settings (#6823) 2020-03-26 14:48:00 -04:00
video_states_controller.rb Return not_found Response If Video's Related Article is Not Found (#5169) [deploy] 2019-12-19 09:41:59 -06:00
videos_controller.rb Improve video controllers caching and retrieving (#5709) [deploy] 2020-01-27 15:51:12 -05:00