Open abelemlih opened 1 month ago
17 files ±0 17 suites ±0 2h 16m 56s :stopwatch: - 2m 35s 6 704 tests ±0 6 407 :white_check_mark: +1 297 :zzz: ±0 0 :x: - 1 13 175 runs ±0 12 780 :white_check_mark: +1 395 :zzz: ±0 0 :x: - 1
Results for commit b6ce4dd5. ± Comparison against base commit 52af985f.
:recycle: This comment has been updated with latest results.
Fixes
Fixes #6537
Summary
When saving a work in Sirenia, users consistently receive a prompt to verify changes to visibility, even when they did not make any edits to visibility. This is due to an underlying bug in comparing saved permissions with new permissions.
Guidance for testing, such as acceptance criteria or new user interface behaviors:
Type of change (for release notes)
notes-bugfix
Bug FixesDetailed Description
the underlying problem is in this method in
app/controllers/concerns/hyrax/works_controller_behavior.rb
:when using Valkyrie, the array comparison between
@saved_permissions
andHyrax::AccessControl.for(resource: curation_concern).permissions
is always returning false even when permissions are exactly the same, because order in the two arrays is not always the same.Changes proposed in this pull request:
@samvera/hyrax-code-reviewers