-
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
Use the customMetric's formatter for pipeline aggregations #11933
Use the customMetric's formatter for pipeline aggregations #11933
Conversation
Can one of the admins verify this patch? |
jenkins, test |
jenkins, test this |
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.
let subAgg; | ||
if (agg.params.customMetric) { | ||
subAgg = agg.params.customMetric; | ||
} else { |
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.
When do we hit this code-path? Not a 100% familiar with htis, but don't all parent pipelines require a custom-metric?
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.
you can also use a predefined one.
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.
LGTM, wanna add a simple test as well ?
thanks a lot trevan!
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.
hey trevan, good for me too (in case that wasn't clear), but would be helpful if you can add corresponding test. thx!
@ppisljar, @thomasneirynck, sorry it took so long. I finally added tests. |
thx! jenkins, test this |
CI failing for most obscure of reasons. https://kibana-ci.elastic.co/job/elastic+kibana+pull-request+multijob-selenium/6095/console jenkins, test this |
jenkins, test this |
@trevan could you rebase with master, and fix the merge conflict? |
I rebased. |
jenkins, test this |
Thx! |
…1933) This is a manual backport and required edits.
…1933) (elastic#13018) This is a manual backport and required edits.
The pipeline aggregations weren't using the underlying metric's formatter.