Skip to content

Endpoint to update Sentry error status in Sentry

Sean Arnold requested to merge 39825-resolve-sentry-error-backend into master

What does this MR do?

This provides the ability for us to update the Sentry error status within Sentry.

PUT <project>/-/error_tracking/<error-id>.json

This uses the Sentry API to send PUT, and update the Sentry Issue status.

The following values are what we current intend to send to Sentry:

This has been tested locally with the specs that have been written, and also with a manual CURL on my local machine:

curl -X PUT -H "Content-Type: application/json" -d '{"status": "resolved"}' 'http://localhost:3000/root/monitor-sandbox/-/error_tracking/1381947153.json' -H 'Connection: keep-alive' -H 'Accept: application/json, text/plain, */*' -H 'X-CSRF-Token: HbDBSea9paUgN1ALKY06Mi8s/yRP5IxBwuFt9eMteXDRWMAo599pLcWaYsUo6YbNyUc++T01U99S02hx7Q0dAQ==' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36' -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-Mode: cors' -H 'Referer: http://localhost:3000/root/monitor-sandbox/-/error_tracking/1381947153/details' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' -H 'Cookie: experimentation_subject_id=IjBjNzQ3NzczLWE5NjctNGIwOC05YzJmLWI3MzQzYTMzMTM5YiI%3D--d553394d9b7bfcc3d67166fa7fda4be266af2e30; perf_bar_enabled=true; remember_user_token=W1sxXSwiJDJhJDEwJGNKN3Q4QjZyd1l6aHFqWE9CMDBmcC4iLCIxNTc4MjY0MjM5LjU1NzQ2NiJd--58a43a0db83a1dc61e698b1b07bb1b3c16db8ee9; event_filter=all; _gitlab_session_3931773d5a890300f1dd4deff1c0d1410fe99a39052e5c4e69f7a88238d60517=bb040af20871bb90d9793b88a58ff5e8; sidebar_collapsed=false' --compressed

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Related to #39825 (closed) and #39665 (closed)

Edited by Sean Arnold

Merge request reports