-
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
Pipeline field formatting #28746
Pipeline field formatting #28746
Conversation
Pinging @elastic/kibana-app |
💔 Build Failed |
809fa3b
to
8421ab5
Compare
💚 Build Succeeded |
💔 Build Failed |
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.
@ppisljar I feel like I just ran a marathon (In a good way!) 😉
Added a handful of comments: some nits, some questions on structure, and only a couple items that are potential buggy edge cases. Overall though, this is great -- it all feels way cleaner without AggConfig
s hanging around everywhere 😄
I've also done some initial testing locally (Chrome OSX) and so far not noticing any obvious issues.
Ping me if you want to sync on any of these notes!
src/ui/public/visualize/loader/pipeline_helpers/build_pipeline.ts
Outdated
Show resolved
Hide resolved
src/legacy/core_plugins/metric_vis/public/__tests__/metric_vis_controller.js
Show resolved
Hide resolved
src/ui/public/visualize/loader/pipeline_helpers/build_pipeline.ts
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
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.
Code LGTM. Tested the main functionalities, fiters and tooltips.
I've left just a minor comment
} else { | ||
title = aggConfig.makeLabel(); | ||
} | ||
if (!isPercentageMode) value = this._getFormattedValue(formatter, value, 'html'); |
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.
can you move this as the else
of the previous if
statement?
💚 Build Succeeded |
Summary
handling field formatting in the expressions
all visualizations now get formatting options passed in as part of the configuration
bottom line: aggConfig is no longer necesarry in any response handlers or any visualization.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support[ ] Documentation was added for features that require explanation or tutorials[ ] This was checked for keyboard-only and screenreader accessibilityFor maintainers
[ ] This was checked for breaking API changes and was labeled appropriately[ ] This includes a feature addition or change that requires a release note and was labeled appropriately