-
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
[XY] Migrate vis type xy to new unified xy expression #136475
[XY] Migrate vis type xy to new unified xy expression #136475
Conversation
The delay agg test fails because of this: But in the new renderer, we do this (basically filtering out a table if the split series is not defined):
I think this behavior is fine and it's kind of bad luck this test breaks. The easiest way to work around it I found is to map the shard delay agg to a chart split instead of a split series (you just have to change the kibana/x-pack/test/functional/fixtures/kbn_archiver/dashboard_async/async_search.json Line 53 in 6c93e3d
|
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors) |
@elasticmachine merge upstream |
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.
limits.yml
@elasticmachine merge upstream |
@stratoula I fixed issues related to percentiles metric. Could you please re-review? |
I can't find any other regressions! I just think we can clean up the code. Are we planning to do it on a separate PR? For example:
|
@stratoula Removing all unused code from vis_type xy I will do in separate PR |
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.
I have tested it multiple times and I can't find any other regressions. LGTM as long as the CI is green and we clean up the code at a separate PR.
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: cc @VladLasitsa |
This looks mostly fine - however I noticed one weird thing - it seems like for percentage charts the old renderer is ignoring the "mode" while the new one is respecting it: Not 100% sure what to do about. What do you think @stratoula ? IMHO we should keep the existing behavior on the expression building level (if percentage and bar, then always use stacked) |
@flash1293 if I recall correctly, when we firstly used the EC library on the agg based XV visualizations, we had decided that for percentage mode it should always be stacked but we had some complains, this is the reason we decided to also allow the Normal mode on the percentage bars. #118525 |
@stratoula OK, does this mean there is a bug in the current main as it's not respecting "normal" mode? |
@flash1293 I am on main and it is respected (haven't tested this PR though) |
@flash1293 it is not respected for percentiles on main |
@stratoula I tested with percentiles, forgot to mention, sorry - it works fine on main for regular series |
As this is an edge case and the new state is more "correct" IMHO I think we can keep this. |
Agreed! |
@VladLasitsa This looks almost perfect, I just noticed one thing - the render UI counters introduced by Alexey went from |
it was discussed offline, decided to keep as it |
* Migrate vis type xy to new unified xy expression * Add legend toggle and color picker. Some fixes * Fix snapshots * Fix tests * Fix some tests * Fix snapshots * Fix tests * Fix some tests * Fix some tests * Fix some more tests * Update snapshot for area chart * Fix dashboards tests * Fix test * Fix some remarks * Fix tests * Fix test * Remove useAdjustedInterval arg * Fix remarks * Fix CI checks * [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix' * Fix CI * [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix' * Fix all remarks * Remove unused code * Fix Percentile aggragtion * Fix problems with several series * Fix problems with hidden series Co-authored-by: Joe Reuter <johannes.reuter@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
Completes part of #127115
Summary
Migrate existing vis type xy implementation to the new unified xy expression.
As part of this the following changes was made in unified xy expression:
table
arg was removed)splitColumnAccessor
andsplitRowAccessor
forlayeredXyVis
functionenforce
argument in axis extent so that ignore extents validationgetAdjustedInterval
fromsrc/plugins/charts/public/static/components/endzones.tsx
splitHorizontally
, now it was usessplitVertically
prop.