[Cases] Add bulk attachments internal route#129092
Conversation
7439a55 to
bc9bf1d
Compare
bc9bf1d to
c0ddc3a
Compare
|
@elasticmachine merge upstream |
|
Pinging @elastic/response-ops (Team:ResponseOps) |
|
Pinging @elastic/response-ops-cases (Feature:Cases) |
academo
left a comment
There was a problem hiding this comment.
Something that is not clear in the code for me: What happens if we hit the API with 0 attachments? would it fail on the validation? Can you also add a test for it?
💛 Build succeeded, but was flakyTest Failures
Metrics [docs]Page load bundle
History
To update your PR or re-run it, just comment with: cc @cnasikas |
| savedObjectsWithoutErrors.some((so) => so.id === attachment.id) | ||
| ); | ||
|
|
||
| await Promise.all([ |
There was a problem hiding this comment.
@cnasikas this is one of those cases I mentioned where things can fail but still succeed. e.g. the attachments are created but the user actions are not.
no need to take action, just a good example of it.
academo
left a comment
There was a problem hiding this comment.
Thanks for the test changes!
Summary
This PR adds the ability to bulk attach attachments to a case. It creates the following internal route:
Testing
To test the new endpoint do the following request and check if you see the attachments in the case.
Closes: #124814
Checklist
Delete any items that are not applicable to this PR.
For maintainers