Open codecrane opened 2 years ago
thanks @codecrane, great report - we'll take a look. cc @aron-bordin
could try this
If you want to delete a specific range of incidents, you can use the following Bash script. Replace your_token
with your actual token and adjust the URL according to your Grafana incident app setup. This script will delete incidents with IDs from 1 to 10.
TOKEN="your_token"
for INCIDENT_ID in $(seq 1 10); do
curl -X POST \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "{\"incidentID\": \"$INCIDENT_ID\"}" \
"https://org.grafana.net/api/plugins/grafana-incident-app/resources/api/IncidentsService.DeleteIncident"
done
Describe the bug With Slack integration enabled, deleting an incident for which the Slack Channel has already been archived via Slack, causes an error. This prevents the deletion of the incident.
To Reproduce Steps to reproduce the behavior:
Expected behavior I expect the deletion of the incident to occur, gracefully stepping past the archiving of an already archived channel.
Screenshots
Relevant system information Grafana Incidents version: v1.0.0-beta28