Add related issues widget to trace details
What does this MR do and why?
Adds the related issues widget to the tracing details view for Add Related Issues widget to Tracing details (gitlab-org/opstrace/opstrace#2905 - closed).
The widget lists issues related to the specific trace that were created with the Create issue
button on the tracing details page.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- You need a GitLab Ultimate license.
- Enable the
:observability_features
feature flag. - Apply patch to load local mocks
git apply < <(curl -s https://gitlab.com/-/snippets/3725609/raw/main/mock.patch)
- Note: Mock returns the wrong
traceId
so the related issues list is empty on other traces. We're discussing a fix on slack (internal link).
- Note: Mock returns the wrong
- Apply the WIP backend as a patch
curl https://gitlab.com/gitlab-org/gitlab/-/merge_requests/163507.diff | git apply
- Note: Ignore if !163507 (merged) has been merged.
- Navigate to
[GDK_HOST]/flightjs/Flight/-/tracing/8335ed4c-c943-aeaa-7851-2b9af6c5d3b8
- Click on the
Create issue
button to create a related issue. - Navigate back the trace details view and confirm the related issues widget shows the newly created issue.
Edited by Jiaan Louw