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

Start to limit vaccination site data parsing to one place. #110

Merged
merged 2 commits into from
Feb 27, 2021

Conversation

hblumberg
Copy link
Collaborator

Right now, we pass around the vaccination site info exactly as is comes from the database. That means that throughout the frontend, we need to know the names of the fields, what the contents might be, etc.

This PR is a first step towards parsing all of the site data in a single place, and then passing around a parsed object that has some guarantees. (If we ever add a type system, this will be even more helpful!)

Test Plan:

  • Ensure both the map and search results work as usual.

Comment on lines -71 to -74
var sites_latitude = [];
var sites_longitude = [];
var available = [];
var available_latitude = [];
var available_longitude = [];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just cleaning up these unused arrays while I'm here.

@hblumberg hblumberg changed the base branch from main to develop February 27, 2021 20:44
@hblumberg hblumberg merged commit d8f4c5b into develop Feb 27, 2021
@hblumberg hblumberg deleted the hb/data branch February 27, 2021 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants