-
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
[Logs UX] Classify logs-data-access and logs-shared as platform plugins #201263
[Logs UX] Classify logs-data-access and logs-shared as platform plugins #201263
Conversation
@@ -74,7 +68,7 @@ export const LogEntryRow = memo( | |||
scale, | |||
wrap, | |||
}: LogEntryRowProps) => { | |||
const trackMetric = useUiTracker({ app: 'infra_logs' }); | |||
const trackMetric = useUiTracker(); |
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 in-lined version of this is hard-coded to infra_logs
.
@@ -20,8 +20,7 @@ import { | |||
} from '../types'; | |||
|
|||
export type PluginKibanaContextValue = CoreStart & | |||
LogsSharedClientStartDeps & | |||
LogsSharedClientStartExports; | |||
LogsSharedClientStartDeps & { logsShared: LogsSharedClientStartExports }; |
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 aligns the shape of the context with that of the other consuming plugins. This way no distinction of local and non-local usage is necessary at the usage site.
Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs) |
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.
Obs UX Infra changes LGTM / code review only
🤖 GitHub commentsExpand to view the GitHub comments
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.
Code review only LGTM, I see we'll get some duplicated utils between observability-shared
and logs-shared
, but it doesn't seem anything urgent to refactor yet 👌
@tonyghiani thanks for the review!
Yes, that was the proposed short-term solution to cut the dependency ties in the issue. While there was an obvious shared package to move the APM locators to, I didn't want to add more complexity by creating some more packages for just a few lines. |
@elasticmachine merge upstream |
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 review only LGTM.
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
cc @weltenwort |
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.
Core changes LGTM
"group": "platform", | ||
"visibility": "shared", |
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.
Is the plan to move this out of the observability_solution
directory to reflect this scoping in the dir structure too?
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 imagine so, when this PR is merged, we will be able to re-run the relocation logic on the relocation PR.
Then, these modules will be placed under
x-pack/platform/plugins/shared/...
Correct?
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.
What remains to be seen, is if my script will remove the observability_solution
fragment of the path with a transform function, I'll check to confirm.
@@ -2,29 +2,39 @@ | |||
"type": "plugin", | |||
"id": "@kbn/logs-shared-plugin", | |||
"owner": "@elastic/obs-ux-logs-team", | |||
"group": "platform", |
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.
Same comment as for logs_data_access
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.
LGTM on green! Since the ESLINT rule has been removed, CI will confirm whether the changes violate the no_group_crossing
rules.
Starting backport for target branches: 8.x |
💔 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 |
…ns (elastic#201263) This classifies `@kbn/logs-data-access-plugin`, `@kbn/logs-shared-plugin` and `@kbn/observability-logs-overview` as "platform/shared". --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> (cherry picked from commit d5e0d3a) # Conflicts: # .eslintrc.js
… plugins (#201263) (#204546) # Backport This will backport the following commits from `main` to `8.x`: - [[Logs UX] Classify logs-data-access and logs-shared as platform plugins (#201263)](#201263) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Felix Stürmer","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-17T10:48:35Z","message":"[Logs UX] Classify logs-data-access and logs-shared as platform plugins (#201263)\n\nThis classifies `@kbn/logs-data-access-plugin`,\r\n`@kbn/logs-shared-plugin` and `@kbn/observability-logs-overview` as\r\n\"platform/shared\".\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"d5e0d3a2f6cd7b9158950c7151d2aaba674214ca","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-logs"],"number":201263,"url":"https://github.com/elastic/kibana/pull/201263","mergeCommit":{"message":"[Logs UX] Classify logs-data-access and logs-shared as platform plugins (#201263)\n\nThis classifies `@kbn/logs-data-access-plugin`,\r\n`@kbn/logs-shared-plugin` and `@kbn/observability-logs-overview` as\r\n\"platform/shared\".\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"d5e0d3a2f6cd7b9158950c7151d2aaba674214ca"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201263","number":201263,"mergeCommit":{"message":"[Logs UX] Classify logs-data-access and logs-shared as platform plugins (#201263)\n\nThis classifies `@kbn/logs-data-access-plugin`,\r\n`@kbn/logs-shared-plugin` and `@kbn/observability-logs-overview` as\r\n\"platform/shared\".\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>","sha":"d5e0d3a2f6cd7b9158950c7151d2aaba674214ca"}}]}] BACKPORT-->
…ns (elastic#201263) This classifies `@kbn/logs-data-access-plugin`, `@kbn/logs-shared-plugin` and `@kbn/observability-logs-overview` as "platform/shared". --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
📝 Summary
This classifies
@kbn/logs-data-access-plugin
,@kbn/logs-shared-plugin
and@kbn/observability-logs-overview
as "platform/shared".🕵️♀️ Review Notes
In order to remove the forbidden dependency of
logs-shared
onobservability-shared
a few changes were made:@kbn/xstate-utils
as a shared dependency was also classified asplatform/shared
.