docbrown/config
Julianna Tetreault 71b35f28a0
Remove Roles via Admin (#12582) [deploy]
* Add the ability to remove a role from a non-super_admin in Admin::UsersController
 - Adds a #destroy action to the Admin::UsersController
 - Adds a destroy route for the action

* Add a removal button to non-super_admin roles on admin user pages
  - Pulls Current Roles out of _activity and into own partial
  - Adds a _current_roles partial to /admin/users/show
  - Adds REMOVE buttons to non-super_admin roles
  - Conditionally renders REMOVE buttons for certain roles only

* Add tests around the removal of roles to users_manage_spec

* Adjust formatting of link_to in _current_roles.html.erb

* Use :aggregate_failures in role-related tests in users_manage_spec.rb

* Refactors Admin::UsersController#destroy and role params

* Update admin/users_spec.rb to take into account _current_roles partial

* Replace REMOVE text with X on role removal buttons

* Add additional elsif to handle single_resource_admin removal
  - Adds resource_type params to Admin::UsersController
  - Adds elsif to handle removal of single_resource_admin roles
  - Adds resource_type to the removal button in _current_roles
  - Adds a spec around removing single_resource_admin roles

* Add .constantize to resource_type in Admin::UsersController

* Move .constantize to resource_type arg rather than params in #destroy

* Use .safe_constantize rather than .constantize for params[:resource_type]

* Remove .safe_constantize from params and onto inline var instead

* Add nil check to removal of :single_resource_admin role in #destroy

* Update users_manage_spec.rb to remove proper role in test

* Add resource_name to current user and super admin _current_roles list

* Add additional test around removing :single_resource_admin role
2021-02-16 10:50:10 -07:00
..
elasticsearch/mappings Remove language settings (#12502) 2021-02-04 08:35:00 +07:00
environments Bug Fix:Fix development.rb to Correctly Detect Rails command (#12191) 2021-01-11 08:49:20 -06:00
fastly/snippets Add onboarding param to safe list (#11814) 2020-12-08 13:34:53 -05:00
initializers Optimization:Throttle Tag Index Endpoints (#12520) 2021-02-03 11:14:54 -05:00
locales [deploy] Invite users to join and create password (#9294) 2020-07-15 11:37:19 -04:00
webpack E2E Test: Initial Adminisitrator Login Flow (#11840) 2020-12-11 13:44:18 -05:00
application.rb Move back from after_initialize to explicit call (#11881) 2020-12-14 17:16:27 -05:00
blazer.yml Add tag smart variable to Blazer config (#11640) 2020-11-30 21:50:28 +07:00
boot.rb Upgrade to Rails 6.0 (#7658) 2020-06-04 11:54:25 +02:00
cable.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
database.yml Rubocop: address feedback of #9430 and use kwargs (#9538) 2020-07-29 11:13:36 +02:00
environment.rb Rails 6: enable zeitwerk autoloader (#8766) 2020-06-22 16:27:55 +02:00
field_test.yml Declare winner in feed_top_articles_query test (#12308) 2021-02-04 13:02:00 -05:00
puma.rb [deploy] Enable Puma's nakayoshi_fork feature (#11121) 2020-10-28 09:22:44 -04:00
routes.rb Remove Roles via Admin (#12582) [deploy] 2021-02-16 10:50:10 -07:00
schedule.yml Add descriptions to scheduled tasks (#12345) 2021-01-20 16:32:22 +01:00
secrets.yml Initial commit 2018-02-28 16:11:08 -05:00
sidekiq.yml setup sidekiq queues for different priority jobs (#5300) [deploy] 2019-12-30 10:16:52 -06:00
sitemap.rb [deploy] Enable admin-configured app_domain (#10206) 2020-09-11 09:38:34 -04:00
spring.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
storage.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
webpacker.yml Moved from resolved_paths (deprecated) to additional_paths. (#9982) 2020-08-24 16:08:16 -04:00