openlibhums / openlibhums/back_content
WorkflowElement matching query does not exist
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 0
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
With Janeway 1.3.6, the plugin throws an error when hitting publish:
WorkflowElement matching query does not exist
DoesNotExist: WorkflowElement matching query does not exist.
File "django/core/handlers/exception.py", line 41, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 249, in _legacy_get_response
response = self._get_response(request)
File "django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "security/decorators.py", line 134, in wrapper
return func(request, *args, **kwargs)
File "/home/iastate1/janeway/src/plugins/back_content/views.py", line 158, in article
**workflow_kwargs)
File "events/logic.py", line 248, in raise_event
event_return = [func(**kwargs) for func in Events._hooks[event_name]]
File "events/logic.py", line 248, in <listcomp>
event_return = [func(**kwargs) for func in Events._hooks[event_name]]
File "core/workflow.py", line 42, in workflow_element_complete
return workflow_next(handshake_url, request, article, switch_stage)
File "core/workflow.py", line 62, in workflow_next
current_element = workflow.elements.get(handshake_url=handshake_url)
File "django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "django/db/models/query.py", line 380, in get
self.model._meta.object_name
It uses the handshake_url "bc_article" for which it can't find any workflow elements.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the publish failure in Janeway 1.3.6 and start with plugins/back_content/views.py, then trace core/workflow.py through workflow_element_complete and workflow_next. Investigate why the workflow lookup for handshake_url "bc_article" has no matching WorkflowElement; done means publishing no longer raises this DoesNotExist error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100