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
I can't decide if the issue is that the converter shouldn't be loading the members unless :members are passed in or if having the listener call the converter is the wrong thing and it should be loading the AF admin set some other way.
One possible solution we have in CalState Scholarworks right now (which is Hyrax 3.6):
# frozen_string_literal: truemoduleWingsmoduleActiveFedoraConverterDecorator### apply attributes to the ActiveFedora modeldefapply_attributes_to_model(af_object)caseaf_objectwhenHydra::AccessControladd_access_control_attributes(af_object)whenActiveFedora::Fileadd_file_attributes(af_object)elseconverted_attrs=normal_attributesaf_object.attributes=converted_attrs.except(:members,:files)# members can have 3 states, not set, empty or full. Only change AF model if explicitly empty or fullifconverted_attrs.keys.include?(:members)members=Array.wrap(converted_attrs.delete(:members))members.empty? ? af_object.try(:ordered_members)&.clear : af_object.try(:ordered_members=,members)af_object.try(:members)&.replace(members)endifconverted_attrs.keys.include?(:files)files=converted_attrs.delete(:files)af_object.files.build_or_set(files)iffilesendendendendendWings::ActiveFedoraConverter.prepend(Wings::ActiveFedoraConverterDecorator)
The text was updated successfully, but these errors were encountered:
Descriptive summary
When editing permissions on an Administrative Set, it loads all the works w/ in the set. This causes the edit to time out.
Steps to reproduce the behavior in User Interface (UI)
Acceptance Criteria/Expected Behavior
Related work
This may be related to #6143
The issue is a combination of https://github.com/samvera/hyrax/blob/main/app/services/hyrax/listeners/active_fedora_acl_index_listener.rb#L22 and https://github.com/samvera/hyrax/blob/main/lib/wings/active_fedora_converter.rb#L154
I can't decide if the issue is that the converter shouldn't be loading the members unless
:members
are passed in or if having the listener call the converter is the wrong thing and it should be loading the AF admin set some other way.One possible solution we have in CalState Scholarworks right now (which is Hyrax 3.6):
The text was updated successfully, but these errors were encountered: