Skip to content
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

Conversation

jennypavlova
Copy link
Member

@jennypavlova jennypavlova commented Nov 7, 2024

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

⚠️ 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')
without_grouping.mov
with_grouping.mov

@jennypavlova jennypavlova added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Nov 7, 2024
@jennypavlova jennypavlova self-assigned this Nov 7, 2024
@jennypavlova jennypavlova force-pushed the 199025-obsux-add-actions-column-with-link-to-discover-for-inventory branch from 9de36da to 2c40baa Compare November 7, 2024 14:24
@jennypavlova
Copy link
Member Author

/ci

@jennypavlova jennypavlova marked this pull request as ready for review November 8, 2024 10:44
@jennypavlova jennypavlova requested a review from a team as a code owner November 8, 2024 10:44
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

Copy link
Contributor

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Nov 8, 2024
Copy link
Contributor

github-actions bot commented Nov 8, 2024

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@jennypavlova jennypavlova enabled auto-merge (squash) November 8, 2024 16:33
@elasticmachine
Copy link
Contributor

elasticmachine commented Nov 8, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: 507145e
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-199306-507145e1b7f0

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
inventory 239 245 +6

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
inventory 231.7KB 233.7KB +2.0KB

History

cc @jennypavlova

@jennypavlova jennypavlova merged commit fcc3b06 into elastic:main Nov 8, 2024
26 checks passed
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Nov 11, 2024
…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>
@cauemarcondes
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

cauemarcondes pushed a commit to cauemarcondes/kibana that referenced this pull request Nov 12, 2024
…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)
cauemarcondes added a commit that referenced this pull request Nov 12, 2024
… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.17.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ObsUx] Add actions column with link to discover for Inventory
4 participants