Skip to content

[Discover] [Unified Data Table] Support the field stats popover in data grid column headers#196863

Draft
jughosta wants to merge 19 commits intoelastic:mainfrom
jughosta:192228-column-field-stats
Draft

[Discover] [Unified Data Table] Support the field stats popover in data grid column headers#196863
jughosta wants to merge 19 commits intoelastic:mainfrom
jughosta:192228-column-field-stats

Conversation

@jughosta
Copy link
Copy Markdown
Contributor

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@jughosta jughosta added release_note:enhancement Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// backport:prev-minor labels Oct 18, 2024
@jughosta jughosta self-assigned this Oct 18, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 18, 2024

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!

Comment on lines +359 to +364
<ButtonComponent
{...otherProps}
isPopoverOpen={infoIsOpen}
onTogglePopover={togglePopover}
onClosePopover={closePopover}
/>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made the button to trigger the popover customizable.

maxAllowedSampleSize={getMaxAllowedSampleSize(discoverServices.uiSettings)}
query={savedSearch.searchSource.getField('query')}
query={query}
filters={filters}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updating it rather via another PR #197190

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 23, 2024

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #13 / Data table columns column tokens returns eui grid columns with tokens
  • [job] [logs] Jest Tests #13 / Data table columns column tokens returns eui grid columns with tokens
  • [job] [logs] Jest Tests #13 / Data table columns getEuiGridColumns returns eui grid columns with time column
  • [job] [logs] Jest Tests #13 / Data table columns getEuiGridColumns returns eui grid columns with time column
  • [job] [logs] Jest Tests #13 / Data table columns getEuiGridColumns returns eui grid with in memory sorting
  • [job] [logs] Jest Tests #13 / Data table columns getEuiGridColumns returns eui grid with in memory sorting
  • [job] [logs] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group5.ts / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] x-pack/test_serverless/functional/test_suites/security/common_configs/config.group5.ts / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] FTR Configs #89 / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] x-pack/test_serverless/functional/test_suites/security/common_configs/config.group5.ts / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] x-pack/test_serverless/functional/test_suites/search/common_configs/config.group5.ts / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] FTR Configs #89 / discover/group6 discover sidebar field stats should work for regular and pinned filters
  • [job] [logs] Jest Integration Tests #2 / incompatible_cluster_routing_allocation retries the INIT action with a descriptive message when cluster settings are incompatible
  • [job] [logs] Jest Integration Tests #2 / incompatible_cluster_routing_allocation retries the INIT action with a descriptive message when cluster settings are incompatible
  • [job] [logs] FTR Configs #9 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #27 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #91 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #27 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #91 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #9 / Serverless Common UI - Examples Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #55 / Unified Field List Examples Field stats field distribution should return an auto histogram for dates
  • [job] [logs] FTR Configs #55 / Unified Field List Examples Field stats field distribution should return an auto histogram for dates

History

cc @jughosta

…-stats

# Conflicts:
#	src/plugins/discover/public/embeddable/components/saved_search_grid.tsx
#	src/plugins/discover/public/embeddable/components/search_embeddable_grid_component.tsx
…-stats

# Conflicts:
#	packages/kbn-unified-data-table/src/components/data_table.tsx
#	packages/kbn-unified-field-list/src/containers/unified_field_list_item/field_list_item.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:enhancement Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Discover] [Unified Data Table] Support the field stats popover in data grid column headers

3 participants