Skip to content

Add support to sync GitLab issues with Sentry Issues - Sentry client

Sarah Yasonik requested to merge sy-add-issue-links-to-sentry-client into master

What does this MR do?

Eventual goal: When an issue is created in GitLab based on a Sentry error, POST to Sentry with the reciprocal link. So when a user sees the error in Sentry, they will see the link to the GitLab issue as well.

This MR adds support for these API operations to our Sentry Client. There are two main operations:

  1. To fetch repos. - This allows us access to the integration id, which will tell Sentry which project to point to.
  2. To create a link. - The creates the pointer to a GitLab issue in Sentry. It requires the GitLab project id and issue iid and the integration id.

The usage of this logic will be included in a follow-up MR. As the changes here are not yet user-facing, no changelog will be included.

Related Issue: #37307 (closed)

Follow-up MR: !23007 (merged)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

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 Sarah Yasonik

Merge request reports