docbrown/spec/factories
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
..
activesupport_events.rb Routine rubocop fixes (#4924) 2019-11-25 14:13:22 -05:00
ahoy_message.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
api_secrets.rb Listings creation and update API (#4014) 2019-09-24 07:03:52 -07:00
articles.rb Allow an article's main_image to be removed (#5687) [deploy] 2020-03-10 08:29:59 -07:00
audit_logs.rb [deploy] Moderator and admin actions log (#6797) 2020-03-26 16:59:24 -05:00
backup_data.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
badge_achievements.rb Bump factorybot rails (#475) 2018-08-24 17:28:26 -04:00
badges.rb Ensure model properties in factories are unique (#5190) 2019-12-20 12:21:16 -06:00
banished_users.rb Introduce BanishedUser table (#5589) [deploy] 2020-01-21 17:15:58 -05:00
blocks.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
broadcasts.rb Add welcome thread welcome notification (#6221) [deploy] 2020-03-19 18:57:32 +01:00
chat_channel_memberships.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
chat_channels.rb Ensure model properties in factories are unique (#5190) 2019-12-20 12:21:16 -06:00
classified_listings.rb Add more randomness to factories (#4739) 2019-11-07 13:57:27 -05:00
collections.rb Ensure model properties in factories are unique (#5190) 2019-12-20 12:21:16 -06:00
comments.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
credits.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
data_update_script.rb Document DataUpdateScripts, Add to Deploy Process, Add Development Check (#6068) [deploy] 2020-02-14 11:45:27 -05:00
display_ad_events.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
display_ads.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
doorkeeper_access_grants.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
doorkeeper_access_tokens.rb Update core API endpoints to support access_token (#3644) 2019-08-08 15:55:23 -03:00
doorkeeper_applications.rb Update core API endpoints to support access_token (#3644) 2019-08-08 15:55:23 -03:00
email_authorizations.rb [deploy] Add EmailAuthorization model (#6335) 2020-03-02 12:14:24 -05:00
events.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
feedback_messages.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
field_test_memberships.rb Prune old field tests for ongoing tests (#6540) [deploy] 2020-03-09 16:22:42 -04:00
follow.rb Fix delayed job errors related to follows #1621 (#1835) 2019-02-23 18:16:20 -08:00
github_repos.rb Ensure model properties in factories are unique (#5190) 2019-12-20 12:21:16 -06:00
html_variants.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
identities.rb Add functionality to remove and recover identity (#3377) 2019-07-03 12:01:16 -04:00
mentions.rb Fix mention validation when validating an empty instance (#3188) 2019-06-18 21:36:01 -04:00
messages.rb Implement chatroom (#308) 2018-05-14 12:50:32 -04:00
note.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
notification_subscriptions.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
notifications.rb Create rake Task to Destroy Old Notifications (#5180) [deploy] 2019-12-26 13:17:34 -06:00
organization_memberships.rb Add organizations to user profile (#5583) [deploy] 2020-01-27 13:31:27 -05:00
organizations.rb Fix rubocop Rails.root.path complaints (#5114) 2019-12-16 12:13:15 -05:00
page_views.rb Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
pages.rb Improve test speed (#3957) [ci skip] 2019-09-12 16:17:20 -04:00
podcast_episode_rss_items.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
podcast_episodes.rb Sequence factory podcast episode slugs and guids to ensure uniqueness (#5184) 2019-12-19 19:13:19 -05:00
podcasts.rb Fix rubocop Rails.root.path complaints (#5114) 2019-12-16 12:13:15 -05:00
poll_options.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
poll_skips.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
poll_votes.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
polls.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
pro_memberships.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
profile_pins.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
rating_votes.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
reactions.rb Internal: Add a table for negative reactions (#6751) [deploy] 2020-03-24 16:08:24 -04:00
response_templates.rb Add response templates model and table (#6615) 2020-03-16 09:52:03 +07:00
search_keywords.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
sponsorships.rb Sponsorship: add model (step 1) (#3438) 2019-07-10 15:58:37 -04:00
tag_adjustments.rb Mod tooling: add tags via /mod refactor (#5017) 2019-12-13 13:02:45 -05:00
tags.rb Search Tags in Elasticsearch from Classified Listing and Post Creation (#6024) [deploy] 2020-02-17 08:16:45 -05:00
tweets.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
user_blocks.rb [deploy] Finalize deleting user associations (#5624) 2020-01-23 11:29:47 -05:00
user_counters.rb User counters using PostgreSQL JSON (#5373) [deploy] 2020-02-03 10:35:08 -05:00
users.rb Add response templates for internal usage (#6676) 2020-03-20 11:32:55 -04:00
webhook_endpoints.rb Routine rubocop fixes (#4924) 2019-11-25 14:13:22 -05:00