Skip to content

Instantly share code, notes, and snippets.

@mark-dce
Created November 12, 2021 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mark-dce/004ad0d3c5b03a62ff223e016a3627dc to your computer and use it in GitHub Desktop.
Save mark-dce/004ad0d3c5b03a62ff223e016a3627dc to your computer and use it in GitHub Desktop.
Actor stack environment dump
in /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/controllers/concerns/hyrax/works_controller_behavior.rb
197: # @return [#errors]
198: def create_work
199: byebug
200: case curation_concern
201: when ActiveFedora::Base
=> 202: actor.create(actor_environment)
203: else
204: form = build_form
205:
206: @curation_concern =
(byebug) curation_concern === ActiveFedora::Base
false
(byebug) ActiveFedora::Base === curation_concern
true
(byebug) actor_environment
... lots of HTTP fetches and database calls, then sometime later ...
#<Hyrax::Actors::Environment:0x00007fc817d05700 @curation_concern=#<Work id: nil, head: [], tail: [], depositor: nil, title: [], date_uploaded: nil, date_modified: nil, state: nil, proxy_depositor: nil, on_behalf_of: nil, arkivo_checksum: nil, owner: nil, alternative_title: [], label: nil, relative_path: nil, import_url: nil, resource_type: [], creator: [], contributor: [], description: [], abstract: [], keyword: [], license: [], rights_notes: [], rights_statement: [], access_right: [], publisher: [], date_created: [], subject: [], language: [], identifier: [], based_near: [], related_url: [], bibliographic_citation: [], source: [], access_control_id: nil, representative_id: nil, thumbnail_id: nil, rendering_ids: [], admin_set_id: nil, embargo_id: nil, lease_id: nil>, @current_ability=#<Ability:0x00007fc8049201e8 @current_user=#<User id: 3, email: "mark@curationexperts.com", created_at: "2021-11-10 22:05:32", updated_at: "2021-11-10 22:06:23", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil, preferred_locale: "en">, @user=#<User id: 3, email: "mark@curationexperts.com", created_at: "2021-11-10 22:05:32", updated_at: "2021-11-10 22:06:23", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil, preferred_locale: "en">, @options={}, @cache=#<Blacklight::AccessControls::PermissionsCache:0x00007fc80491bd00 @cache={}>, @user_groups=["public", "admin", "registered"], @rules=[#<CanCan::Rule:0x00007fc802ee63e0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[String], @conditions={}, @block=#<Proc:0x00007fc802ee6840 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hydra-access-controls-11.0.7/lib/hydra/ability.rb:42>>, #<CanCan::Rule:0x00007fc802ec46a0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x00007fc802ec6090 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hydra-access-controls-11.0.7/lib/hydra/ability.rb:46>, @expanded_actions=[:edit, :update, :edit, :edit, :versions, :file_manager, :destroy]>, #<CanCan::Rule:0x00007fc802ea61f0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x00007fc802ea6560 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hydra-access-controls-11.0.7/lib/hydra/ability.rb:50>>, #<CanCan::Rule:0x00007fc802e8c390 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[String], @conditions={}, @block=#<Proc:0x00007fc802e8d060 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:58>>, #<CanCan::Rule:0x00007fc802e7e8f8 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x00007fc802e7eba0 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:62>>, #<CanCan::Rule:0x00007fc802e6f3d0 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x00007fc802e74038 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hydra-access-controls-11.0.7/lib/hydra/ability.rb:59>, @expanded_actions=[:read, :index, :show, :show, :discover, :files, :stats, :citation]>, #<CanCan::Rule:0x00007fc802e5f188 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[String], @conditions={}, @block=#<Proc:0x00007fc802e5f1b0 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:47>>, #<CanCan::Rule:0x00007fc802e47f88 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[SolrDocument], @conditions={}, @block=#<Proc:0x00007fc802e4c010 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/blacklight-access_controls-0.6.2/lib/blacklight/access_controls/ability.rb:51>>, #<CanCan::Rule:0x00007fc802e37098 @match_all=false, @base_behavior=true, @actions=[:discover], @subjects=[ActiveFedora::Base], @conditions={}, @block=#<Proc:0x00007fc802e37138 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hydra-access-controls-11.0.7/lib/hydra/ability.rb:67>, @expanded_actions=[:discover]>, #<CanCan::Rule:0x00007fc802e278f0 @match_all=false, @base_behavior=true, @actions=[:download], @subjects=[String], @conditions={}, @block=#<Proc:0x00007fc802e27c88 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability.rb:102>>, #<CanCan::Rule:0x00007fc802e1f290 @match_all=false, @base_behavior=true, @actions=[:download], @subjects=[Hyrax::SolrDocument], @conditions={}, @block=#<Proc:0x00007fc802e1fd08 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability.rb:106>>, #<CanCan::Rule:0x00007fc802bd76e0 @match_all=false, @base_behavior=true, @actions=[:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy], @subjects=[Role(id: integer, name: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8040cd518 @match_all=false, @base_behavior=true, @actions=[:create, :show, :add_user, :remove_user, :index, :edit, :update, :destroy, :manage], @subjects=[User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string, preferred_locale: string, invitation_token: string, invitation_created_at: datetime, invitation_sent_at: datetime, invitation_accepted_at: datetime, invitation_limit: integer, invited_by_type: string, invited_by_id: integer, invitations_count: integer)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8040b6c78 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[:admin_dashboard], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80408ffb0 @match_all=false, @base_behavior=true, @actions=[:update], @subjects=[:appearance], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80408c360 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[String], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc804074a30 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[FileSet, Collection, Work], @conditions={}, @block=nil, @expanded_actions=[:manage]>, #<CanCan::Rule:0x00007fc80405c6d8 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Sipity::WorkflowResponsibility(id: integer, agent_id: integer, workflow_role_id: integer, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80404dd68 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[:collection_types], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80403e2a0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :destroy], @subjects=[Hyrax::Resource], @conditions={}, @block=#<Proc:0x00007fc80403e778 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability.rb:117>>, #<CanCan::Rule:0x00007fc804015c38 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[Hyrax::Operation(id: integer, status: string, operation_type: string, job_class: string, job_id: string, type: string, message: text, user_id: integer, parent_id: integer, lft: integer, rgt: integer, depth: integer, children_count: integer, created_at: datetime, updated_at: datetime)], @conditions={:user_id=>3}, @block=nil>, #<CanCan::Rule:0x00007fc8207f5630 @match_all=false, @base_behavior=true, @actions=[:collect], @subjects=[:all], @conditions={}, @block=nil, @expanded_actions=[:collect]>, #<CanCan::Rule:0x00007fc8207df8d0 @match_all=false, @base_behavior=true, @actions=[:edit, :update, :toggle_trophy], @subjects=[User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string, preferred_locale: string, invitation_token: string, invitation_created_at: datetime, invitation_sent_at: datetime, invitation_accepted_at: datetime, invitation_limit: integer, invited_by_type: string, invited_by_id: integer, invitations_count: integer)], @conditions={:id=>3}, @block=nil>, #<CanCan::Rule:0x00007fc8207ce238 @match_all=false, @base_behavior=true, @actions=[:show], @subjects=[User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string, preferred_locale: string, invitation_token: string, invitation_created_at: datetime, invitation_sent_at: datetime, invitation_accepted_at: datetime, invitation_limit: integer, invited_by_type: string, invited_by_id: integer, invitations_count: integer)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8207bedd8 @match_all=false, @base_behavior=true, @actions=[:create, :destroy, :update], @subjects=[FeaturedWork(id: integer, order: integer, work_id: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc82079d0c0 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8207952a8 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[:admin_dashboard], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc82077fa20 @match_all=false, @base_behavior=true, @actions=[:update], @subjects=[ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc820776f38 @match_all=false, @base_behavior=true, @actions=[:edit], @subjects=[SolrDocument], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc82076e388 @match_all=false, @base_behavior=true, @actions=[:read], @subjects=[Hyrax::Statistics], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc82040e0f8 @match_all=false, @base_behavior=true, @actions=[:transfer], @subjects=[String], @conditions={}, @block=#<Proc:0x00007fc82040f598 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability.rb:167>>, #<CanCan::Rule:0x00007fc803065360 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80304d800 @match_all=false, @base_behavior=true, @actions=[:accept], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:receiving_user_id=>3, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x00007fc80302d640 @match_all=false, @base_behavior=true, @actions=[:reject], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:receiving_user_id=>3, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x00007fc80301c138 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)], @conditions={:sending_user_id=>3, :status=>"pending"}, @block=nil>, #<CanCan::Rule:0x00007fc80300c670 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime), BatchUploadItem], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802b4fda8 @match_all=false, @base_behavior=true, @actions=[:destroy], @subjects=[Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime)], @conditions={:user=>#<User id: 3, email: "mark@curationexperts.com", created_at: "2021-11-10 22:05:32", updated_at: "2021-11-10 22:06:23", guest: false, facebook_handle: nil, twitter_handle: nil, googleplus_handle: nil, display_name: nil, address: nil, admin_area: nil, department: nil, title: nil, office: nil, chat_id: nil, website: nil, affiliation: nil, telephone: nil, avatar_file_name: nil, avatar_content_type: nil, avatar_file_size: nil, avatar_updated_at: nil, linkedin_handle: nil, orcid: nil, arkivo_token: nil, arkivo_subscription: nil, zotero_token: nil, zotero_userid: nil, preferred_locale: "en">}, @block=nil>, #<CanCan::Rule:0x00007fc802b3d950 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Hyrax::Feature(id: integer, key: string, enabled: boolean, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802b2c5d8 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[AdminSet], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802b1cfc0 @match_all=false, @base_behavior=true, @actions=[:manage_any], @subjects=[AdminSet], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802b052f8 @match_all=false, @base_behavior=true, @actions=[:create_any], @subjects=[AdminSet], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802ae47d8 @match_all=false, @base_behavior=true, @actions=[:view_admin_show_any], @subjects=[AdminSet], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802acf248 @match_all=false, @base_behavior=true, @actions=[:review], @subjects=[:submissions], @conditions={}, @block=#<Proc:0x00007fc802acf298 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability/admin_set_ability.rb:30>>, #<CanCan::Rule:0x00007fc802ab47e0 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Collection], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802a9efd0 @match_all=false, @base_behavior=true, @actions=[:manage_any], @subjects=[Collection], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802a6cb48 @match_all=false, @base_behavior=true, @actions=[:create_any], @subjects=[Collection], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802a57040 @match_all=false, @base_behavior=true, @actions=[:view_admin_show_any], @subjects=[Collection], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc802a45b60 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Hyrax::CollectionType(id: integer, title: string, description: text, machine_id: string, nestable: boolean, discoverable: boolean, sharable: boolean, allow_multiple_membership: boolean, require_membership: boolean, assigns_workflow: boolean, assigns_visibility: boolean, share_applies_to_new_works: boolean, brandable: boolean, badge_color: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8029fc758 @match_all=false, @base_behavior=true, @actions=[:create_collection_type], @subjects=[Hyrax::CollectionType(id: integer, title: string, description: text, machine_id: string, nestable: boolean, discoverable: boolean, sharable: boolean, allow_multiple_membership: boolean, require_membership: boolean, assigns_workflow: boolean, assigns_visibility: boolean, share_applies_to_new_works: boolean, brandable: boolean, badge_color: string)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8029de320 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[Hyrax::PermissionTemplate(id: integer, source_id: string, visibility: string, created_at: datetime, updated_at: datetime, release_date: date, release_period: string), Hyrax::PermissionTemplateAccess(id: integer, permission_template_id: integer, agent_type: string, agent_id: string, access: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc8028b65b0 @match_all=false, @base_behavior=true, @actions=[:manage], @subjects=[SolrDocument], @conditions={}, @block=nil>, #<CanCan::Rule:0x00007fc80287cf40 @match_all=false, @base_behavior=true, @actions=[:create, :destroy], @subjects=[Trophy(id: integer, user_id: integer, work_id: string, created_at: datetime, updated_at: datetime)], @conditions={}, @block=#<Proc:0x00007fc80287e8b8 /Users/mark/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/hyrax-3.1.0/app/models/concerns/hyrax/ability.rb:302>>, #<CanCan::Rule:0x00007fc802835b40 @match_all=false, @base_behavior=true, @actions=[:create], @subjects=[FileSet, Collection, Work], @conditions={}, @block=nil, @expanded_actions=[:create, :new]>], @rules_index={String=>[0, 3, 6, 9, 15, 30], ActiveFedora::Base=>[1, 5, 8], SolrDocument=>[2, 4, 7, 28, 50], Hyrax::SolrDocument=>[10], Role(id: integer, name: string)=>[11], User(id: integer, email: string, encrypted_password: string, reset_password_token: string, reset_password_sent_at: datetime, remember_created_at: datetime, created_at: datetime, updated_at: datetime, guest: boolean, facebook_handle: string, twitter_handle: string, googleplus_handle: string, display_name: string, address: string, admin_area: string, department: string, title: string, office: string, chat_id: string, website: string, affiliation: string, telephone: string, avatar_file_name: string, avatar_content_type: string, avatar_file_size: integer, avatar_updated_at: datetime, linkedin_handle: string, orcid: string, arkivo_token: string, arkivo_subscription: string, zotero_token: binary, zotero_userid: string, preferred_locale: string, invitation_token: string, invitation_created_at: datetime, invitation_sent_at: datetime, invitation_accepted_at: datetime, invitation_limit: integer, invited_by_type: string, invited_by_id: integer, invitations_count: integer)=>[12, 22, 23], :admin_dashboard=>[13, 26], :appearance=>[14], FileSet=>[16, 52], Collection=>[16, 43, 44, 45, 46, 52], Work=>[16, 52], Sipity::WorkflowResponsibility(id: integer, agent_id: integer, workflow_role_id: integer, created_at: datetime, updated_at: datetime)=>[17], :collection_types=>[18], Hyrax::Resource=>[19], Hyrax::Operation(id: integer, status: string, operation_type: string, job_class: string, job_id: string, type: string, message: text, user_id: integer, parent_id: integer, lft: integer, rgt: integer, depth: integer, children_count: integer, created_at: datetime, updated_at: datetime)=>[20], :all=>[21], FeaturedWork(id: integer, order: integer, work_id: string, created_at: datetime, updated_at: datetime)=>[24], ContentBlock(id: integer, name: string, value: text, created_at: datetime, updated_at: datetime, external_key: string)=>[25, 27], Hyrax::Statistics=>[29], ProxyDepositRequest(id: integer, work_id: string, sending_user_id: integer, receiving_user_id: integer, fulfillment_date: datetime, status: string, sender_comment: text, receiver_comment: text, created_at: datetime, updated_at: datetime)=>[31, 32, 33, 34], Hyrax::UploadedFile(id: integer, file: string, user_id: integer, file_set_uri: string, created_at: datetime, updated_at: datetime)=>[35, 36], BatchUploadItem=>[35], Hyrax::Feature(id: integer, key: string, enabled: boolean, created_at: datetime, updated_at: datetime)=>[37], AdminSet=>[38, 39, 40, 41], :submissions=>[42], Hyrax::CollectionType(id: integer, title: string, description: text, machine_id: string, nestable: boolean, discoverable: boolean, sharable: boolean, allow_multiple_membership: boolean, require_membership: boolean, assigns_workflow: boolean, assigns_visibility: boolean, share_applies_to_new_works: boolean, brandable: boolean, badge_color: string)=>[47, 48], Hyrax::PermissionTemplate(id: integer, source_id: string, visibility: string, created_at: datetime, updated_at: datetime, release_date: date, release_period: string)=>[49], Hyrax::PermissionTemplateAccess(id: integer, permission_template_id: integer, agent_type: string, agent_id: string, access: string, created_at: datetime, updated_at: datetime)=>[49], Trophy(id: integer, user_id: integer, work_id: string, created_at: datetime, updated_at: datetime)=>[51], Hyrax::BasicMetadata=>[], Hyrax::WorkBehavior=>[], Hyrax::WithEvents=>[], GlobalID::Identification=>[], Hydra::WithDepositor=>[], Hyrax::Serializers=>[], Hyrax::CollectionNesting=>[], Hyrax::Works::Metadata=>[], Hyrax::ProxyDeposit=>[], Hyrax::Suppressible=>[], Hyrax::NestedWorks=>[], Hyrax::Embargoable=>[], Hydra::AccessControls::Embargoable=>[], Hydra::AccessControls::WithAccessRight=>[], Hyrax::InAdminSet=>[], Hyrax::CoreMetadata=>[], Hyrax::Naming=>[], Hyrax::WithFileSets=>[], Hyrax::HasRendering=>[], Hyrax::HasRepresentative=>[], Hyrax::Permissions=>[], Hyrax::Permissions::Readable=>[], Hyrax::Permissions::Writable=>[], Hydra::AccessControls::Permissions=>[], Hydra::AccessControls::Visibility=>[], Hyrax::Noid=>[], Hyrax::HumanReadableType=>[], ActiveFedora::Associations::Builder::Orders::FixFirstLast=>[], Work::GeneratedAssociationMethods=>[], Hydra::PCDM::PcdmBehavior=>[], Hydra::PCDM::ObjectBehavior=>[], Hydra::Works::WorkBehavior=>[], #<#<Class:0x00007fc811537bf0>:0x00007fc811537c40>=>[], Work::GeneratedPropertyMethods=>[], #<#<Class:0x00007fc81153c1c8>:0x00007fc81153c218>=>[], Wings::Valkyrizable=>[], Hyrax::RepositoryReindexer=>[], ActiveFedora::Aggregation::BaseExtension=>[], ActiveFedora::Schema=>[], ActiveFedora::LoadableFromJson=>[], ActiveFedora::Versionable=>[], ActiveFedora::Attributes::PrimaryKey=>[], ActiveFedora::Attributes::Serializers=>[], ActiveFedora::Attributes=>[], ActiveModel::Dirty=>[], ActiveFedora::AttributeMethods::Dirty=>[], ActiveFedora::AttributeMethods::Write=>[], ActiveFedora::AttributeMethods::Read=>[], #<#<Class:0x00007fc800563bd0>:0x00007fc800563ce8>=>[], ActiveFedora::AttributeMethods=>[], ActiveModel::AttributeMethods=>[], ActiveFedora::Reflection=>[], ActiveFedora::Base::GeneratedPropertyMethods=>[], ActiveTriples::Reflection=>[], ActiveTriples::Properties=>[], ActiveFedora::FedoraAttributes=>[], ActiveFedora::InheritableAccessors=>[], ActiveFedora::AttachedFiles=>[], ActiveFedora::Serialization=>[], ActiveModel::Serializers::JSON=>[], ActiveModel::Serialization=>[], ActiveFedora::NestedAttributes=>[], ActiveFedora::AutosaveAssociation=>[], ActiveFedora::Associations=>[], ActiveFedora::Validations=>[], ActiveModel::Validations::HelperMethods=>[], ActiveModel::Validations=>[], ActiveModel::Validations::Callbacks=>[], ActiveSupport::Callbacks=>[], ActiveFedora::Callbacks=>[], ActiveModel::Conversion=>[], ActiveFedora::Scoping::Named=>[], ActiveFedora::Scoping::Default=>[], ActiveFedora::Scoping=>[], ActiveFedora::Indexing=>[], ActiveFedora::Persistence=>[], ActiveFedora::Inheritance=>[], ActiveFedora::Identifiable=>[], ActiveFedora::Core=>[], ActiveFedora::Common=>[], ActiveFedora::Pathing=>[], ActiveFedora::AttributeAssignment=>[], ActiveModel::ForbiddenAttributesProtection=>[], ActiveSupport::ToJsonWithActiveSupportEncoder=>[], Object=>[], PP::ObjectMixin=>[], ActiveSupport::Dependencies::Loadable=>[], ActiveSupport::Tryable=>[], JSON::Ext::Generator::GeneratorMethods::Object=>[], Kernel=>[], BasicObject=>[], "Class"=>[], #<Work id: nil, head: [], tail: [], depositor: nil, title: [], date_uploaded: nil, date_modified: nil, state: nil, proxy_depositor: nil, on_behalf_of: nil, arkivo_checksum: nil, owner: nil, alternative_title: [], label: nil, relative_path: nil, import_url: nil, resource_type: [], creator: [], contributor: [], description: [], abstract: [], keyword: [], license: [], rights_notes: [], rights_statement: [], access_right: [], publisher: [], date_created: [], subject: [], language: [], identifier: [], based_near: [], related_url: [], bibliographic_citation: [], source: [], access_control_id: nil, representative_id: nil, thumbnail_id: nil, rendering_ids: [], admin_set_id: nil, embargo_id: nil, lease_id: nil>=>[]}, @aliased_actions={:read=>[:index, :show, :show, :discover, :files, :stats, :citation], :create=>[:new], :update=>[:edit, :edit, :versions, :file_manager]}, @expanded_actions={[:edit, :edit, :versions, :file_manager]=>[:edit, :edit, :versions, :file_manager], [:edit, :update, :destroy]=>[:edit, :update, :edit, :edit, :versions, :file_manager, :destroy], [:index, :show, :show, :discover, :files, :stats, :citation]=>[:index, :show, :show, :discover, :files, :stats, :citation], [:read]=>[:read, :index, :show, :show, :discover, :files, :stats, :citation], [:discover]=>[:discover], [:manage]=>[:manage], [:collect]=>[:collect], [:new]=>[:new], [:create]=>[:create, :new]}>, @attributes={"title"=>["Test w/byebug"], "alternative_title"=>[], "creator"=>["Me"], "contributor"=>[], "description"=>[], "abstract"=>[], "keyword"=>[], "license"=>[], "rights_statement"=>"http://rightsstatements.org/vocab/UND/1.0/", "access_right"=>[], "rights_notes"=>[], "publisher"=>[], "date_created"=>[], "subject"=>[], "language"=>[], "identifier"=>[], "related_url"=>[], "visibility_during_embargo"=>"restricted", "embargo_release_date"=>"2021-11-13", "visibility_after_embargo"=>"open", "visibility_during_lease"=>"open", "lease_expiration_date"=>"2021-11-13", "visibility_after_lease"=>"restricted", "visibility"=>"restricted", "source"=>[], "admin_set_id"=>"admin_set/default", "resource_type"=>[], "based_near_attributes"=>{"0"=>{"id"=>"", "_destroy"=>""}}, "remote_files"=>[], "uploaded_files"=>["3"]}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment