-
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
[Sustainable Architecture] Telemetry schemas #201760
[Sustainable Architecture] Telemetry schemas #201760
Conversation
Pinging @elastic/kibana-core (Team:Core) |
@@ -10,5 +10,10 @@ | |||
"output": "src/plugins/telemetry/schema/kbn_packages.json", | |||
"root": "packages/", | |||
"exclude": [] | |||
}, | |||
{ | |||
"output": "src/plugins/telemetry/schema/oss_platform.json", |
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.
I see the configs above make a distinction between "plugins" and "packages", producing different output files.
Is it okay to not do the distinction here?
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.
I think so... IMO, the main reason we had to do distinction is that they had different roots.
const plugins = [ | ||
ossPluginsTelemetrySchema, | ||
ossPackagesTelemetrySchema, | ||
ossPlatformTelemetrySchema, |
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.
I suppose this answers my question, as all schemas are merged here anyway.
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.
Thanks a lot!
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]
History
cc @afharo |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/12055251694 |
## Summary Since we are moving code around, the schema extractor now needs to adapt to the new directories. This PR adds new per-solution schemas to the `.telemetryrc.json` files and adapts FTRs accordingly. Related elastic#201653 ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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 (cherry picked from commit dac87ef)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[Sustainable Architecture] Telemetry schemas (#201760)](#201760) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"alejandro.haro@elastic.co"},"sourceCommit":{"committedDate":"2024-11-27T17:18:09Z","message":"[Sustainable Architecture] Telemetry schemas (#201760)\n\n## Summary\n\nSince we are moving code around, the schema extractor now needs to adapt\nto the new directories.\n\nThis PR adds new per-solution schemas to the `.telemetryrc.json` files\nand adapts FTRs accordingly.\n\nRelated https://github.com/elastic/kibana/pull/201653\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\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","sha":"dac87ef6fec2ff2291ea72ffe5ec00588265500a","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Feature:Telemetry","technical debt","release_note:skip","v9.0.0","backport:prev-minor"],"title":"[Sustainable Architecture] Telemetry schemas","number":201760,"url":"https://github.com/elastic/kibana/pull/201760","mergeCommit":{"message":"[Sustainable Architecture] Telemetry schemas (#201760)\n\n## Summary\n\nSince we are moving code around, the schema extractor now needs to adapt\nto the new directories.\n\nThis PR adds new per-solution schemas to the `.telemetryrc.json` files\nand adapts FTRs accordingly.\n\nRelated https://github.com/elastic/kibana/pull/201653\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\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","sha":"dac87ef6fec2ff2291ea72ffe5ec00588265500a"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201760","number":201760,"mergeCommit":{"message":"[Sustainable Architecture] Telemetry schemas (#201760)\n\n## Summary\n\nSince we are moving code around, the schema extractor now needs to adapt\nto the new directories.\n\nThis PR adds new per-solution schemas to the `.telemetryrc.json` files\nand adapts FTRs accordingly.\n\nRelated https://github.com/elastic/kibana/pull/201653\n\n### Checklist\n\n- [x]\n[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)\nwas added for features that require explanation or tutorials\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","sha":"dac87ef6fec2ff2291ea72ffe5ec00588265500a"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
## Summary Since we are moving code around, the schema extractor now needs to adapt to the new directories. This PR adds new per-solution schemas to the `.telemetryrc.json` files and adapts FTRs accordingly. Related elastic#201653 ### Checklist - [x] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials - [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
Summary
Since we are moving code around, the schema extractor now needs to adapt to the new directories.
This PR adds new per-solution schemas to the
.telemetryrc.json
files and adapts FTRs accordingly.Related #201653
Checklist