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

api/v2: Delete silence respond with 404 when silence is not found #3352

Merged
merged 1 commit into from
May 5, 2023

Conversation

emanlodovice
Copy link
Contributor

When a client attempts to delete a non-existent silence, respond with 404 instead of 500.

This PR is a rebase of an old an open PR by @hateeyan and fixes the test failures.

@emanlodovice emanlodovice force-pushed the silence_delete branch 2 times, most recently from 287a04a to c38432f Compare May 3, 2023 19:10
@emanlodovice
Copy link
Contributor Author

Hi @simonpasquier good day. Can you review this PR when you get a chance? Thank you.

Copy link
Member

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

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

LGTM

@gotjosh gotjosh merged commit 263ca5c into prometheus:main May 5, 2023
qinxx108 pushed a commit to qinxx108/alertmanager that referenced this pull request Jul 5, 2023
gotjosh pushed a commit that referenced this pull request Aug 7, 2023
radek-ryckowski pushed a commit to goldmansachs/alertmanager that referenced this pull request Nov 6, 2023
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