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

Add data migration to nullify scores #526

Closed fungjj92 closed 5 years ago

fungjj92 commented 5 years ago

Overview

The schema of the underlying scores data changed, thus invalidating the cached apiary scores. By wiping the scores, we allow a user to pull fresh data on next login. Said data is not automatically pulled because of budget constraints.

Connects #525

Demo

Logged in with wiped data:

Screen Shot 2019-08-01 at 10 27 24 AM

Testing Instructions

Pull down branch Try to login and see that the app breaks Apply the migration ./scripts/manage.sh migrate Refresh app and see the screenshot Pull data and see that it comes back successfully

rajadain commented 5 years ago

This is failing for me with the message "can't convert null to object"

image

image

Should we reset it to be {} instead?

fungjj92 commented 5 years ago

Great! Phew ha.