CityScope / CS_cityscopeJS

Create, design, and publish @CityScope projects on the web
https://cityscope.media.mit.edu/CS_cityscopeJS/
GNU General Public License v3.0
20 stars 16 forks source link

Need to edit grid twice for `GEOGRIDDATA` to work #108

Closed crisjf closed 3 years ago

crisjf commented 3 years ago

Here's how to reproduce the issue:

  1. Create a new table at https://cityscope.media.mit.edu/CS_cityscopeJS/, and check GEOGRIDDATA, which is empty, and that's fine: image

  2. Edit a few cells and update grid. Then check GEOGRIDDATA again, not it's not empty, BUT it's still not complete (ids are missing, which breaks some modules) image

  3. Edit a few cells again and update grid. Then check GEOGRIDDATA and you'll finally see the full object with ids: image

Any chance we can edit GEOGRIDDATA just once?

RELNO commented 3 years ago

@crisjf great find. Fixed with creating IDs already on the editor, so new tables will have them by default. Also GEOGRIDDATA won't be empty anymore, so with each new grid, GEOGRIDDATA will be a mirror of GEOGRID