Add support to sync GitLab issues with Sentry Issues - Sentry client
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:
- To fetch repos. - This allows us access to the integration id, which will tell Sentry which project to point to.
- 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
- [n/a] Changelog entry
- [-] Documentation (if required)
-
Code review guidelines -
Merge request performance guidelines -
Style guides - [-] Database guides
- [-] Separation of EE specific content
Availability and Testing
-
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 Sarah Yasonik