Skip to content

Add related issues widget to logs drawer

What does this MR do and why?

Add related issues widget to logs drawer

  • Update getLogsRelatedIssues query to latest API ( requires !162867 (merged))
  • Add RelatedIssue widget to details drawer

Related to Add Related Issues widget to Logs details drawer (gitlab-org/opstrace/opstrace#2908 - closed)

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image.png image.png

How to set up and validate locally

  1. You need a GitLab Ultimate license.
  2. Enable the :observability_features feature flag.
  3. Apply patch to load local mocks git apply < <(curl -s https://gitlab.com/-/snippets/3725609/raw/main/mock.patch)
  4. Apply diff from backend MRs if not merged yet ( graphql: !162867 (merged) , storing connection: !163368 (merged) )
git apply < <(curl -s https://gitlab.com/gitlab-org/gitlab/-/merge_requests/162867.diff)
git apply < <(curl -s https://gitlab.com/gitlab-org/gitlab/-/merge_requests/163368.diff)
  1. Go to http://gdk.test:3443/flightjs/Flight/-/logs
  2. Select a log and create an issue through the dedicated button
  3. From the newly created issue, click on the "Log Details" link in the description
  4. Scroll the drawer and confirm that the issue appears in the "Related Issues" widget
Edited by Daniele Rossetti

Merge request reports

Loading