Skip to content

[Cases][Webhook] - Better handle 204 responses#251090

Merged
michaelolo24 merged 6 commits intoelastic:mainfrom
michaelolo24:improve-webhook-api-handling
Feb 2, 2026
Merged

[Cases][Webhook] - Better handle 204 responses#251090
michaelolo24 merged 6 commits intoelastic:mainfrom
michaelolo24:improve-webhook-api-handling

Conversation

@michaelolo24
Copy link
Contributor

@michaelolo24 michaelolo24 commented Jan 30, 2026

Summary

Currently when an update is made to an external connector that returns a 204 no content response, the rest of the incident update fails. This should not occur as a 204 is a valid response

Fixes #251108

Checklist

Check the PR satisfies following conditions.

@michaelolo24 michaelolo24 requested a review from a team as a code owner January 30, 2026 15:28
@michaelolo24 michaelolo24 added backport:version Backport to applied version labels Team:Cases Security Solution Cases team v9.2.5 v9.1.11 v9.3.1 labels Jan 30, 2026
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cases (Team:Cases)

@mmahacek
Copy link

Fixes #251108

@mmahacek mmahacek linked an issue Jan 30, 2026 that may be closed by this pull request
const data = res.data;

// If status is 204 and there is no data, we just return
if (res.status === 204 && isEmpty(data)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also make sure requiredAttributesToBeInTheResponse is not undefined here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, will update, thanks!

@michaelolo24 michaelolo24 added v9.3.0 bug Fixes for quality problems that affect the customer experience labels Feb 2, 2026
@michaelolo24 michaelolo24 enabled auto-merge (squash) February 2, 2026 15:58
@elasticmachine
Copy link
Contributor

⏳ Build in-progress, with failures

Failed CI Steps

History

@michaelolo24 michaelolo24 merged commit 926e3a2 into elastic:main Feb 2, 2026
12 of 13 checks passed
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Feb 4, 2026
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

4 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

5 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@mmahacek mmahacek added (do not use) backport:9.2 This doesn't do backports! use `backport:version` `v9.2.0` instead (do not use) backport:9.3 This doesn't do backports! use `backport:version` `v9.3.0` instead (do not use) backport:8.19 and removed (do not use) backport:8.19 labels Feb 20, 2026
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

3 similar comments
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create automatically backports add a backport:* label or prevent reminders by adding the backport:skip label.
You can also create backports manually by running node scripts/backport --pr 251090 locally
cc: @michaelolo24

@mmahacek mmahacek added the backport:all-open Backport to all branches that could still receive a release label Feb 26, 2026
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.2, 9.3

https://github.com/elastic/kibana/actions/runs/22456464192

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 26, 2026
## Summary

Currently when an update is made to an external connector that returns a
`204` no content response, the rest of the incident update fails. This
should not occur as a 204 is a valid response

Fixes elastic#251108

### Checklist

Check the PR satisfies following conditions.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 926e3a2)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 26, 2026
## Summary

Currently when an update is made to an external connector that returns a
`204` no content response, the rest of the incident update fails. This
should not occur as a 204 is a valid response

Fixes elastic#251108

### Checklist

Check the PR satisfies following conditions.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 926e3a2)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 26, 2026
## Summary

Currently when an update is made to an external connector that returns a
`204` no content response, the rest of the incident update fails. This
should not occur as a 204 is a valid response

Fixes elastic#251108

### Checklist

Check the PR satisfies following conditions.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 926e3a2)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.2
9.3

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.
cc: @michaelolo24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:all-open Backport to all branches that could still receive a release backport missing Added to PRs automatically when the are determined to be missing a backport. backport:version Backport to applied version labels bug Fixes for quality problems that affect the customer experience (do not use) backport:9.2 This doesn't do backports! use `backport:version` `v9.2.0` instead (do not use) backport:9.3 This doesn't do backports! use `backport:version` `v9.3.0` instead release_note:fix Team:Cases Security Solution Cases team v9.2.5 v9.3.0 v9.3.1 v9.4.0

5 participants