-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Cases] Separate Cases SO attributes from HTTP APIs #155898
Conversation
## Summary This PR changes the types of the Case entity to separate the SO attributes from the HTTP APIs. ### Notable changes - A new server-side type is created to describe the data persistent into ES through the SO client. It is called `CasePersistedAttributes`. - The type `CaseResponse` is renamed to `Case`. - The type `CasesResponse` is renamed to `Cases`. - The type `Case` is renamed to `CaseUI`. - The type `Cases` is renamed to `CasesUI`. ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Jonathan Buttner <[email protected]>
…e layer (#155325) This PR separates the http API io-ts types from the types that are used in the cases service layer to interact with the saved object client. This PR is specifically for the user actions it only affects the types used when interacting with the saved object client and doesn't touch the transformation logic yet. Issue: #153726
This PR separates the http API io-ts types from the types that are used in the cases service layer to interact with the saved object client. This PR is specifically for the attachments it only affects the types used when interacting with the saved object client and doesn't touch the transformation logic yet. Issue: #153726
This PR separates the http API io-ts types from the types that are used in the cases service layer to interact with the saved object client. This PR is splits up the remaining types within the service layer (configure and connector mappings). Issue: #153726
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code owners LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The single explore file change LGTM! Thanks Johnny 🚀
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, Nice work 👍
This PR separates the persisted SO attributes from the fields received in the HTTP API requests.
This is to address step 2 in preparing our HTTP routes as versioned.
Issue: #153726
This PR encompasses a few PRs here which have been reviewed individually by the cases team members:
#155325 - User actions
#155440 - Attachments
#155444 - Configure, Connector Mappings
#155277 - Cases
The large number of files is because of renaming some types throughout the frontend code. There shouldn't be many functionality changes, mostly just type changes.