The process status and template details page could be merged or redirect to each other
I was trying to test whether or not ApplyProcessTemplate checks for unavailable worker versions, which led to backend#1408 (closed). I was already working with processes in a Django shell, so I ran Process.objects.filter(mode='template', versions__state='error').first().id
to quickly get the UUID of a broken template. I wanted to have a look at it in the frontend, so I wrote the URL to the process myself in the address bar: https://demo.arkindex.org/process/8109b9a7-dd6f-460f-be16-51448c70979e.
This displays the following error:
Using https://demo.arkindex.org/process/8109b9a7-dd6f-460f-be16-51448c70979e/template-details instead properly shows the template details. Using this page with a non-template process causes it to redirect to the "Page not found" page, setting the URL to https://demo.arkindex.org
without anything after, and showing a "This process is not a template" notification. This leaves the user stuck in a redirection loop: using the browser's back button just redirects to the not found page and shows the notification again.
Both the process status page and the template details page could at least redirect or link to each other, or they could be merged into one by having the status page display the template details when the process is a template, instead of the workflow component.