-
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
[ObsUx][Inventory] Add actions column with link to discover for inventory #199306
[ObsUx][Inventory] Add actions column with link to discover for inventory #199306
Conversation
9de36da
to
2c40baa
Compare
/ci |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
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
x-pack/plugins/observability_solution/inventory/public/components/entities_grid/index.tsx
Outdated
Show resolved
Hide resolved
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
…-discover-for-inventory
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
|
…tory (elastic#199306) Closes elastic#199025 ## Summary This PR adds an actions column with a link to discover for inventory. It is available in the inventory grid(s) in both the group view and the unified inventory view. The column header tooltip text will change when it's available: [issue](elastic#199500) added⚠️ If the discover link is not available I added a logic to hide the whole actions column as this is the only available option for now. Once we add more actions we should refactor that to just not add the action and to keep the column visible (which doesn't make sense atm) ## Testing - Enable the Inventory - Check with/without grouping both the action link and the button - combination of kuery / drop-down filter - without any filters - With just one kuery or drop-down filter - When the link is clicked from the table we should see a filter by identity field in the query in discover (like `service.name: 'test'`, `conteainer.id: 'test'`) https://github.com/user-attachments/assets/bb4a89f5-2b30-457f-bf13-7580ff162a7e https://github.com/user-attachments/assets/2894ef5c-6622-4488-ab84-c453f5b6e318 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…tory (elastic#199306) Closes elastic#199025 ## Summary This PR adds an actions column with a link to discover for inventory. It is available in the inventory grid(s) in both the group view and the unified inventory view. The column header tooltip text will change when it's available: [issue](elastic#199500) added⚠️ If the discover link is not available I added a logic to hide the whole actions column as this is the only available option for now. Once we add more actions we should refactor that to just not add the action and to keep the column visible (which doesn't make sense atm) ## Testing - Enable the Inventory - Check with/without grouping both the action link and the button - combination of kuery / drop-down filter - without any filters - With just one kuery or drop-down filter - When the link is clicked from the table we should see a filter by identity field in the query in discover (like `service.name: 'test'`, `conteainer.id: 'test'`) https://github.com/user-attachments/assets/bb4a89f5-2b30-457f-bf13-7580ff162a7e https://github.com/user-attachments/assets/2894ef5c-6622-4488-ab84-c453f5b6e318 --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit fcc3b06)
… inventory (#199306) (#199789) # Backport This will backport the following commits from `main` to `8.x`: - [[ObsUx][Inventory] Add actions column with link to discover for inventory (#199306)](#199306) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"jennypavlova","email":"dzheni.pavlova@elastic.co"},"sourceCommit":{"committedDate":"2024-11-08T18:18:07Z","message":"[ObsUx][Inventory] Add actions column with link to discover for inventory (#199306)\n\nCloses #199025 \r\n## Summary\r\n\r\nThis PR adds an actions column with a link to discover for inventory. It\r\nis available in the inventory grid(s) in both the group view and the\r\nunified inventory view.\r\n\r\nThe column header tooltip text will change when it's available:\r\n[issue](#199500) added\r\n\r\n⚠️ If the discover link is not available I added a logic to hide the\r\nwhole actions column as this is the only available option for now. Once\r\nwe add more actions we should refactor that to just not add the action\r\nand to keep the column visible (which doesn't make sense atm)\r\n\r\n## Testing\r\n- Enable the Inventory\r\n- Check with/without grouping both the action link and the button\r\n - combination of kuery / drop-down filter\r\n - without any filters\r\n - With just one kuery or drop-down filter \r\n- When the link is clicked from the table we should see a filter by\r\nidentity field in the query in discover (like `service.name: 'test'`,\r\n`conteainer.id: 'test'`)\r\n \r\n\r\n\r\nhttps://github.com/user-attachments/assets/bb4a89f5-2b30-457f-bf13-7580ff162a7e\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2894ef5c-6622-4488-ab84-c453f5b6e318\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcc3b0654525d67d34cc5916b4b6f7351892f650","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services"],"number":199306,"url":"https://github.com/elastic/kibana/pull/199306","mergeCommit":{"message":"[ObsUx][Inventory] Add actions column with link to discover for inventory (#199306)\n\nCloses #199025 \r\n## Summary\r\n\r\nThis PR adds an actions column with a link to discover for inventory. It\r\nis available in the inventory grid(s) in both the group view and the\r\nunified inventory view.\r\n\r\nThe column header tooltip text will change when it's available:\r\n[issue](#199500) added\r\n\r\n⚠️ If the discover link is not available I added a logic to hide the\r\nwhole actions column as this is the only available option for now. Once\r\nwe add more actions we should refactor that to just not add the action\r\nand to keep the column visible (which doesn't make sense atm)\r\n\r\n## Testing\r\n- Enable the Inventory\r\n- Check with/without grouping both the action link and the button\r\n - combination of kuery / drop-down filter\r\n - without any filters\r\n - With just one kuery or drop-down filter \r\n- When the link is clicked from the table we should see a filter by\r\nidentity field in the query in discover (like `service.name: 'test'`,\r\n`conteainer.id: 'test'`)\r\n \r\n\r\n\r\nhttps://github.com/user-attachments/assets/bb4a89f5-2b30-457f-bf13-7580ff162a7e\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2894ef5c-6622-4488-ab84-c453f5b6e318\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcc3b0654525d67d34cc5916b4b6f7351892f650"}},"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/199306","number":199306,"mergeCommit":{"message":"[ObsUx][Inventory] Add actions column with link to discover for inventory (#199306)\n\nCloses #199025 \r\n## Summary\r\n\r\nThis PR adds an actions column with a link to discover for inventory. It\r\nis available in the inventory grid(s) in both the group view and the\r\nunified inventory view.\r\n\r\nThe column header tooltip text will change when it's available:\r\n[issue](#199500) added\r\n\r\n⚠️ If the discover link is not available I added a logic to hide the\r\nwhole actions column as this is the only available option for now. Once\r\nwe add more actions we should refactor that to just not add the action\r\nand to keep the column visible (which doesn't make sense atm)\r\n\r\n## Testing\r\n- Enable the Inventory\r\n- Check with/without grouping both the action link and the button\r\n - combination of kuery / drop-down filter\r\n - without any filters\r\n - With just one kuery or drop-down filter \r\n- When the link is clicked from the table we should see a filter by\r\nidentity field in the query in discover (like `service.name: 'test'`,\r\n`conteainer.id: 'test'`)\r\n \r\n\r\n\r\nhttps://github.com/user-attachments/assets/bb4a89f5-2b30-457f-bf13-7580ff162a7e\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/2894ef5c-6622-4488-ab84-c453f5b6e318\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"fcc3b0654525d67d34cc5916b4b6f7351892f650"}}]}] BACKPORT--> Co-authored-by: jennypavlova <dzheni.pavlova@elastic.co>
Closes #199025
Summary
This PR adds an actions column with a link to discover for inventory. It is available in the inventory grid(s) in both the group view and the unified inventory view.
The column header tooltip text will change when it's available: issue added
Testing
service.name: 'test'
,conteainer.id: 'test'
)without_grouping.mov
with_grouping.mov