You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/12/12 07:42:51 UTC

[GitHub] [incubator-superset] barmic12 opened a new issue #8819: Cannot add new country to CountryMap chart

barmic12 opened a new issue #8819: Cannot add new country to CountryMap chart
URL: https://github.com/apache/incubator-superset/issues/8819
 
 
   I was trying add new country according to https://superset.apache.org/visualization.html#need-to-add-a-new-country, however it doesn't work - new country is visable in dropdown, but when I click on it, map is blank.
   
   
   ### Expected results
   
   Can display new added map from .geojson
   
   ### Actual results
   
   I get 404 when I click new country on dropdown map is fetching:
   ```
   Request URL: http://localhost:5000/superset/explore/undefined
   Status Code: 404 NOT FOUND
   ```
   
   Other (default) maps works properly:
   
   ```
   Request URL: http://localhost:5000/static/assets/dist/5f64d14062abb5f5fd6610972976ebe6.geojson
   Status Code: 200 OK
   ```
   
   I was able to resolve this issue by editing `assets/node_modules/@superset-ui/legacy-plugin-chart-country-map/countries.js` and add `.geojson` file to this directory. So it means that maps are fetched from npm package? 
   
   #### How to reproduce the bug
   
   https://superset.apache.org/visualization.html#need-to-add-a-new-country
   
   ### Environment
   
   - superset version: `0.999.0dev`
   - python version: `Python 3.7.5`
   - node.js version: `v12.12.0`
   - npm version: `6.11.3`
   
   I built superset from source.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org