-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🧹 Hyrax 5 upgrade additional specs #2067
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
f1aae1b
🧹 More spec & controller fixes
laritakr b67df4e
🧹 Begin work on Roles Service
laritakr 2d847c0
🧹 Solr Document Ability Spec
laritakr 16408e3
Rubocop fixes
laritakr 59aafd7
Fix typo of collection variable
laritakr fff9bf3
Reinstate some collections factory overrides
laritakr 02781ee
Revert Rubocop changes
laritakr da06c93
Fix create_default_admin_set_job_spec
laritakr cc8c971
Restore mistakenly removed capta use
laritakr a73a0eb
🧹 Stanford import specs
laritakr e1b6062
Merge branch 'hyrax-5-upgrade'
laritakr 41a9a1e
Make Rubocop happy
laritakr 5d52f3b
Fix typo
laritakr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
let(:ability) { Ability.new(current_user) } | ||
let(:user) { create(:user) } | ||
let(:current_user) { user } | ||
let(:collection_type_gid) { create(:collection_type).gid } | ||
let(:collection_type_gid) { create(:collection_type).to_global_id.to_s } | ||
let(:solr_document) { SolrDocument.new(collection.to_solr) } | ||
let(:id) { collection.id } | ||
|
||
|
@@ -321,7 +321,7 @@ | |
permission_template: collection.permission_template, | ||
agent_type: 'user', | ||
agent_id: user.user_key) | ||
collection.reset_access_controls! | ||
collection.permission_template.reset_access_controls_for(collection:) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rhetorical/Venting: Upstream change brings the Yuck. Shouldn't the collection be able to do this? I mean if it gets things working. But saying |
||
end | ||
|
||
it 'allows most abilities' do | ||
|
@@ -366,7 +366,7 @@ | |
permission_template: collection.permission_template, | ||
agent_type: 'user', | ||
agent_id: user.user_key) | ||
collection.reset_access_controls! | ||
collection.permission_template.reset_access_controls_for(collection:) | ||
end | ||
|
||
it 'allows deposit related abilities' do | ||
|
@@ -413,7 +413,7 @@ | |
permission_template: collection.permission_template, | ||
agent_type: 'user', | ||
agent_id: user.user_key) | ||
collection.reset_access_controls! | ||
collection.permission_template.reset_access_controls_for(collection:) | ||
end | ||
|
||
it 'allows viewing only ability' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we accounting for any captcha errors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know... I'm just putting back what was there before that I removed accidentally.