mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #335] API: validate channel identifiers before creating/updating a check #256
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#256
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cuu508 on GitHub (Feb 19, 2020).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/335
Currently, creating a check via API works in two steps:
If any of the channel identifiers in payload JSON is invalid, step 2 fails and client receives 400 Bad Request response, but step 1 still goes through.
This should be an atomic operation: either both steps succeed, or the check doesn't get created.