-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Version connectors
domain and apis
#162059
Conversation
6ecd1fb
to
7c03e61
Compare
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
x-pack/plugins/cases/common/types/domain/connector/mappings.v1.test.ts
Outdated
Show resolved
Hide resolved
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.
Great work!! Folder structure is much more clear now 😄
@@ -40,13 +40,14 @@ export { | |||
LENS_ATTACHMENT_TYPE, | |||
} from './constants'; | |||
|
|||
export { ConnectorTypes } from './types/domain'; |
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.
So these are from latest ConnectorTypes
?
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.
Yes, this is used by plugins outside Cases. They should always get the latest version.
* Jira | ||
*/ | ||
|
||
export const JiraFieldsRt = rt.strict({ |
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.
Nice, I like this new structure where all types related to connector are in single file. Easy to read 😄
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.
Approved with a few comments 👍
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @cnasikas |
## Summary This PR versions the `connector` domain object and its corresponding APIs ### Checklist Delete any items that are not applicable to this PR. - [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 ### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR versions the `cases` and `comment` domain objects and their corresponding APIs. It was not possible to do them separately as I got errors due to circular dependencies. ## Notable Changes - The `Comment` type was renamed to `Attachment` - The `Comments` type was renamed to `Attachments` - The `*CommentRequestRt` type was renamed to `*AttachmentPayload` - The `CommentType` type was renamed to `AttachmentType` - The `AttributesType*` type was renamed to `*AttachmentAttributes` - The `*ResponseTypeUserRt` type was renamed to `*AttachmentRt` - The word `comment` got replaced with the word `attachment` in all types - The `RelatedCaseInfo` type was renamed to `RelatedCase` - The `CasesByAlertId` type was renamed to `GetRelatedCasesByAlertResponse` Depends on: #161783, #162059 ### Checklist Delete any items that do not apply to this PR. - [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 ### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR versions the `cases` and `comment` domain objects and their corresponding APIs. It was not possible to do them separately as I got errors due to circular dependencies. ## Notable Changes - The `Comment` type was renamed to `Attachment` - The `Comments` type was renamed to `Attachments` - The `*CommentRequestRt` type was renamed to `*AttachmentPayload` - The `CommentType` type was renamed to `AttachmentType` - The `AttributesType*` type was renamed to `*AttachmentAttributes` - The `*ResponseTypeUserRt` type was renamed to `*AttachmentRt` - The word `comment` got replaced with the word `attachment` in all types - The `RelatedCaseInfo` type was renamed to `RelatedCase` - The `CasesByAlertId` type was renamed to `GetRelatedCasesByAlertResponse` Depends on: elastic#161783, elastic#162059 ### Checklist Delete any items that do not apply to this PR. - [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 ### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR versions the `connector` domain object and its corresponding APIs ### Checklist Delete any items that are not applicable to this PR. - [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 ### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary This PR versions the `cases` and `comment` domain objects and their corresponding APIs. It was not possible to do them separately as I got errors due to circular dependencies. ## Notable Changes - The `Comment` type was renamed to `Attachment` - The `Comments` type was renamed to `Attachments` - The `*CommentRequestRt` type was renamed to `*AttachmentPayload` - The `CommentType` type was renamed to `AttachmentType` - The `AttributesType*` type was renamed to `*AttachmentAttributes` - The `*ResponseTypeUserRt` type was renamed to `*AttachmentRt` - The word `comment` got replaced with the word `attachment` in all types - The `RelatedCaseInfo` type was renamed to `RelatedCase` - The `CasesByAlertId` type was renamed to `GetRelatedCasesByAlertResponse` Depends on: elastic#161783, elastic#162059 ### Checklist Delete any items that do not apply to this PR. - [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 ### 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR versions the
connector
domain object and its corresponding APIsChecklist
Delete any items that are not applicable to this PR.
For maintainers