After syncing Locations with LA County and finding new/updated Locations.
Since the streaming version of the bot will handle context 1, we just need a new task that DMs all the appointment-locations in the zip code of any updated Location.
@wraasch what do you think of the expected behavior above? I think this is in line with what we discussed, but want to make sure before potentially going down the wrong path.
Bug Report
Description
The
vaccinesignup:sync_and_notify
task (which callsSyncBot
) is flawed, because it attempts to DM subscribed users after anyLocations
are created or updated, regardless of whether those specific zip codes were followed.Steps to Reproduce
rake vaccinesignup:sync_and_notify
.Locations
.Expected behavior
If a given
Location
gets updated, then the outgoing DM should contain all theLocations
in the same zip code.Additional context
The app currently DMs appointment-locations under two conditions:
TWITTER_CLIENT.direct_messages_received
for zip codes.Locations
with LA County and finding new/updatedLocations
.Since the streaming version of the bot will handle context 1, we just need a new task that DMs all the appointment-locations in the zip code of any updated
Location
.