Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deletion order for unseen resources #15

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Conversation

spearki
Copy link
Contributor

@spearki spearki commented Jul 9, 2021

In the DataDog API there is a dependency relation between dashboards and SLOs (and probably other resources), so if we try to delete an SLO before the dashboard it's referenced in we get an error like the following:

error calling datadog api: {"errors":"slo 9c7418666a6b519798a58ffe901edbab is referenced in dashboard_id: qsa-6ia-chy","data":null}

This change flips around the order to delete dashboards first.

Copy link

@Svetixbot Svetixbot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@spearki spearki merged commit 0f822e5 into master Jun 14, 2022
@spearki spearki deleted the fix-deletion-order branch June 14, 2022 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants