You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the steps in RA_1.15 from the Hyrax testing worksheet, an Admin user making a minor metadata-only edit to a work they did not deposit can save their changes, but then gets a prompt to "Apply changes to contents?" even though visibility/access has not been changed.
Steps to reproduce the behavior in User Interface (UI)
Login as an Admin user
Go to Dashboard > Works > All Works
Edit a work deposited by a different user OR a work you deposited
Make a minor metadata-only edit somewhere in the Description tab (do not adjust Visibility)
Save the changes
See the prompt to "Apply changes to contents? You have changed the access level..."
Actual behavior (include screenshots if available)
Include what version of Hyrax relates to this issue (3.x, 4.x, main branch, etc.) if appropriate, and any relevant error messages/tracebacks if you're reporting a bug.
Sirenia/Fedora 6 docker image - Hyrax 5 rc2
Acceptance Criteria/Expected Behavior
If an admin user edits a work they did not deposit and they do not adjust Visibility, this prompt should not appear
The changes to the work should save and the Admin user should be returned to the view work page
A successful metadata-only edit should be confirmed such as shown in dev.nurax:
Rationale (for feature request only)
Provide the rationale or user story that describes "why" this issue should be addressed. Especially if this is a new feature or significant change to the existing implementation.
If no edits have been made to Visibility, users should not see this prompt.
Related work
Link to related issues or prior related work here.
The text was updated successfully, but these errors were encountered:
when using Valkyrie, the array comparison between @saved_permissions and Hyrax::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.
This is the fix I added for the application we are currently developing for reference:
defpermissions_changed?# Hyrax 5.0.1 override# Sometimes the order of permissions is not the same between saved permissions and new permissions for Valkyrie # I am replacing array comparison (which relies on order) with comparing array sizes and checking for existence of elements in both arrayscasecuration_concernwhenActiveFedora::Base@saved_permissions != curation_concern.permissions.map(&:to_hash)elsenew_permissions=Hyrax::AccessControl.for(resource: curation_concern).permissionssaved_permissions_set=@saved_permissions.to_setnew_permissions.size != @saved_permissions.size || new_permissions.any?{ |e| !saved_permissions_set.include?e}endend
Descriptive summary
While testing the steps in RA_1.15 from the Hyrax testing worksheet, an Admin user making a minor metadata-only edit to a work they did not deposit can save their changes, but then gets a prompt to "Apply changes to contents?" even though visibility/access has not been changed.
Steps to reproduce the behavior in User Interface (UI)
Actual behavior (include screenshots if available)
Include what version of Hyrax relates to this issue (3.x, 4.x, main branch, etc.) if appropriate, and any relevant error messages/tracebacks if you're reporting a bug.
Sirenia/Fedora 6 docker image - Hyrax 5 rc2
Acceptance Criteria/Expected Behavior
A successful metadata-only edit should be confirmed such as shown in dev.nurax:
Rationale (for feature request only)
Provide the rationale or user story that describes "why" this issue should be addressed. Especially if this is a new feature or significant change to the existing implementation.
If no edits have been made to Visibility, users should not see this prompt.
Related work
Link to related issues or prior related work here.
The text was updated successfully, but these errors were encountered: