docbrown/spec
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
..
black_box Adjust type tags for RSpec (#4864) 2019-11-20 13:01:30 -05:00
decorators Switch decorators to Rails builtin decorations - take 2 (#6125) [deploy] 2020-02-19 15:30:53 -05:00
factories [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
fixtures Allow an article's main_image to be removed (#5687) [deploy] 2020-03-10 08:29:59 -07:00
helpers Introduce app_url helper (#6715) 2020-03-19 15:03:26 +01:00
initializers Refactor Elasticsearch client access (#6307) [deploy] 2020-02-28 11:38:37 -05:00
labor return default aspect ratio of 1 if gif id is not present and refactor (#6837) [deploy] 2020-03-25 11:21:47 -05:00
lib sync feed content documents in Elasticsearch (#6888) [deploy] 2020-03-26 13:11:09 -05:00
liquid_tags Allow KaTeX to render inline (#6670) [deploy] 2020-03-17 10:42:41 +01:00
mailers Add a form to email users from internal (#6668) 2020-03-17 11:19:42 -04:00
models Some RSpec fixes (#6757) 2020-03-24 13:16:19 -04:00
policies Ignore unused articles columns (#6781) 2020-03-25 17:48:42 -04:00
requests [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
routing Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
serializers/search Index comments into FeedContent index (#6791) [deploy] 2020-03-24 09:24:20 -05:00
services Allow users to opt-out of welcome notifications (#6852) [deploy] 2020-03-26 11:26:19 -07:00
support Some RSpec fixes (#6757) 2020-03-24 13:16:19 -04:00
system ensure article published dates are far enough apart to ensure they are sorted properly (#6811) 2020-03-24 10:10:22 -05:00
uploaders Some RSpec fixes (#6757) 2020-03-24 13:16:19 -04:00
views Create specs for users/edit.html.erb (#6739) 2020-03-20 11:29:20 -04:00
workers Log Elasticsearch index counts to Datadog (#6845) [deploy] 2020-03-25 15:52:54 -05:00
rails_helper.rb Replace observers with callbacks and remove rails-observers (#6675) 2020-03-18 09:58:36 +01:00
spec_helper.rb Temporarily comment out random (#2486) 2019-04-18 11:56:38 -04:00