Skip to content

Commit

Permalink
Merge pull request #1033 from scientist-softserv/i1026-transformers-t…
Browse files Browse the repository at this point in the history
…imeouts-in-disguise-still

i1026 Query using AdminSet model directly
  • Loading branch information
bkiahstroud authored May 24, 2024
2 parents 5ef83d8 + 0a063cb commit 3f8a5e5
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def collections_service
end

def admin_set_id_for_new
Hyrax::AdminSetCreateService.find_or_create_default_admin_set.id.to_s
AdminSet.first.id.to_s
end

def build_form
Expand Down
47 changes: 0 additions & 47 deletions lib/wings/attribute_transformer_decorator.rb

This file was deleted.

22 changes: 0 additions & 22 deletions lib/wings/model_transformer_decorator.rb

This file was deleted.

1 change: 1 addition & 0 deletions spec/requests/work_depositor_role_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
end

it 'can see the work form' do
allow(AdminSet).to receive(:first).and_return(OpenStruct.new(id: 'admin_set/default'))
get new_hyrax_generic_work_path

expect(response).to have_http_status(:success)
Expand Down

0 comments on commit 3f8a5e5

Please sign in to comment.