project-icp / bee-pollinator-app

The web application front end for the ICP Pollinator Decision Support Tool 🐝
Apache License 2.0
6 stars 1 forks source link

Logged in Users Whitescreen on Staging #525

Closed rajadain closed 5 years ago

rajadain commented 5 years ago

On staging, if you log in to an account that already has some apiary scores cached, we get this:

image

This is possibly because the data structure in the front-end has changed, but the data in the back-end was not migrated into the new structure.

We can either:

  1. Write a data migration that reads every existing row and checks if it is in the new format. If not, it adds / removes keys until it is, and saves it.
  2. See if an Apiary with null scores has them fetched automatically. If so, clear out all the old scores and they will be populated as users log back in to the new system.