docbrown/spec
Diogo Osório 3bc51a13cc
Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515)
* Makes the ModeratorsQuery not return an exception on invalid role

The current implementation of the query would yield an exception when
recieving an invalid state parameter. As per the [GH issue
discussion](https://github.com/forem/forem/issues/10060#issuecomment-692295217),
Zhao recommended to change its behaviour and not trigger an exception in
this condition.

This commit does just that. If the state argument is invalid, the query
now returns an empty result set.

* Adds a warning when there are no matching mods

* Re-trigger the build
2020-10-01 12:55:25 -06:00
..
black_box Routine rubocop fixes (#10237) 2020-09-08 12:06:47 -04:00
decorators [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
factories [deploy] Add missing FKs to BadgeAchievements BanishedUsers BufferUpdates (#10366) 2020-09-29 21:43:14 +02:00
fixtures Removed the autoprefixer-rails deprecated gem (#10017) 2020-08-26 17:38:24 -04:00
helpers [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
initializers [deploy] Refactor:Change Unset Var Warnings to Debug Level (#9985) 2020-08-25 09:45:42 +02:00
labor [deploy] Return Cache Bust Response When Busting a Cached Path (#10500) 2020-09-30 17:17:04 -05:00
lib Handling links from different domain (#10479) 2020-09-29 13:36:32 -04:00
liquid_tags Fix bug that arises when a previously tagged comment is deleted (#10486) 2020-09-29 13:43:25 -04:00
mailers [deploy] Add community_name to site config (#9864) 2020-08-19 14:54:40 -04:00
models Add missing presence validators to models (#10495) 2020-10-01 16:15:32 +02:00
policies [deploy] [Admin Tooling] Allow admins unpublish articles from the Mod Actions Panel (#10038) 2020-09-02 16:08:08 -05:00
queries/admin Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515) 2020-10-01 12:55:25 -06:00
requests Fixes 500 error when viewing the "Tag Mods" page without having the role on the database (#10515) 2020-10-01 12:55:25 -06:00
routing Add routes for i18n (#10193) 2020-09-03 17:11:07 -04:00
serializers/search [deploy] Refactor:Remove Reaction Search Code (#10377) 2020-09-23 12:27:50 -05:00
services Split EdgeCache::Bust into Fastly + Nginx-specific classes (#10505) [deploy] 2020-10-01 10:07:51 -07:00
support GitHub liquid tag: add support for img tags with no src attribute (#10470) 2020-09-29 10:37:53 +02:00
system Fixes Omniauth redirect_uri when SiteConfig.app_domain is updated (#10432) 2020-09-24 11:57:51 -06:00
tasks Refactor:Send Welcome Broadcast Notifications From Sidekiq (#9923) 2020-08-21 12:57:08 -04:00
uploaders Flaky Spec Fix:Remove let_it_be Test Prof Helper (#9556) 2020-07-29 11:31:01 +02:00
view_objects Enable Rubocop 0.89 cops and fix Lint/ violations (#9709) 2020-08-10 16:57:12 +02:00
views Update Imgproxy to use predetermined endpoint (#10412) 2020-09-28 18:30:29 -04:00
workers [deploy] Refactor:Remove Reaction Search Code (#10377) 2020-09-23 12:27:50 -05:00
rails_helper.rb [deploy] Allow initial user to sign up and configure app (#10073) 2020-08-31 12:54:22 -04:00
spec_helper.rb Manually load dotenv in test (#9971) 2020-08-24 20:19:03 +02:00