Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) Hyrax::Actors::GenericWorkActor#create success invokes the after_create_concern callback
- Failure/Error:
- Sipity::Workflow.where(active: true).where(
- workflows[:permission_template_id].in(
- templates.project(templates[:id]).where(templates[:admin_set_id].eq(admin_set_id))
- )
- ).first!
- ActiveRecord::RecordNotFound:
- Couldn't find Sipity::Workflow with [WHERE "sipity_workflows"."active" = ? AND "sipity_workflows"."permission_template_id" IN (SELECT "permission_templates"."id" FROM "permission_templates" WHERE "permission_templates"."admin_set_id" = 'admin_set/default')]
- # ./app/models/sipity/workflow.rb:34:in `find_active_workflow_for'
- # ./app/models/concerns/hyrax/in_admin_set.rb:10:in `active_workflow'
- # ./app/services/hyrax/workflow/workflow_factory.rb:41:in `active_workflow'
- # ./app/services/hyrax/workflow/workflow_factory.rb:32:in `create'
- # ./app/services/hyrax/workflow/workflow_factory.rb:12:in `create'
- # ./app/actors/hyrax/actors/initialize_workflow_actor.rb:15:in `create_workflow'
- # ./app/actors/hyrax/actors/initialize_workflow_actor.rb:8:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/base_actor.rb:15:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/apply_permission_template_actor.rb:7:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/default_admin_set_actor.rb:9:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/interpret_visibility_actor.rb:85:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/abstract_actor.rb:26:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/attach_files_actor.rb:8:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/assign_representative_actor.rb:5:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/add_to_work_actor.rb:6:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/add_as_member_of_collections_actor.rb:6:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/create_with_files_actor.rb:6:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/create_with_remote_files_actor.rb:6:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/abstract_actor.rb:26:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./app/actors/hyrax/actors/transactional_request.rb:9:in `block in create'
- # ./app/actors/hyrax/actors/transactional_request.rb:8:in `create'
- # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
- # ./spec/actors/hyrax/actors/generic_work_actor_spec.rb:49:in `block (4 levels) in <top (required)>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement