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
-
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. -
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
- [-] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
-
Separation of EE specific content
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.
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. - [-] Tested in all supported browsers
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