Skip to content

Commit

Permalink
Remove obsolete site roles and routes
Browse files Browse the repository at this point in the history
This is a WIP.

The site/roles route is obsolete. This is an attempt to remove as much
of the obsolete logic as possible, as it has been replaced by the groups
with roles feature.

There is some confusion about which pieces may still be
in use, so further testing is needed to confirm that it doesn't remove
anything necessary.

There may be some unneeded remnants of prior roles logic in files such
as users.rb or ability.rb but this attempt cleans out some of the lower-hanging fruit.
  • Loading branch information
laritakr committed Dec 20, 2023
1 parent b01e6c5 commit b969dad
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 187 deletions.
34 changes: 0 additions & 34 deletions app/controllers/roles_controller.rb

This file was deleted.

36 changes: 0 additions & 36 deletions app/views/roles/index.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

mount BrowseEverything::Engine => '/browse'
resource :site, only: [:update] do
resources :roles, only: %i[index update]
resource :labels, only: %i[edit update]
end

Expand Down
69 changes: 0 additions & 69 deletions spec/controllers/roles_controller_spec.rb

This file was deleted.

31 changes: 0 additions & 31 deletions spec/features/roles_spec.rb

This file was deleted.

16 changes: 0 additions & 16 deletions spec/routing/roles_routing_spec.rb

This file was deleted.

0 comments on commit b969dad

Please sign in to comment.