Repository navigation
chore(deps): bump echarts to 6.1.0 with locale and containLabel guards (#42315) - #42321
Conversation
Re-applies #40264, reverting #42314. The revert blamed the bump for the broken time-axis charts, but the actual cause was locale registration clobbering echarts' builtin locales, fixed on master by #42317 (and #42315): the plain langXX.js i18n bundles export nothing, so the loaders must import the langXX-obj.js builds. With that fix in place the 6.x bump is safe. Also restores the Greek (EL) and Latvian (LV) locale loaders, which echarts gained in 6.x, pointing them at their -obj builds. Co-Authored-By: Claude Fable 5 <[email protected]>
Code Review Agent Run #ecb13fActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #42321 +/- ##
==========================================
+ Coverage 65.27% 65.29% +0.01%
==========================================
Files 2793 2794 +1
Lines 157258 157263 +5
Branches 35953 35954 +1
==========================================
+ Hits 102655 102683 +28
+ Misses 52625 52602 -23
Partials 1978 1978
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Restores the echarts major-version bump in superset-frontend (5.6.0 → 6.1.0) now that the previously identified time-axis crash cause (locale self-registration clobbering) has been addressed upstream, and updates the ECharts locale loader map accordingly.
Changes:
- Bump
echartsdependency to^6.1.0(and correspondingpackage-lock.jsonupdates, includingzrender). - Extend the ECharts locale code-splitting map to include new ECharts 6 locales (Greek
ELand LatvianLV). - Remove the stale comment that previously constrained the locale map to what ECharts 5.6.0 shipped.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| superset-frontend/plugins/plugin-chart-echarts/src/components/Echart.tsx | Adds EL/LV locale loaders (using -obj bundles) and updates locale-map commentary to reflect the upgraded dependency. |
| superset-frontend/package.json | Updates echarts dependency from ^5.6.0 to ^6.1.0. |
| superset-frontend/package-lock.json | Locks [email protected] (and [email protected]) with updated resolved/integrity metadata. |
Files not reviewed (1)
- superset-frontend/package-lock.json: Generated file
|
🎪 Showtime deployed environment on GHA for d6bd4c8 • Environment: http://54.202.144.148:8080 (admin/admin) |
…th empty objects (#42315) Co-authored-by: Amin Ghadersohi <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
🎪 Showtime deployed environment on GHA for 7724254 • Environment: http://44.255.95.11:8080 (admin/admin) |
@sadpandajoe looks like it's all working as expected on the ephemeral. |
|
@sadpandajoe This PR is ready for review. Please review when you have a chance. |
Code Review Agent Run #79a033Actionable Suggestions - 0Additional Suggestions - 1
Filtered by Review RulesBito filtered these suggestions based on rules created automatically for your feedback. Manage rules.
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
aminghadersohi
left a comment
There was a problem hiding this comment.
Verified the crux of this re-application: all 26 entries in echartsLocale.ts's LOCALE_LOADERS (including the new EL/LV echarts-6 locales) import the langXX-obj.js builds, not the plain langXX.js UMD bundles. Confirmed against the actual echarts 6.1.0 tarball that the plain bundles are side-effect modules calling registerLocale against a separate internal echarts instance and exporting nothing ({}), while the -obj bundles export the real locale object with a populated time section — matching the described crash mechanism from the #42314 revert.
loadLocale's guard (echartsLocale.ts) only returns the locale object when localeObj?.time is truthy, and the call site in Echart.tsx only calls registerLocale when that return value is defined, so a broken/empty bundle falls back to echarts' builtin locale instead of clobbering it.
LegacyGridContainLabel is a valid echarts 6.1.0 echarts/features export and is registered once at module load via the existing use([...]) call alongside the other components, restoring grid.containLabel support.
The Echart.tsx locale logic removed (-74 lines) is fully subsumed by the new echartsLocale.ts module — nothing dropped. package.json/package-lock.json are consistent (echarts + zrender both resolve to 6.1.0).
Tests are non-vacuous: echartsLocale.test.ts exercises the real (unmocked) loadLocale against all 26 real echarts bundles and asserts real time.month/time.dayOfWeek content — this fails if any loader regresses to a plain bundle. The EN e2e test renders an actual time-axis chart via real echarts/core init/setOption with the loaded locale registered, which is the exact code path that crashed in #42314.
CI is green (all required checks passing) and no unresolved review threads. LGTM.
apache#42315) (apache#42321) Co-authored-by: Claude Code <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]>
* refactor(mcp): dedupe list-tool schemas and delete dead middleware (apache#41923) * fix(ag-grid-table): respect row limit with server pagination (apache#41346) Co-authored-by: Claude Opus 4.8 <[email protected]> * feat(table/pivot-table): correct non-additive totals/subtotals via DB rollup [SIP-216] (apache#41184) Co-authored-by: Superset Dev <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]> * feat(datasets): add RLS filter indicator badge to dataset list and explore view (apache#38807) Co-authored-by: Evan <[email protected]> * fix(chart): updates counties of kenya map (apache#38019) Co-authored-by: Zack Adams <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Evan <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> * chore(deps): bump actions/setup-go from 6.5.0 to 7.0.0 (apache#42303) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump nanoid from 5.0.9 to 6.0.0 in /superset-frontend (apache#42230) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: hainenber <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: hainenber <[email protected]> Co-authored-by: Joe Li <[email protected]> Co-authored-by: Evan <[email protected]> Co-authored-by: Claude Sonnet 5 <[email protected]> * test(dashboard): migrate dashboard load smoke test to Playwright (apache#41432) Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * fix(superset_app_root): when used with oauth (apache#38033) Signed-off-by: Grégoire Bellon-Gervais <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> * refactor: engine enforce SQLAlchemy 2.0 (apache#42277) * fix(ag-grid-table): avoid ambiguous build query import (apache#42313) * fix: Revert "chore(deps): bump echarts from 5.6.0 to 6.1.0 in /superset-frontend" (apache#42314) Co-authored-by: Claude Opus 4.8 <[email protected]> * adding circleci config * fix(plugin-chart-echarts): import the -obj locale build so time axes render (apache#42317) Co-authored-by: Claude Opus 4.8 <[email protected]> * fix(pandas_postprocessing): avoid FutureWarning for max/min in boxplot MINMAX (apache#42272) * fix(heatmap): correct tooltip axis value lookup and percentage calculations and add tests (apache#41864) Signed-off-by: yousoph <[email protected]> Co-authored-by: Kamil Gabryjelski <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> * fix(forecast): resolve time grain robustly for Prophet forecasting (apache#42145) Co-authored-by: Claude Opus 4.8 <[email protected]> * fix: Added PostgreSQL 17.X to the supported database versions table in (apache#42280) * fix(helm): add MCP HTTPRoute configuration (apache#42219) * fix(dashboard): offer Exit edit mode when there is nothing to discard (apache#42208) Co-authored-by: Claude Code <[email protected]> * chore(deps): bump actions/labeler from 6.2.0 to 7.0.0 (apache#42332) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github/codeql-action/analyze from 4.37.0 to 4.37.1 (apache#42331) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump github/codeql-action/init from 4.37.0 to 4.37.1 (apache#42334) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @formatjs/intl-durationformat from 0.10.17 to 0.10.18 in /superset-frontend (apache#42337) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump caniuse-lite from 1.0.30001805 to 1.0.30001806 in /docs (apache#42333) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump echarts to 6.1.0 with locale and containLabel guards (apache#42315) (apache#42321) Co-authored-by: Claude Code <[email protected]> Co-authored-by: Amin Ghadersohi <[email protected]> * docs: add pattern to the list of organisations using superset (apache#42341) * chore(deps): bump ag-grid from 36.0.0 to 36.0.1 in /superset-frontend (apache#42338) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: hainenber <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: hainenber <[email protected]> * fix(mcp): trust dataset is_dttm flag when applying time_grain to VARCHAR temporal columns (apache#42288) * chore(deps-dev): update taos-ws-py requirement from >=0.6.9 to >=0.7.0 (apache#42344) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump the storybook group in /superset-frontend with 5 updates (apache#42355) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(native-filters): keep filter value input caret at inline start (apache#42323) Co-authored-by: Claude Opus 4.8 <[email protected]> * fix(mcp): truncate query-tool responses instead of hard-failing (apache#42244) * chore(deps): bump nh3 from 0.3.5 to 0.3.6 (apache#42349) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> * chore(deps): bump pydantic from 2.11.7 to 2.13.4 (apache#42350) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> * chore(deps): bump sqlalchemy-continuum from 1.6.0 to 1.7.0 (apache#42351) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> * fix(embedded): stop rejecting guest chart data built from control-specific params keys (apache#42295) Co-authored-by: Claude Code <[email protected]> * fix(explore): show the beginning date on time-series x-axis line charts (apache#42046) * fix(api): add example to get_export_ids_schema so Swagger "Try it out" pre-fills a valid array (apache#42265) * chore: SQLAlchemy User cascade backref warnings are irrelevant (apache#42360) * fix(charts): handle async (202) chart-data responses in StatefulChart (apache#42157) Co-authored-by: Claude Sonnet 4.5 <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> * feat(KustoKQL): Add support for NULL / IS NOT NULL operator (apache#37890) Co-authored-by: ag-ramachandran <[email protected]> Co-authored-by: Joe Li <[email protected]> * chore(deps): bump pillow from 12.2.0 to 12.3.0 (apache#42348) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> * chore(deps): bump flask-compress from 1.17 to 1.24 (apache#42346) Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> * chore(deps-dev): bump databricks-sql-connector from 4.2.6 to 4.3.0 (apache#42347) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Li <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> * fix(native-filters): use FILTER_STATE_CACHE_CONFIG timeout for dynamic filter option queries (apache#38910) * fix(explore): render Jinja before validating legacy chart filters (apache#41996) * fix(dataset): disable duplicate button when name is empty (apache#42217) Co-authored-by: AS-MAC-1123 <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> * docs(gunicorn): correct dead links in values.yaml (apache#42385) * chore(deps): bump @deck.gl/mapbox from 9.3.6 to 9.3.7 in /superset-frontend in the deckgl group (apache#42377) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 (apache#42376) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump immer from 11.1.11 to 11.1.15 in /superset-frontend (apache#42378) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump body-parser from 1.20.5 to 1.20.6 in /docs (apache#42370) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump brace-expansion from 1.1.15 to 1.1.16 in /superset-embedded-sdk (apache#42369) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix(security): bump pyasn1 from 0.6.3 to 0.6.4 (apache#42363) * fix(security): bump pillow from 12.2.0 to 12.3.0 (apache#42362) * docs(map-tiles): add Yandex Maps Tiles API configuration (apache#42375) * ci: improve conditional checks for lillio tests and build --------- Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: hainenber <[email protected]> Signed-off-by: Grégoire Bellon-Gervais <[email protected]> Signed-off-by: yousoph <[email protected]> Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Amin Ghadersohi <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: Superset Dev <[email protected]> Co-authored-by: SkinnyPigeon <[email protected]> Co-authored-by: Zack <[email protected]> Co-authored-by: Zack Adams <[email protected]> Co-authored-by: Evan Rusackas <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: hainenber <[email protected]> Co-authored-by: Joe Li <[email protected]> Co-authored-by: Grégoire <[email protected]> Co-authored-by: Hans Yu <[email protected]> Co-authored-by: Elizabeth Thompson <[email protected]> Co-authored-by: yousoph <[email protected]> Co-authored-by: Kamil Gabryjelski <[email protected]> Co-authored-by: Amitesh Gupta <[email protected]> Co-authored-by: David <[email protected]> Co-authored-by: Yash Shrivastava <[email protected]> Co-authored-by: JUST.in DO IT <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: jesperct <[email protected]> Co-authored-by: Abdul Rehman <[email protected]> Co-authored-by: jenwitteng <[email protected]> Co-authored-by: Ramachandran A G <[email protected]> Co-authored-by: ag-ramachandran <[email protected]> Co-authored-by: Ujjwal Jain <[email protected]> Co-authored-by: Jean Massucatto <[email protected]> Co-authored-by: suvankardas216 <[email protected]> Co-authored-by: AS-MAC-1123 <[email protected]> Co-authored-by: Alejandro Solares <[email protected]> Co-authored-by: ViktorGo86 <[email protected]>


SUMMARY
Re-applies #40264 (reverting #42314), and now also carries #42315, which was merged into this branch so echarts 6 lands with its guard rails in one commit.
The revert blamed the 6.x bump for time-axis charts crashing with
Cannot read properties of null, but the actual cause was locale registration clobbering echarts' builtin locales. That was fixed onmasterby #42317: the plainlangXX.jsi18n bundles export nothing, so the loaders must import thelangXX-obj.jsbuilds. With that fix merged, the bump is safe to restore.On top of the dependency bump itself, this PR (via #42315) includes:
Echart.tsxintoechartsLocale.ts, with a test suite that exercises all 26 loaders (each must yield realtimecontent, the exact failure mode behind the crash) plus an end-to-end time-axis render with the loaded EN locale registered.timesection is never registered, falling back to the builtin locale instead of wiping it.LegacyGridContainLabelregistration. echarts 6 otherwise ignoresgrid.containLabel, which most of our chart options set, and clips axis labels.EL) and Latvian (LV) locale loaders that echarts gained in 6.x (pointing at their-objbuilds, both verified present in the 6.1.0 package).BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A (dependency bump; time-axis rendering covered by the tests in
Echart.test.tsxandechartsLocale.test.ts)TESTING INSTRUCTIONS
npm ci && npm run test -- plugins/plugin-chart-echartsand load any time-axis chart (e.g. a line chart). Axes render with no console errors, and axis labels are not clipped (that's thecontainLabelpiece). Line, bar, area, scatter, smooth, step, mixed timeseries, big number w/ trendline, and pie were also verified in a browser against this combined branch.ADDITIONAL INFORMATION
🤖 Generated with Claude Code