[SecuritySolution] [Bug] Fix Manage data sources page index import #226099
[SecuritySolution] [Bug] Fix Manage data sources page index import #226099machadoum merged 9 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
|
Pinging @elastic/security-entity-analytics (Team:Entity Analytics) |
|
|
||
| defaultOpts.soClient.update.mockResolvedValue({ | ||
| id: `temp-id`, // TODO: https://github.com/elastic/security-team/issues/12851 | ||
| id: 'entity-analytics-monitoring-entity-source-test-namespace-test-type-test-index-pattern', // TODO: https://github.com/elastic/security-team/issues/12851 |
There was a problem hiding this comment.
We can move this comment out with the id here now - thank you for this Pablo 🙇
There was a problem hiding this comment.
Sure. Just to be 100% clear. This PR doesn't fix the issue described here https://github.com/elastic/security-team/issues/12851
It just ensures the create and update methods use the same ID. And the if is still based on the initial index pattern, which is weird since the user can update the index. Therefore, we need to work on improving the ID generation process.
CAWilson94
left a comment
There was a problem hiding this comment.
Code looks good, nice test additions too 🚀 Thank you!
tiansivive
left a comment
There was a problem hiding this comment.
LGTM ✅
Left a question about a comment
...analytics/components/privileged_user_monitoring_onboarding/components/select_index_modal.tsx
Show resolved
Hide resolved
...n/server/lib/entity_analytics/privilege_monitoring/saved_objects/monitoring_entity_source.ts
Show resolved
Hide resolved
💔 Build Failed
Failed CI StepsTest Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
History
cc @machadoum |
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16117178051 |
|
Starting backport for target branches: 9.1 https://github.com/elastic/kibana/actions/runs/16117183088 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
1 similar comment
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…lastic#226099) Fix the Manage Data Sources page index import by implementing the creation, updating, deletion, and retrieval of entity source configurations. It includes updates to the TypeScript definitions, API schema, and client-side API methods to support these operations. After this change, the user will be able to create only one data source using the UI. ### API and types changes * Added new types (`CreateMonitoringEntitySource`, `UpdatedMonitoringEntitySource`, `MonitoringEntitySource`) with expanded fields for entity source configurations, such as `indexPattern`, `enabled`, `error`, and `matchers`. [[1]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R18-R21) [[2]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72L39-R64) [[3]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R76-R122) * Updated the API schema (`monitoring_entity_source.schema.yaml`) to reflect new entity source operations, including `CreateEntitySource`, `UpdateEntitySource`, `DeleteEntitySource`, `GetEntitySource`, and `ListEntitySources`. Added support for query parameters and refined response schema definitions. [[1]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L10-R30) [[2]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L42-R48) [[3]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L58-R72) [[4]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L78-R102) [[5]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L88-R114) [[6]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L128-R189) [[7]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1R219-R220) * Add a uniqueness assertion for the data source name. * Create the data source 'PUT' API that allows updates * Force the `managed` to be consistently defined by default * Update list data sources API to support filter params ### UI changes * Extract `IndexImportManageDataSource` component to its file. * Stop calling the `init` API on updates * Implement the edit mode instead of creating a new data source on every save * Load the already added indices when editing * Fix the displayed added indices message to show the right value ### Video https://github.com/user-attachments/assets/9d1c1ad1-09b9-49f0-8cea-1b640a26e954 ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. (cherry picked from commit 8453edc)
…ort (#226099) (#226921) # Backport This will backport the following commits from `main` to `9.1`: - [[SecuritySolution] [Bug] Fix Manage data sources page index import (#226099)](#226099) <!--- Backport version: 10.0.1 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Pablo Machado","email":"pablo.nevesmachado@elastic.co"},"sourceCommit":{"committedDate":"2025-07-07T12:39:14Z","message":"[SecuritySolution] [Bug] Fix Manage data sources page index import (#226099)\n\nFix the Manage Data Sources page index import by implementing the\ncreation, updating, deletion, and retrieval of entity source\nconfigurations. It includes updates to the TypeScript definitions, API\nschema, and client-side API methods to support these operations.\n\nAfter this change, the user will be able to create only one data source\nusing the UI.\n\n### API and types changes \n* Added new types (`CreateMonitoringEntitySource`,\n`UpdatedMonitoringEntitySource`, `MonitoringEntitySource`) with expanded\nfields for entity source configurations, such as `indexPattern`,\n`enabled`, `error`, and `matchers`.\n[[1]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R18-R21)\n[[2]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72L39-R64)\n[[3]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R76-R122)\n\n* Updated the API schema (`monitoring_entity_source.schema.yaml`) to\nreflect new entity source operations, including `CreateEntitySource`,\n`UpdateEntitySource`, `DeleteEntitySource`, `GetEntitySource`, and\n`ListEntitySources`. Added support for query parameters and refined\nresponse schema definitions.\n[[1]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L10-R30)\n[[2]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L42-R48)\n[[3]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L58-R72)\n[[4]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L78-R102)\n[[5]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L88-R114)\n[[6]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L128-R189)\n[[7]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1R219-R220)\n\n* Add a uniqueness assertion for the data source name.\n\n* Create the data source 'PUT' API that allows updates\n\n* Force the `managed` to be consistently defined by default\n\n* Update list data sources API to support filter params\n\n### UI changes\n* Extract `IndexImportManageDataSource` component to its file.\n* Stop calling the `init` API on updates\n* Implement the edit mode instead of creating a new data source on every\nsave\n * Load the already added indices when editing\n* Fix the displayed added indices message to show the right value\n\n### Video\n\nhttps://github.com/user-attachments/assets/9d1c1ad1-09b9-49f0-8cea-1b640a26e954\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"8453edc55264144db5af97ab7ea13d727322c92d","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team: SecuritySolution","Theme: entity_analytics","Feature:Entity Analytics","Team:Entity Analytics","backport:version","v9.1.0","v9.2.0"],"title":"[SecuritySolution] [Bug] Fix Manage data sources page index import ","number":226099,"url":"https://github.com/elastic/kibana/pull/226099","mergeCommit":{"message":"[SecuritySolution] [Bug] Fix Manage data sources page index import (#226099)\n\nFix the Manage Data Sources page index import by implementing the\ncreation, updating, deletion, and retrieval of entity source\nconfigurations. It includes updates to the TypeScript definitions, API\nschema, and client-side API methods to support these operations.\n\nAfter this change, the user will be able to create only one data source\nusing the UI.\n\n### API and types changes \n* Added new types (`CreateMonitoringEntitySource`,\n`UpdatedMonitoringEntitySource`, `MonitoringEntitySource`) with expanded\nfields for entity source configurations, such as `indexPattern`,\n`enabled`, `error`, and `matchers`.\n[[1]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R18-R21)\n[[2]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72L39-R64)\n[[3]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R76-R122)\n\n* Updated the API schema (`monitoring_entity_source.schema.yaml`) to\nreflect new entity source operations, including `CreateEntitySource`,\n`UpdateEntitySource`, `DeleteEntitySource`, `GetEntitySource`, and\n`ListEntitySources`. Added support for query parameters and refined\nresponse schema definitions.\n[[1]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L10-R30)\n[[2]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L42-R48)\n[[3]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L58-R72)\n[[4]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L78-R102)\n[[5]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L88-R114)\n[[6]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L128-R189)\n[[7]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1R219-R220)\n\n* Add a uniqueness assertion for the data source name.\n\n* Create the data source 'PUT' API that allows updates\n\n* Force the `managed` to be consistently defined by default\n\n* Update list data sources API to support filter params\n\n### UI changes\n* Extract `IndexImportManageDataSource` component to its file.\n* Stop calling the `init` API on updates\n* Implement the edit mode instead of creating a new data source on every\nsave\n * Load the already added indices when editing\n* Fix the displayed added indices message to show the right value\n\n### Video\n\nhttps://github.com/user-attachments/assets/9d1c1ad1-09b9-49f0-8cea-1b640a26e954\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"8453edc55264144db5af97ab7ea13d727322c92d"}},"sourceBranch":"main","suggestedTargetBranches":["9.1"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/226099","number":226099,"mergeCommit":{"message":"[SecuritySolution] [Bug] Fix Manage data sources page index import (#226099)\n\nFix the Manage Data Sources page index import by implementing the\ncreation, updating, deletion, and retrieval of entity source\nconfigurations. It includes updates to the TypeScript definitions, API\nschema, and client-side API methods to support these operations.\n\nAfter this change, the user will be able to create only one data source\nusing the UI.\n\n### API and types changes \n* Added new types (`CreateMonitoringEntitySource`,\n`UpdatedMonitoringEntitySource`, `MonitoringEntitySource`) with expanded\nfields for entity source configurations, such as `indexPattern`,\n`enabled`, `error`, and `matchers`.\n[[1]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R18-R21)\n[[2]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72L39-R64)\n[[3]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R76-R122)\n\n* Updated the API schema (`monitoring_entity_source.schema.yaml`) to\nreflect new entity source operations, including `CreateEntitySource`,\n`UpdateEntitySource`, `DeleteEntitySource`, `GetEntitySource`, and\n`ListEntitySources`. Added support for query parameters and refined\nresponse schema definitions.\n[[1]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L10-R30)\n[[2]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L42-R48)\n[[3]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L58-R72)\n[[4]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L78-R102)\n[[5]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L88-R114)\n[[6]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L128-R189)\n[[7]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1R219-R220)\n\n* Add a uniqueness assertion for the data source name.\n\n* Create the data source 'PUT' API that allows updates\n\n* Force the `managed` to be consistently defined by default\n\n* Update list data sources API to support filter params\n\n### UI changes\n* Extract `IndexImportManageDataSource` component to its file.\n* Stop calling the `init` API on updates\n* Implement the edit mode instead of creating a new data source on every\nsave\n * Load the already added indices when editing\n* Fix the displayed added indices message to show the right value\n\n### Video\n\nhttps://github.com/user-attachments/assets/9d1c1ad1-09b9-49f0-8cea-1b640a26e954\n\n\n\n\n### Checklist\n\nCheck the PR satisfies following conditions. \n\nReviewers should verify this PR satisfies this list as well.\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n- [x] Review the [backport\nguidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)\nand apply applicable `backport:*` labels.","sha":"8453edc55264144db5af97ab7ea13d727322c92d"}}]}] BACKPORT-->
…lastic#226099) Fix the Manage Data Sources page index import by implementing the creation, updating, deletion, and retrieval of entity source configurations. It includes updates to the TypeScript definitions, API schema, and client-side API methods to support these operations. After this change, the user will be able to create only one data source using the UI. ### API and types changes * Added new types (`CreateMonitoringEntitySource`, `UpdatedMonitoringEntitySource`, `MonitoringEntitySource`) with expanded fields for entity source configurations, such as `indexPattern`, `enabled`, `error`, and `matchers`. [[1]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R18-R21) [[2]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72L39-R64) [[3]](diffhunk://#diff-b8c44f34825a1f7fa2c3f70fdda00f38b07e19ef8600e1a2e937660346d95c72R76-R122) * Updated the API schema (`monitoring_entity_source.schema.yaml`) to reflect new entity source operations, including `CreateEntitySource`, `UpdateEntitySource`, `DeleteEntitySource`, `GetEntitySource`, and `ListEntitySources`. Added support for query parameters and refined response schema definitions. [[1]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L10-R30) [[2]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L42-R48) [[3]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L58-R72) [[4]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L78-R102) [[5]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L88-R114) [[6]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1L128-R189) [[7]](diffhunk://#diff-e7f2de573ae15c6a3c3781b2a97b9875299c0674f81dd673d2bf9b3a6cf397f1R219-R220) * Add a uniqueness assertion for the data source name. * Create the data source 'PUT' API that allows updates * Force the `managed` to be consistently defined by default * Update list data sources API to support filter params ### UI changes * Extract `IndexImportManageDataSource` component to its file. * Stop calling the `init` API on updates * Implement the edit mode instead of creating a new data source on every save * Load the already added indices when editing * Fix the displayed added indices message to show the right value ### Video https://github.com/user-attachments/assets/9d1c1ad1-09b9-49f0-8cea-1b640a26e954 ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [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 - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels.
Fix the Manage Data Sources page index import by implementing the creation, updating, deletion, and retrieval of entity source configurations. It includes updates to the TypeScript definitions, API schema, and client-side API methods to support these operations.
After this change, the user will be able to create only one data source using the UI.
API and types changes
Added new types (
CreateMonitoringEntitySource,UpdatedMonitoringEntitySource,MonitoringEntitySource) with expanded fields for entity source configurations, such asindexPattern,enabled,error, andmatchers. [1] [2] [3]Updated the API schema (
monitoring_entity_source.schema.yaml) to reflect new entity source operations, includingCreateEntitySource,UpdateEntitySource,DeleteEntitySource,GetEntitySource, andListEntitySources. Added support for query parameters and refined response schema definitions. [1] [2] [3] [4] [5] [6] [7]Add a uniqueness assertion for the data source name.
Create the data source 'PUT' API that allows updates
Force the
managedto be consistently defined by defaultUpdate list data sources API to support filter params
UI changes
IndexImportManageDataSourcecomponent to its file.initAPI on updatesVideo
Screen.Recording.2025-07-02.at.10.16.15.mov
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:*label is applied per the guidelinesbackport:*labels.