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

Symbology disappears when querying/filtering the data #176

Closed
rperlin-ela opened this issue Feb 1, 2021 · 10 comments
Closed

Symbology disappears when querying/filtering the data #176

rperlin-ela opened this issue Feb 1, 2021 · 10 comments
Labels
type: 🐛 bug🐛 Something isn't working

Comments

@rperlin-ela
Copy link
Collaborator

Throwing myself on the mercy of @abettermap :) I've been able to troubleshoot my way out of most things I've caused, but just been banging my head against this one for hours.

All colored points load normally, and you can visit them one by one or via Omnibox just fine, but when I filter in any way in the UI table they all disappear. World Region, Size, Status, Language, Endonym, nothing shows up, though the map still zooms to the right extent.

I reckon I must have caused this today while doing some data editing, getting ready to send to some beta testers. I don't think it's an MB issue— have tried uploading different old and new tilesets there to no avail. So I assume it's something in Airtable, maybe something as tiny as a space or a line or a missing minus sign or a duplicate ID, but QC shows no problems and I've looked in every way I can think of. I hope it's not something painfully obvious that I'm just not seeing— I'm guessing given the fields involved that it's something to do with the "Data" table.

Wasn't sure if there's a safe way to use AT's Snapshot feature to troubleshoot/restore in a case like this. I tried some Undo'ing and restored a version that I thought might be pre-bug in AT, but I wasn't sure what I should do with it if you're still hitting the main base. Download and import the old version as a spreadsheet into the main base to replace what's there? A clear workflow for restoring with a Snapshot could be useful in general for troubleshooting.

@rperlin-ela rperlin-ela added the type: 🐛 bug🐛 Something isn't working label Feb 1, 2021
@abettermap
Copy link
Contributor

Hmm interesting. I can take a peek at AT tomorrow and give the Chrome console a skim for errors in the map.

@rperlin-ela
Copy link
Collaborator Author

rperlin-ela commented Feb 1, 2021 via email

@abettermap
Copy link
Contributor

See my comment here #147 (comment) and if that fixes this then let's close it.

Re: AT's Snapshot feature, I'm not sure. On my end it's the usual requirements- schema and data types should be consistent. That's it.

@rperlin-ela
Copy link
Collaborator Author

rperlin-ela commented Feb 1, 2021 via email

@abettermap
Copy link
Contributor

Correct, code hits a specific base. If a new base were created and it had an identical schema (table names, col names, data types, etc.) then yeah I would just need the new API base ID. I'd have to double-check but I don't think that's in code at all, it's an environment variable, so I'd just have to update Netlify and maybe GH settings.

Why would you want to do that though?

@rperlin-ela
Copy link
Collaborator Author

rperlin-ela commented Feb 1, 2021 via email

@abettermap
Copy link
Contributor

Wow that's not very ideal.

If what you're suggesting is of interest, I could confirm that the code doesn't reference the API base id directly then document the steps to change it. In a nutshell:

  1. log into Netlify
  2. change the environment variable
  3. rebuild/deploy the project

steps 1-2 take seconds, 3 takes a few minutes.

Straightforward but you'd have to let me know each time you do it so that I can change the environment variable in my local environment as well.

@rperlin-ela
Copy link
Collaborator Author

rperlin-ela commented Feb 1, 2021 via email

@abettermap
Copy link
Contributor

Don’t mind those steps, but I don’t like having to bother you each time.

I think we could avoid that if I just remind myself to grab the AT ID from Netlify each time. It would get really confusing if I forget (since I would be seeing old data, or it maybe it would fail entirely if you deleted the old base), but at least it's directly linkable (we'll have to get you the creds to see it): https://app.netlify.com/sites/languagemapping/settings/deploys#environment-variables

I might be able to automate somehow but if not then it's fine to do occasionally. For active daily development though it would be very annoying and error-prone though so I don't think that's a good workflow.

@abettermap
Copy link
Contributor

@rperlin-ela did we resolve this? If I recall, it was an AT thing that we fixed. If so, please close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: 🐛 bug🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants