Maxime Beauchemin
48d8c91b19
feat: migrate examples from Python to YAML format with enhanced CLI
...
Migrates Superset's example data system from Python-based scripts to YAML configuration files, providing a cleaner, more maintainable approach to managing example datasets, charts, and dashboards.
- Converted 9 Python example modules to YAML configurations
- Exported existing examples from database and added as YAML files:
- 11 dashboards (USA Births Names, World Bank's Data, etc.)
- 115 charts
- 25 datasets
- Moved test-specific fixtures to `tests/fixtures/examples/`
- Removed theme_id from dashboard exports for compatibility
- **New command group**: `superset examples` with subcommands:
- `load` - Load example data (replaces `load-examples`)
- `clear-old` - Remove old Python-based examples
- `clear` - Placeholder for future YAML clearing
- `reload` - Clear and reload in one command
- **Backwards compatibility**: `superset load-examples` still works with deprecation warning
- **Safety mechanism**: Detects old examples and preserves them to avoid data loss
- Fixed JSON data loading - examples can now load `.json.gz` files from CDN
- Fixed Docker compose configuration for isolated development
- Fixed webpack WebSocket configuration for different ports
- Import operations now log what's being created vs updated:
- "Creating new dashboard: Sales Dashboard"
- "Updating existing chart: World's Population"
- Provides clear visibility into the import process
- Moved import logging to individual import functions (DRY principle)
- Non-destructive migration approach - no user data is deleted
- Deterministic UUID generation for consistent example data
- Tested migration from old Python examples to new YAML format
- Verified safety mechanism prevents accidental data overwrites
- Confirmed backwards compatibility with deprecated command
- All pre-commit checks pass
- Updated installation docs to use new CLI commands
- Added deprecation notice to UPDATING.md
- Updated development documentation
None - the old `load-examples` command continues to work with a deprecation warning.
For users with existing Python-based examples:
1. Run `superset examples clear-old --confirm` to remove old examples
2. Run `superset examples load` to load new YAML-based examples
2025-07-29 22:23:52 -07:00
Maxime Beauchemin
16db999067
fix: rate limiting issues with example data hosted on github.com ( #34381 )
2025-07-29 11:19:29 -07:00
Maxime Beauchemin
3f8472ca7b
chore: move some rules from ruff -> pylint ( #34292 )
2025-07-24 09:40:49 -07:00
Paul Lavacquery
da6947d295
feat(deckgl): add support for OpenStreetMap as our new default and make "tile-providers" more configurable FIX ( #34204 )
2025-07-18 15:25:32 -07:00
Damian Pendrak
7229e1ccf3
feat(deckgl): add new color controls with color breakpoints ( #34017 )
2025-07-11 17:29:26 +03:00
Paul Lavacquery
d951158ce6
feat(deckgl): add support for OpenStreetMap as our new default and make "tile-providers" more configurable ( #33603 )
...
Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com >
2025-07-08 14:04:10 -07:00
Vladislav Korenkov
9f0523977d
feat(plugin-chart-echarts): add Gantt Chart plugin ( #33716 )
2025-07-03 14:23:50 -07:00
Maxime Beauchemin
dd129fa403
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor ( #31590 )
...
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com >
Co-authored-by: Diego Pucci <diegopucci.me@gmail.com >
Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me >
Co-authored-by: Geido <60598000+geido@users.noreply.github.com >
Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com >
Co-authored-by: Damian Pendrak <dpendrak@gmail.com >
Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com >
Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com >
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com >
2025-06-20 13:38:58 -07:00
Beto Dealmeida
a26e1d822a
chore: remove sqlparse ( #33564 )
2025-06-04 19:31:41 -04:00
Beto Dealmeida
c03964dc5f
chore: remove useless-suppression ( #33549 )
2025-05-21 14:11:58 -04:00
Maxime Beauchemin
7f14e434c8
fix: loading examples in CI returns http error "too many requests" ( #33412 )
2025-05-13 08:36:12 -07:00
Maxime Beauchemin
f045a73e2d
fix: loading examples from raw.githubusercontent.com fails with 429 errors ( #33354 )
2025-05-05 13:07:23 +02:00
Evan Rusackas
7c9c30db1d
chore(examples): Touching up Vehicle Sales a bit ( #32623 )
2025-03-14 09:31:02 -06:00
Michael S. Molina
386aa93e24
fix: Histogram examples config ( #32122 )
2025-02-03 13:53:34 -03:00
Maxime Beauchemin
7bd53a84d5
feat: improve docker-compose services boot sequence ( #31747 )
2025-01-09 16:24:53 -08:00
Michael S. Molina
399b709aaf
refactor: Removes 5.0 approved legacy charts ( #31582 )
2025-01-09 16:45:05 -03:00
Maxime Beauchemin
e51b95ffa8
chore: enforce more ruff rules ( #31447 )
...
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com >
2024-12-18 17:41:34 -08:00
Geido
90572be95a
fix(Dashboard): Retain colors when color scheme not set ( #30646 )
2024-11-21 19:58:32 +02:00
Joe Li
bd42e336c7
chore: add native filters to Covid Vaccines dashboard ( #30495 )
2024-10-02 10:32:04 -07:00
Michael S. Molina
eb2d69a5e6
fix: Duplicated example dataset ( #29993 )
2024-08-22 14:46:26 -03:00
John Bodley
8fb8199a55
chore(dao/command): Add transaction decorator to try to enforce "unit of work" ( #24969 )
2024-06-28 12:33:56 -07:00
Michael S. Molina
c83d5b88e1
feat: Adds the ECharts Sankey chart ( #29329 )
2024-06-26 08:36:07 -03:00
Michael S. Molina
95706d9be2
feat: Adds the Featured Charts dashboard ( #28789 )
2024-06-04 16:59:10 -03:00
Eyal Ezer
07b2449bd7
refactor: Unify all json.(loads|dumps) usage to utils.json ( #28702 )
...
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com >
2024-05-28 14:17:41 -07:00
Evan Rusackas
1e47e65ac5
fix(maps): adds Crimea back to Ukraine 🇺🇦 ( #28226 )
2024-04-25 17:56:41 -06:00
Beto Dealmeida
6cf681df68
feat(SIP-95): new endpoint for table metadata ( #28122 )
2024-04-25 12:23:49 -04:00
Maxime Beauchemin
2d63722150
chore: set up ruff as a new linter/formatter ( #28158 )
2024-04-24 17:19:53 -07:00
Beto Dealmeida
99a1601aea
refactor: rename get_sqla_engine_with_context ( #28012 )
2024-04-12 13:31:05 -04:00
Evan Rusackas
a47469f4c5
chore(examples): organizing example chart yaml files into dashboard folders ( #27572 )
2024-03-21 23:09:50 -06:00
Michael S. Molina
8a2f7d378a
refactor: Removes the deprecated GENERIC_CHART_AXES feature flag ( #26372 )
2024-01-31 09:45:57 -05:00
Michael S. Molina
4d9144eca5
refactor: Migrates legacy Sunburst charts to ECharts and removes legacy code ( #26350 )
2024-01-18 11:59:08 -03:00
Michael S. Molina
77f58fc8fa
fix: Removes non-existent columns in the 2018 FCC Survey dataset ( #26380 )
2024-01-03 11:13:07 -03:00
Michael S. Molina
3ab27c6ec9
chore: Clean up the examples dashboards ( #26158 )
2023-12-04 16:05:08 -03:00
John Bodley
07551dc3d4
chore(connector): Cleanup base models and views according to SIP-92 ( #24773 )
2023-11-21 10:11:50 -08:00
John Bodley
dd58b31cc4
chore(sqlalchemy): Remove erroneous SQLAlchemy ORM session.merge operations ( #24776 )
2023-11-20 17:25:41 -08:00
Josh Soref
0735680674
chore(backend): Spelling ( #25457 )
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2023-09-29 09:36:50 -07:00
Kamil Gabryjelski
d26ea980ac
feat: Add line width unit control in deckgl Polygon and Path ( #24755 )
2023-07-27 18:41:50 +02:00
John Bodley
1b5a6790f0
chore: Remove obsolete legacy visualizations ( #24694 )
2023-07-18 08:17:52 -07:00
John Bodley
ae00489779
chore(dao): Add explicit ON DELETE CASCADE for ownership ( #24628 )
2023-07-11 11:39:03 -07:00
Kamil Gabryjelski
fe2c14ff3a
fix: Ensure metrics is an array in Mixed Chart ( #24643 )
2023-07-10 18:04:38 +02:00
cwegener
7081a0e73d
refactor: pkg_resources -> importlib.resources ( #24578 )
2023-07-05 14:26:07 -07:00
Michael S. Molina
6ce85921fc
feat: Removes the Multiple Line Charts ( #23933 )
2023-06-08 14:41:58 -03:00
Michael S. Molina
f5148ef728
feat: Migrates Dual Line Chart to Mixed Chart ( #23910 )
2023-06-08 12:31:28 -03:00
Michael S. Molina
af24092440
feat: Migrates TreeMap chart ( #23741 )
2023-06-08 11:27:08 -03:00
Michael S. Molina
522eb97b65
feat: Migrates Pivot Table v1 to v2 ( #23712 )
2023-06-08 10:13:39 -03:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
Kamil Gabryjelski
60046ca1cc
chore: Add Cypress tests for drill by ( #23849 )
2023-04-28 17:33:45 +02:00
Beto Dealmeida
ec6318b379
fix: permission checks on import ( #23200 )
2023-03-15 08:31:09 -07:00
Hugh A. Miles II
b820eb8235
chore: Update pre-commit packages ( #23173 )
2023-03-13 17:05:13 -06:00
John Bodley
d415eed717
fix(examples): Cleanup granularity_sqla column ( #23322 )
2023-03-14 08:23:12 +13:00