abdelghanibelgaid opened a new pull request, #41021:
URL: https://github.com/apache/superset/pull/41021
### SUMMARY
This PR updates the Morocco GeoJSON used by the legacy Country Map chart.
The previous `morocco.geojson` file used an older regional structure. This
change replaces it with an updated Morocco boundary file using the current
12-region administrative structure and keeps Morocco represented as a single
country map option named `Morocco`.
The change is limited to:
```text
superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/morocco.geojson
```
No new country option is introduced, and no frontend logic or chart behavior
is changed.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
* Before: the Morocco Country Map used the previous GeoJSON boundary and
older regional subdivision structure.
* After: the Morocco Country Map uses the updated Morocco GeoJSON boundary
and current 12-region administrative structure.
<!-- Add before/after screenshots here if available. -->
### TESTING INSTRUCTIONS
Manual validation steps:
1. Validate the GeoJSON file:
```bash
python -m json.tool
superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/morocco.geojson
> /tmp/morocco.valid.json
```
2. Confirm the updated region names are present:
```bash
grep -i "Laâyoune\|Dakhla"
superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries/morocco.geojson
```
3. Start Superset locally and create a Country Map chart.
4. Select `Morocco` as the country map.
5. Confirm that the chart renders correctly with the updated Morocco
boundaries.
### ADDITIONAL INFORMATION
* [ ] Has associated issue: #41020
* [ ] Required feature flags:
* [x] Changes UI
* [ ] Migration is atomic, supports rollback & is backwards-compatible
* [ ] Confirm DB migration upgrade and downgrade tested
* [ ] Runtime estimates and downtime expectations provided
* [ ] Introduces new feature or API
* [ ] Removes existing feature or API
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]