-
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
Scaled date format for date histogram aggregation #12384
Conversation
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.
nice fix, unit tests here need a little TLC https://github.com/thomasneirynck/kibana/blob/4bc4c58d8ce63225618b1dc207cc31f5c9c2fd00/src/ui/public/agg_table/__tests__/_table.js#L113-L113
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.
Nice! LGTM pending passing tests.
Should |
your call. I'm good with what it's now. these aren't called in a tight loop. there's repeated instance-creation, when rendering results, but that's only a single time. e.g. these objects arent' created repeatedly on each frame. |
b607a78
to
4339982
Compare
…longer manage config themselves
…d date_histogram which now has getFormat, so needed a new agg type
@nreese Release Note: paragraph in the description please |
Add
getFormat
function to date_histogramBucketAggType
. The function will return a DateFieldFormatter configured with a scaled date format as specified under advanced settingsdateFormat:scaled
.fixes #8076
Release Note:
Format date_histogram aggregation bucket labels with format specified in Advanced Setting's "dateFormat:scaled"