Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes "No georeferenced data" dialog. #3449

Merged
merged 1 commit into from
May 4, 2015

Conversation

alonsogarciapablo
Copy link
Contributor

Fixes #3198.

We were generating the localStorage key using the id (name) of the table. So if you created/imported a new table with the name of a previously existing table, the localStorage key already existed and we din't display that dialog. It's an edge case.

Instead of relying on table.id, I added the map_id to the key, which is the only attribute that seemed unique in the table metadata (I was planning to use created_at but it wasn't present). I'm open to suggestion on better ways to generate a unique id for the table metadata.

@javisantana, this one is for you! :)

@Cartofante
Copy link
Collaborator

Frontend tests were OK 👍 (details)

@javisantana
Copy link
Contributor

🇪🇸

alonsogarciapablo added a commit that referenced this pull request May 4, 2015
@alonsogarciapablo alonsogarciapablo merged commit 957a750 into master May 4, 2015
@alonsogarciapablo alonsogarciapablo deleted the 3198-fix-georef-warning-dialog branch May 4, 2015 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

importing this file didn't open the non-georeferenced data when being on the dataset editor
3 participants