Skip to content

Backend: Add ability to embed stack trace in gitlab issue

What does this MR do?

Overview

This should allow the Issue page to display a sentry stack trace below the issue description.

Technical details

  1. Send over sentryIssueIdentifier in initial issue load. Realtime endpoint is not needed since we do not update this on the issue page or after the we create the issue.

  2. The Front End can query the existing latest stack trace endpoint within the error tracking controller if the sentryIssueIdentifier is not null.

All of: #36544 (closed)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Adds an additional query to the issue page.

SELECT  "sentry_issues".* FROM "sentry_issues" WHERE "sentry_issues"."issue_id" = $1 LIMIT 1

Which will use the issue_id index.

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Allison Browne

Merge request reports