Skip to content

Update Sentry client to get project list

Reuben Pereira requested to merge 55199-sentry-client-changes into master

What does this MR do?

Last release we had added an integration with Sentry where the user can add his Sentry API URL (ex: http://sentry.example.com/api/0/projects/organization-slug/project-slug/) and token and we display a list of Sentry issues/errors.

This issue is to make it easier for the user to set their Sentry API URL. In this issue, we aim to add a project selection dropdown, so that the user only has to enter his Sentry API host (ex: http://sentry.example.com) and token, then we populate the dropdown with a list of Sentry Organizations and Sentry Projects that the user has access to, and they can choose the project whose issues they want us to display.

This MR does:

  • Call the Sentry Project List API given the api URL and token.
  • Convert the response JSON into an ActiveModel object.

Other MRs will implement changes to the ProjectErrorTrackingSetting model to call this client to get a list of Sentry Projects.

What are the relevant issue numbers?

#55199 (closed)

Does this MR meet the acceptance criteria?

Edited by Reuben Pereira

Merge request reports