ui
ui copied to clipboard
Incorrect link when child workflow is started in a different namespace
Describe the bug When inspecting a started child workflow a link is created to the run. This link has the same namespace as the currently selected instead of using the child workflow.
This results in a 404 and the namespace must be changed manually in the url to navigate to the correct workflow.
To Reproduce
- Start a child workflow in a different namespace.
- Navigate to the parent workflow in the web ui.
- Try to click any link which points to the child workflow in the Workflow tab.
- Get a 404 page
Expected behavior The link should point to the correct namespace
Desktop Same error in all browsers
Additional context Using latest version of ui: temporalio/ui:2.13.3
https://github.com/temporalio/ui/blob/main/src/lib/components/event/event-details-row-expanded.svelte#L87 Namespace here is taken from page.params instead of the workflow execution attributes
Same goes for the Parent reference: https://github.com/temporalio/ui/blob/main/src/lib/components/workflow/workflow-relationships.svelte#L45

Fixed with:
https://github.com/temporalio/ui/pull/1350 https://github.com/temporalio/ui/pull/1354
The links under Relationships seem to be fixed, but there are still invalid links under event history.
In addition to the issue above that @kristianheljas reported, any running child workflow in the Relationships table also lead to a 404. Once the child workflow completes though the links are fine
Can this please get any traction? It is very annoying bug for projects using multiple namespaces and triggering child workflows across them. Thank you!
Some potentially helpful information:
- "Pending child workflows" component use local namespace as fallback: https://github.com/temporalio/ui/blob/1bc9fa25e872011db763288d389bf8cf5f272eb2/src/lib/components/workflow/child-workflows-table.svelte#L34
- Server doesnt return any "namespace" from within "pendingChildren" object
Any update here folks? We have a number of workflows that span namespaces. Navigation is pretty hard now with this bug