Skip to content

Catch exceptions in list_issues reactive cache calculation

Reuben Pereira requested to merge 56871-list-issues-error into master

What does this MR do?

Ensure that exceptions are caught when calculate_reactive_cache is called and return the error to the FE.

When a Sentry API returns a non-200 status code, Sentry::Client raises Sentry::Client::Error. This MR catches the exception in the ProjectErrorTrackingSetting model so that an appropriate error message can be sent to the FE.

After this fix, the following error message will appear on the Operations > Error Tracking page if the Sentry API fails.

no_sentry_errors_message

What are the relevant issue numbers?

#56871 (closed)

Does this MR meet the acceptance criteria?

Closes #56871 (closed)

Edited by Kamil Trzciński

Merge request reports