-
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
[Inventory] List k8s entities in the grid #197292
[Inventory] List k8s entities in the grid #197292
Conversation
…entory-k8s-entities-2
…entory-k8s-entities-2
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
x-pack/plugins/observability_solution/inventory/server/routes/entities/get_latest_entities.ts
Show resolved
Hide resolved
const where: string[] = [getBuiltinEntityDefinitionIdESQLWhereClause()]; | ||
|
||
if (entityTypes) { | ||
where.push(getEntityTypesWhereClause(entityTypes)); |
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.
Now the entityTypes
could be any string that the user passes, maybe it's time to use the params. Up to you
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 tried, but it was throwing an error. I was having another look at the types now and apparently I missed something... will try it again. Thanks.
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.
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 tested it only with the node scripts/synthtrace k8s_entities
and it looks good. it would be nice to have a way to test all the entities
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
|
x-pack/plugins/observability_solution/inventory/public/components/entity_icon/index.tsx
Show resolved
Hide resolved
...gins/observability_solution/inventory/public/components/search_bar/entity_types_controls.tsx
Outdated
Show resolved
Hide resolved
...gins/observability_solution/inventory/public/components/search_bar/entity_types_controls.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/inventory/server/routes/entities/get_latest_entities.ts
Show resolved
Hide resolved
key: entityType, | ||
label: getEntityTypeLabel(entityType), | ||
label: entityType, |
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's the plan here? is EEM going to send the label?
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.
That's the plan for the future.
...gins/observability_solution/inventory/public/components/search_bar/entity_types_controls.tsx
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.
LGTM! code review only
⏳ Build in-progress
History
|
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
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11500451419 |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
3 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
closes elastic#196155 Blocked by elastic#196916 (K8s entities alias patterns don't exist yet.) ``` node scripts/synthtrace many_entities.ts --clean --live node scripts/synthtrace k8s_entities.ts --clean --live ``` https://github.com/user-attachments/assets/5861ebc7-8386-4a4b-a68b-50adc5244d43 (cherry picked from commit c6f4178) # Conflicts: # x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx
closes elastic#196155 Blocked by elastic#196916 (K8s entities alias patterns don't exist yet.) ``` node scripts/synthtrace many_entities.ts --clean --live node scripts/synthtrace k8s_entities.ts --clean --live ``` https://github.com/user-attachments/assets/5861ebc7-8386-4a4b-a68b-50adc5244d43 (cherry picked from commit c6f4178) # Conflicts: # x-pack/plugins/observability_solution/inventory/public/components/search_bar/index.tsx
# Backport This will backport the following commits from `main` to `8.x`: - [Inventory] List k8s entities in the grid (#197292) (c6f4178) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Cauê Marcondes","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-24T13:35:19Z","message":"[Inventory] List k8s entities in the grid (#197292)\n\ncloses https://github.com/elastic/kibana/issues/196155\r\nBlocked by #196916 (K8s entities\r\nalias patterns don't exist yet.)\r\n\r\n```\r\nnode scripts/synthtrace many_entities.ts --clean --live\r\nnode scripts/synthtrace k8s_entities.ts --clean --live\r\n```\r\n\r\n\r\nhttps://github.com/user-attachments/assets/5861ebc7-8386-4a4b-a68b-50adc5244d43","sha":"c6f41783bf853f2828787cc4c48a96511fec2eec"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}] BACKPORT-->
closes #196155
Blocked by #196916 (K8s entities alias patterns don't exist yet.)
Screen.Recording.2024-10-22.at.16.mp4