daisycrego / jbg-admin

Admin app for Jill Biggs Group follow-up boss event management
1 stars 0 forks source link

`Sync Events` button #34

Closed daisycrego closed 3 years ago

daisycrego commented 3 years ago

Add the Sync Events button back to the Events page. When there are lapses in data collection via the webhooks, we need an extra way to retrieve the events data and catch up on missed events if the webhook worker process is down for some reason (eg Heroku issues...). Make sure that the Sync Events button works by checking only for events that aren't already in the DB, by paginating back through the data until an event is found that already matches an event in the db (match by ID). Don't overwrite any existing data. Make sure the zillow flex alert emails are sent.

daisycrego commented 3 years ago

Finished adding the feature back in, synced the events back with the API when the system was down as a test run. Note: No emails are sent during a sync because it's no longer valid to compare the date the lead came in the to the day it was created using today when today isn't really the today that the lead came in.