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
Add option to pivots which allows omitting empty values. #15814
Conversation
dc4a50e
to
58a978b
Compare
...org/graylog/plugins/views/aggregations/SearchWithAggregationsSupportingMissingBucketsIT.java
Outdated
Show resolved
Hide resolved
1844740
to
2b8822b
Compare
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.
BE part approved, great job, thx!
</SkipEmptyValuesHoverForHelp> | ||
</SkipEmptyValuesLabel> | ||
</SkipEmptyValuesCheckbox> | ||
)} |
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.
Yes, I did it similar to the Rollup columns
checkbox, because it is right next to it. I think we should create a follow-up task to make all consistent.
* Add optional option to skip empty values for pivot config. * Implement strategy for skipping empty values when configured in pivot. * Allow option only for `values` pivot. * Fixing up inconsistencies. * Adding helper function for pivot creation. * Adding test case for disabling empty values. * Adding changelog snippet. * Adjusting expectations in test. * Reusing constant in test. * Handling skipping empty values for multi-field grouping. * Handle partially missing fields in aggregations properly. * Still use multi-terms in case empty values should be skipped.
…5982) * Add optional option to skip empty values for pivot config. * Implement strategy for skipping empty values when configured in pivot. * Allow option only for `values` pivot. * Fixing up inconsistencies. * Adding helper function for pivot creation. * Adding test case for disabling empty values. * Adding changelog snippet. * Adjusting expectations in test. * Reusing constant in test. * Handling skipping empty values for multi-field grouping. * Handle partially missing fields in aggregations properly. * Still use multi-terms in case empty values should be skipped.
Description
Motivation and Context
In
5.0
, we introduced returning empty values for individual groupings whenever documents are missing fields which are used for aggregations. To allow the user to have more control about if these should be returned or not, this PR is introducing an option for each grouping to define if empty values should be skipped. By default this is off, both for widgets which are already existing and for new ones.Fixes Graylog2/graylog-plugin-enterprise#4851.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: