Repository navigation
Conversation
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #40078 +/- ##
==========================================
- Coverage 85.97% 85.92% -0.06%
==========================================
Files 3128 3134 +6
Lines 217773 218044 +271
Branches 51629 51721 +92
==========================================
+ Hits 187230 187352 +122
- Misses 27119 27267 +148
- Partials 3424 3425 +1
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:
|
|
🎪 Showtime deployed environment on GHA for 6f882f2 • Environment: http://35.90.51.159:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for d9f4367 • Environment: http://44.255.105.149:8080 (admin/admin) |
|
This comment is sticky and updated on every push; old drift comments are not stacked. |
|
🎪 Showtime deployed environment on GHA for d9f04d6 • Environment: http://35.93.203.199:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for d9f04d6 • Environment: http://35.91.84.220:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for df479e7 • Environment: http://16.145.89.166:8080 (admin/admin) |
|
🎪 Showtime deployed environment on GHA for 610c435 • Environment: http://54.245.129.231:8080 (admin/admin) |
|
Structure looks right for a SIP POC — the ~20k lines are overwhelmingly generated geo data plus a reproducible build.py/mapshaper pipeline, with the actual code (CountryMap.tsx, controlPanel.tsx, build.py) staying modest, and the render path uses createElementNS/appendChild rather than innerHTML. Main thing to settle before it leaves draft: checking in both the generated GeoJSON and the build pipeline duplicates the source of truth — worth deciding whether the assets are committed artifacts or CI-built (the regen workflow suggests the latter) so they don't drift. Otherwise this reads as land-the-SIP-discussion-first. |
|
@sha174n on the committed-vs-CI-built question, SIP_DRAFT.md already covers it: the GeoJSON output gets committed so a fresh ephemeral env can render without running the build first, and the regen workflow just diffs CI's rebuild against that to catch drift, it's not building anything at request time. Bigger problem though: |
|
This comment is sticky and updated on every push; old drift comments are not stacked. |
…untry_map_v2 Ports the SIP proof of concept onto current master as a separate plugin, `plugin-chart-country-map-v2`, registered as `country_map_v2` next to the existing `plugin-chart-country-map` (`country_map`). The original branch created its plugin at the path and package name that master has since given to the existing plugin, so the two could no longer be rebased together. What carries over from the original 49 commits, squashed: - the D3 renderer, control panel, buildQuery/transformProps and the form-data migration from `country_map` - the Natural Earth + mapshaper build pipeline, its YAML configs and tests - the committed GeoJSON outputs under superset/static/assets/country-maps and the ignore-file re-includes that ship them - the drift-check workflow, Playwright spec and SIP draft What changed in the port: - the existing Country Map plugin is left untouched: no deprecation label, rename, or UPDATING.md entry - the new chart is named "Country Map (Experimental)" - the workflow uses pinned actions, job-scoped permissions, and skips its sticky comment on fork PRs - d3-geo is allowed through jest's transform, and the generated manifest is exempt from oxfmt so the build output stays byte-stable - theme color fallbacks are typed against the tokens they read - map files are fetched through SupersetClient.getUrl so subdirectory deployments resolve them, and the Playwright spec polls for the drawn map instead of counting the loading indicator's paths - messages.pot carries the new chart's strings Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Evan Rusackas <evan@preset.io> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Status: DRAFT — SIP scratchpad
This PR is the working POC for a Country Map plugin redesign. It will eventually be referenced by a SIP (filed once the design is more concrete and the POC compiles end-to-end).
What's in this commit
superset-frontend/plugins/plugin-chart-country-map/SIP_DRAFT.md— the design draft, capturing motivation, goals, proposed architecture, spike findings, open questions, and a phased implementation plan.What we've validated so far
_ukr(Ukraine) worldview cleanly delivers Crimea-as-Ukrainian plus aligned positions on Kosovo (separate from Serbia), Western Sahara (separate from Morocco), Palestine (recognized), Cyprus (undivided), Kashmir (aligned with India), Aksai Chin (excluded from China). 18 of 258 features differ from NE Default; 9 micro-territories are dropped.mapshaper-CLI-based script that consumes pinned NE shapefiles and emits one GeoJSON per (worldview × admin level). Reproducible, diff-able, no notebook state.plugin-chart-country-map(nolegacy-prefix) against the modernchart/dataendpoint, supporting both Admin 0 (countries) and Admin 1 (subdivisions) — folding in years of bespoke per-country contributions (French departments, Italian regions, Türkiye city map, etc.) into a single infrastructure.What's NOT in scope for this SIP
Next commits on this branch (rough)
scripts/country-maps/build.shChartPlugin,chart/dataendpoint)Reviewing this PR
Read
SIP_DRAFT.mdand ping back on the open questions section. The doc will be kept up to date as the POC progresses; eventual SIP issue will be a snapshot of this file.Additional information