-
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
[Ingest Manager] Rename data sources to package configs #70259
[Ingest Manager] Rename data sources to package configs #70259
Conversation
…-datasource` to `ingest-package-config`) and adjust mappings: - Remove unused `processors` field on input & stream levels - Remove unnecessary `enabled` field on package config & input levels - Rename `agent_stream` field to `compiled_stream` - Reorder other fields so that important fields are closer to top & similar fields are grouped together Also, - Remove 7.9.0 migrations as we are not supporting an upgrade path from experimental to beta release
…rences (does not include actual type definition changes yet)
…(does not include actual schema changes yet)
…configs` and update all references
… needed for current & future UI features. Also: - Match types and schemas with saved object mappings (`agent_stream` to `compiled_stream`, removal of `processors`) - Set `namespace` to be a required property on agent config and package config types, add validation support for it on UI
…n client sides, and for Endpoint too
…ngest/policies` es archiver data
feb5be9
to
640c63b
Compare
Pinging @elastic/ingest-management (Team:Ingest Management) |
// Create the system monitoring package config and add it to agent config. | ||
if (withSysMonitoring && newSysPackageConfig !== undefined && agentConfig !== undefined) { | ||
newSysPackageConfig.config_id = agentConfig.id; | ||
newSysPackageConfig.namespace = agentConfig.namespace; |
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.
This line fixes #68041
@elastic/ingest-management @elastic/endpoint-management Hi teams, could one person from each team help look at this PR? It's probably easiest to review by pulling down locally (with wiped ES data) and trying it out, there should be no difference in functionality. It would also be great if you can spot check some files including a few test files. Since so many files are affected, it'd be great to get this PR reviewed & merged sooner rather than later, so that we can minimize the churn of resolving conflicts. |
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.
This looks good from the Endpoint Management side, pulled it down and tested it - our flows still work and the steps still makes sense
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.
Checked it out locally and clicked around. I can't test installing integrations because of #70453 or without a local/older registry.
I'm fine merging this and dealing with any fallout in followup PRs
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
) * Rename `datasource` saved object to `package_config` (SO type `ingest-datasource` to `ingest-package-config`) and adjust mappings: - Remove unused `processors` field on input & stream levels - Remove unnecessary `enabled` field on package config & input levels - Rename `agent_stream` field to `compiled_stream` - Reorder other fields so that important fields are closer to top & similar fields are grouped together Also, - Remove 7.9.0 migrations as we are not supporting an upgrade path from experimental to beta release * Pluralize `ingest-package-configs` for consistency * Rename `Datasource`-related types to `PackageConfig`, update all references (does not include actual type definition changes yet) * Rename `Datasource` schemas and rest spec typings to `PackageConfig` (does not include actual schema changes yet) * Change `datasources` on agent config typings and schemas to `package_configs` and update all references * Add back `enabled` field on package config and input levels. They are needed for current & future UI features. Also: - Match types and schemas with saved object mappings (`agent_stream` to `compiled_stream`, removal of `processors`) - Set `namespace` to be a required property on agent config and package config types, add validation support for it on UI * Rename server-side datasource references in file names, variable names, and routes * Update spec file and schema file * Update doc wording * Rename all instances of datasource in file paths and variable names on client sides, and for Endpoint too * Minor copy adjustments, fix i18n check * Replace datasource references in tests and fixtures; remove unused `ingest/policies` es archiver data * Fix tests * Fix test field name * Fix test fixtures fields again * Fix i18n # Conflicts: # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
* master: (46 commits) [Visualize] Add missing advanced settings and custom label for pipeline aggs (elastic#69688) Use dynamic: false for config saved object mappings (elastic#70436) [Ingest Pipelines] Error messages (elastic#70167) [APM] Show transaction rate per minute on Observability Overview page (elastic#70336) Filter out error when calculating a label (elastic#69934) [Visualizations] Each visType returns its supported triggers (elastic#70177) [Telemetry] Report data shippers (elastic#64935) Reduce SavedObjects mappings for Application Usage (elastic#70475) [Lens] fix dimension label performance issues (elastic#69978) Skip failing endgame tests (elastic#70548) [SIEM] Reenabling Cypress tests (elastic#70397) [SIEM][Security Solution][Endpoint] Endpoint Artifact Manifest Management + Artifact Download and Distribution (elastic#67707) [Security] Adds field mapping support to rule creation (elastic#70288) SECURITY-ENDPOINT: add fields for events to metadata document (elastic#70491) Fixed assertion in hybrid index pattern test to iterate through indices (elastic#70130) [SIEM][Exceptions] - Exception builder component (elastic#67013) [Ingest Manager] Rename data sources to package configs (elastic#70259) skip suites blocking es snapshot promomotion (elastic#70532) [Metrics UI] Fix asynchronicity and error handling in Snapshot API (elastic#70503) fix export response (elastic#70473) ...
Summary
Resolves #70018 as part of elastic/beats#19082. This PR replaces
datasource(s)
/data source(s)
withpackage config(s)
everywhere in Ingest Manager and Endpoint code. This PR has no visible impact apart from small UI copy changes and routing path changes. The affected areas include:ingest-datasources
->ingest-package-config
agent_stream
->compiled_stream
processors
fielddatasources
on agent config SO renamed topackage_configs
/api/ingest_manager/datasources
->/api/ingest_manager/package_configs
/app/ingestManager/.../(add|edit)-datasource
->/app/ingestManager/.../(add|edit)-integration
d/Datasource(s)
->p/PackageConfig(s)
datasource(s)
->package_config(s)
Testing
Screenshots
Showing revised copy, breadcrumbs, and URL path: