Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. 1) Hyrax::Actors::GenericWorkActor#create success invokes the after_create_concern callback
  2. Failure/Error:
  3. Sipity::Workflow.where(active: true).where(
  4. workflows[:permission_template_id].in(
  5. templates.project(templates[:id]).where(templates[:admin_set_id].eq(admin_set_id))
  6. )
  7. ).first!
  8.  
  9. ActiveRecord::RecordNotFound:
  10. 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')]
  11. # ./app/models/sipity/workflow.rb:34:in `find_active_workflow_for'
  12. # ./app/models/concerns/hyrax/in_admin_set.rb:10:in `active_workflow'
  13. # ./app/services/hyrax/workflow/workflow_factory.rb:41:in `active_workflow'
  14. # ./app/services/hyrax/workflow/workflow_factory.rb:32:in `create'
  15. # ./app/services/hyrax/workflow/workflow_factory.rb:12:in `create'
  16. # ./app/actors/hyrax/actors/initialize_workflow_actor.rb:15:in `create_workflow'
  17. # ./app/actors/hyrax/actors/initialize_workflow_actor.rb:8:in `create'
  18. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  19. # ./app/actors/hyrax/actors/base_actor.rb:15:in `create'
  20. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  21. # ./app/actors/hyrax/apply_permission_template_actor.rb:7:in `create'
  22. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  23. # ./app/actors/hyrax/default_admin_set_actor.rb:9:in `create'
  24. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  25. # ./app/actors/hyrax/actors/interpret_visibility_actor.rb:85:in `create'
  26. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  27. # ./app/actors/hyrax/actors/abstract_actor.rb:26:in `create'
  28. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  29. # ./app/actors/hyrax/actors/attach_files_actor.rb:8:in `create'
  30. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  31. # ./app/actors/hyrax/actors/assign_representative_actor.rb:5:in `create'
  32. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  33. # ./app/actors/hyrax/actors/add_to_work_actor.rb:6:in `create'
  34. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  35. # ./app/actors/hyrax/actors/add_as_member_of_collections_actor.rb:6:in `create'
  36. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  37. # ./app/actors/hyrax/create_with_files_actor.rb:6:in `create'
  38. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  39. # ./app/actors/hyrax/create_with_remote_files_actor.rb:6:in `create'
  40. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  41. # ./app/actors/hyrax/actors/abstract_actor.rb:26:in `create'
  42. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  43. # ./app/actors/hyrax/actors/transactional_request.rb:9:in `block in create'
  44. # ./app/actors/hyrax/actors/transactional_request.rb:8:in `create'
  45. # ./app/actors/hyrax/actors/actor_stack.rb:23:in `create'
  46. # ./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