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'm not sure what the correct behavior is here. Some ideas:
it could be invalid at startup to set Hyrax.config.default_active_workflow_name to a nonexistent workflow
we could have AdminSetCreateService.create_workflows_for verify that the default workflow exists before trying to activate it, and fall back to one that does exist if not
we could have Sipity::Workflow.activate! raise something more specific than ActiveRecord::RecordNotFound so we get a 5xx error instead of a 404
Thoughts?
The text was updated successfully, but these errors were encountered:
Descriptive summary
If the default active workflow is set to a workflow that doesn't exist, creating a new AdminSet produces a 404 error page.
Steps to reproduce the behavior in User Interface (UI)
In a Hyrax 5.0.1 /
koppie
system:default_workflow.json
fromconfig/workflows
.Actual behavior (include screenshots if available)
PermissionTemplates
/Workflows
?AdminSetCreateService
tries to activate a nonexistent default workflow, raisingActiveRecord::RecordNotFound
RecordNotFound
rescue behavior produces a 404; browser displays “The page you were looking for doesn't exist”Stack trace:
Acceptance Criteria/Expected Behavior
and/or
Related work
UCSB issue
comet-local#47
Notes
I'm not sure what the correct behavior is here. Some ideas:
Hyrax.config.default_active_workflow_name
to a nonexistent workflowAdminSetCreateService.create_workflows_for
verify that the default workflow exists before trying to activate it, and fall back to one that does exist if notSipity::Workflow.activate!
raise something more specific thanActiveRecord::RecordNotFound
so we get a 5xx error instead of a 404Thoughts?
The text was updated successfully, but these errors were encountered: