-
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
[Vislib] Removes old implementation of xy chart #110786
Conversation
@elasticmachine merge upstream |
@KOTungseth @gchaps I have added the breaking change label. Do you think that the release note is ok? Do you want me to do anything else regarding the docs? Just a note here, although we remove this implementation (and the advanced setting) this is not a breaking change. Even if the users use the old implementation, their charts will automatically change to use the new one. But still, I think that we should label it as a breaking change and inform the users about this removal. @nickofthyme I have added you as a reviewer mostly for another 👁️ on the xy plugin. |
@elasticmachine merge upstream |
Pinging @elastic/kibana-vis-editors (Team:VisEditors) |
Tested by:
All works as expected, the charts are gone and I couldn't break the UI in any way. Great job! 🎉 |
...ck/test/search_sessions_integration/tests/apps/dashboard/async_search/save_search_session.ts
Outdated
Show resolved
Hide resolved
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.
app services changes LGTM
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.
FINALLY!! No more xy 🎉 🍾 🥳 . I bet it felt amazing to deleting all that code. Well done.vislib
It looks like you captured all the flag conditions that I remember, hopefully I left enough breadcrumbs for you to find them all.
What a relief to have all the PageObjects.visChart.getExpectedValue
💩 out of the function tests!
I left a few remarks and suggestions but all code changes LGTM.
@@ -8,6 +8,7 @@ | |||
|
|||
import _ from 'lodash'; | |||
import d3 from 'd3'; | |||
import $ from 'jquery'; |
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.
😱
histogram: pointSeries.column, | ||
horizontal_bar: pointSeries.column, | ||
line: pointSeries.line, | ||
pie: vislibPieConfig, | ||
area: pointSeries.area, | ||
point_series: pointSeries.line, |
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.
😍
public async getExpectedValue<T>(vislibValue: T, elasticChartsValue: T): Promise<T> { | ||
if (await this.isNewLibraryChart(xyChartSelector)) { | ||
return elasticChartsValue; | ||
} | ||
|
||
return vislibValue; | ||
} |
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.
❤️❤️❤️❤️❤️❤️❤️❤️
@stratoula I put this under |
@elasticmachine merge upstream |
@KOTungseth what do we mention in the 7.15 docs? The removal will happen in 7.16. |
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.
Presentation team changes LGTM! Code only review
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/get_alert_state·ts.alerting api integration security and spaces enabled Alerts alerts getAlertState "after each" hook for "should handle getAlertState alert request appropriately when unauthorized"Standard Out
Stack Trace
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
* [Vislib] Remove xy chart * Update i18n * Remove uncecessary file * Fix types * More fixes * Fix functional tests part 1 * Fix functional tests part 2 * Fix bug with shard-delay * Fix functional tests part 3 * fix functional tests part4 * Fix async_serch FT * Fix functional dashboard async test * REplace screenshot area chart image * Cleanup vislib from xy charts * Remove unused fixtures * Address PR comments * Remove miaou :D * Address PR comments * Fix i18n Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # docs/management/advanced-options.asciidoc # test/functional/screenshots/baseline/area_chart.png
) * [Vislib] Removes old implementation of xy chart (#110786) * [Vislib] Remove xy chart * Update i18n * Remove uncecessary file * Fix types * More fixes * Fix functional tests part 1 * Fix functional tests part 2 * Fix bug with shard-delay * Fix functional tests part 3 * fix functional tests part4 * Fix async_serch FT * Fix functional dashboard async test * REplace screenshot area chart image * Cleanup vislib from xy charts * Remove unused fixtures * Address PR comments * Remove miaou :D * Address PR comments * Fix i18n Co-authored-by: Kibana Machine <[email protected]> # Conflicts: # docs/management/advanced-options.asciidoc # test/functional/screenshots/baseline/area_chart.png * Fixes * Remove setting from docs Co-authored-by: Kibana Machine <[email protected]>
* [Vislib] Remove xy chart * Update i18n * Remove uncecessary file * Fix types * More fixes * Fix functional tests part 1 * Fix functional tests part 2 * Fix bug with shard-delay * Fix functional tests part 3 * fix functional tests part4 * Fix async_serch FT * Fix functional dashboard async test * REplace screenshot area chart image * Cleanup vislib from xy charts * Remove unused fixtures * Address PR comments * Remove miaou :D * Address PR comments * Fix i18n Co-authored-by: Kibana Machine <[email protected]>
Summary
Closes #103209
Bugs related to the vislib implementation:
Closes #94314
Closes #78113
Closes #63685
Closes #31071
Closes #26752
This PR removes the vislib implementation of the XY axis charts. Specifically:
Legacy charts library
shard_delay
to the es-charts implementationIn 7.15 all the users that were using the vislib implementation were notified that they should switch to the new one.
Even if they haven't done it, their charts will be automatically use the new implementation.
Release note
We removed the legacy charts library for area, bar and line charts of the aggregation-based visualizations.
Checklist