-
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
Restore line rendering in point series vis using percentile agg #35649
Conversation
Pinging @elastic/kibana-app |
💔 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.
Tested locally seems to fix the missing line rendering problem.
Before merging I'd suggest to:
- find the root cause of the problem: seems that what changes is not now the seriid is composed (with the dot) but the way it's configured on the
seriConfig.data.id;
I'd suggest to investigate where we the original change, substituting the dot notation of theseriConfig.data.id
to only the initial percentage id. - if possible, try to add few tests to block any other possible changes of the
seriId
format for percentile aggregation
i took a closer look at it, this is a follow up problem of a refactoring, it's only relevant fo 7.x the removal of 85bdd22#diff-0d98df44497e69dabf20a569326ad6caL31 This led to the following change: since there are composed ids for percentiles (1.5, 1.10, ...) this check didn't work anymore. However, this can't be undone by adding
also it's not available in the context of the functions call solving it in a different way needs to be discussed with @ppisljar, it's not a small refactoring. |
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 looks good,
- we have an aggregation that produces multiple responses. each aggConfig has an Id. in response we id the columns with that same id
col-aggid
and if agg returns multiple responses we name the culmnscol-aggId.subId
- in editor we have a single configuration for all the responses agg produces (add percentile agg, go to
metrics & axes
tab and you will see there is a single series configuration. - vis gets the data in and processes it a bit (extracts the ids out of column ids for example)
- later it tries to match series configurations to appropriate data series
- as we have one config for all columns produced by one aggregation, we need to make sure matching works correctly
we could have this more explicit and have an option to provide multiple column ids for every serie config, or have duplicated series configurations for each of the columns, but i think this fix is fine for now, specially as we are looking to retire vislib in the long run.
@kertal can you please add a test for this ?
c483693
to
30e4211
Compare
💔 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.
LGTM, tested on chrome linux
…tic#35649) Restores the visualization's line rendering when using a multi metric aggregation like percentile. Before this fix only dots were rendered fixes elastic#34858
Summary
When creating a visualisation using percentiles, no lines were rendered.
Fix for #34858
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.[ ] This was checked for cross-browser compatibility, including a check against IE11[ ] 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[ ] Unit or functional tests were updated or added to match the most common scenarios[ ] 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