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: ignore webhook checks when using delete transformation strategy #1429

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

adityathebe
Copy link
Member

resolves: #1423

@adityathebe adityathebe marked this pull request as ready for review November 7, 2023 05:18
// Get transformed checks before and after, and then delete the olds ones that are not in new set.
// NOTE: Webhook checks, although they are transformed, are handled entirely by the webhook caller
// and should not be deleted manually in here.
existingTransformedChecks, err := db.GetTransformedCheckIDs(ctx.Context, canaryID, checks.WebhookCheckType)
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this should suffice

pkg/api/webhook_test.go Outdated Show resolved Hide resolved
@moshloop moshloop merged commit af46627 into master Nov 8, 2023
14 checks passed
@adityathebe adityathebe deleted the fix/webhook-checks branch November 8, 2023 11:52
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.

Webhook transformations delete all old checks
2 participants