docbrown/app/services
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
..
articles Add feed variants with shuffle post-ranking (#6766) [deploy] 2020-03-23 18:09:30 -04:00
audit [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
aws Remove unused code (#2567) [ci skip] 2019-04-26 12:16:16 -04:00
broadcasts/welcome_notification Allow users to opt-out of welcome notifications (#6852) [deploy] 2020-03-26 11:26:19 -07:00
credits Refactor all has_enough_credits to enough_credits (#5119) 2019-12-16 15:00:59 -05:00
edge_cache/commentable CacheBuster refactoring (#4766) 2019-11-13 10:51:23 -05:00
exporter Refactor method in articles.rb (#5094) 2019-12-13 08:23:19 -05:00
giphy Deduplicate giphy_img? function and add tests (#4590) 2019-10-30 11:40:17 -04:00
mentions Fix comment author being notified when mentioning itself (#4456) 2019-10-25 10:23:45 -04:00
moderator Hide banished users vomit confirmations and delete vomit reactions on banish (#6507) [deploy] 2020-03-06 15:35:30 -05:00
notifications Allow users to opt-out of welcome notifications (#6852) [deploy] 2020-03-26 11:26:19 -07:00
payments Add DataDog monitors (#6188) 2020-02-25 11:06:25 -08:00
podcasts Dont let HTTParty::RedirectionTooDeep Errors kill Podcast Ep. Update Workers (#6735) [deploy] 2020-03-20 08:19:14 -05:00
pro_memberships Remove UserHistory Feature and PageViews from Algolia (#6127) [deploy] 2020-02-18 10:06:30 -05:00
rss_reader Remove leading whitespace in tags during RSS import (#6671) 2020-03-17 10:48:39 -04:00
search Log Elasticsearch index counts to Datadog (#6845) [deploy] 2020-03-25 15:52:54 -05:00
secrets Use a sortable unique ID for the event_id (#3972) 2019-09-09 10:15:12 -04:00
slack Add URL module and article_url, user_url helpers (#6833) 2020-03-25 13:54:45 -04:00
streams Don't try to register webhook when twitch returns empty data (#3219) 2019-06-18 21:34:06 -04:00
suggester Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
user_blocks Remove algolia from chat channel memberships (#6323) 2020-02-27 09:59:12 -05:00
users Add response templates model and table (#6615) 2020-03-16 09:52:03 +07:00
webhook Move Webhook::DispatchEventJob to Sidekiq (#5722) [deploy] 2020-01-27 14:36:27 -05:00
analytics_service.rb Various optimizations (#6249) [deploy] 2020-02-25 13:42:24 -05:00
article_api_index_service.rb Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
article_with_video_creation_service.rb Fix rubocop detected offenses (#4552) 2019-10-24 11:53:03 -04:00
authorization_service.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
bulk_sql_delete.rb Use SQL DELETE statement to delete notifications without a SELECT (#5303) [deploy] 2019-12-31 07:30:27 -06:00
chat_channel_creation_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
chat_channel_update_service.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
get_unseen_notifications_service.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
medium_article_retrieval_service.rb Nokogiri::HTML should receive the body, not the response object (#5297) 2019-12-31 08:46:49 -05:00
notifications.rb Remove notifiable access from articles and comments notifications (#5415) [deploy] 2020-01-09 10:19:45 -05:00
ping_admins.rb Add Slack messengers: part 1 (#6748) 2020-03-24 18:45:40 +01:00
read_notifications_service.rb Organization Notifications (#1762) 2019-02-25 14:25:37 -08:00
rss_reader.rb Move SlackBotPingJob to Sidekiq (#5615) 2020-01-22 08:24:33 -05:00
tag_adjustment_creation_service.rb Mod tooling: add tags via /mod refactor (#5017) 2019-12-13 13:02:45 -05:00
tag_adjustment_update_service.rb [WIP] Allow mods to remove tags and send user notification (#1252) 2018-12-04 16:45:32 -05:00