-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add more validation to Rite Aid API #547
Merged
Mr0grog
merged 10 commits into
main
from
sometimes-rite-aid-gives-somewhat-unrealistic-numbers-of-slots
Feb 2, 2022
Merged
Add more validation to Rite Aid API #547
Mr0grog
merged 10 commits into
main
from
sometimes-rite-aid-gives-somewhat-unrealistic-numbers-of-slots
Feb 2, 2022
Commits on Feb 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eb73382 - Browse repository at this point
Copy the full SHA eb73382View commit details -
Validate slot counts from Rite Aid's API
- If the total slots is unreasonably high, log a warning, but don't fail. - If the total slots is less than the available slots, throw an error (something is way broken). Along the way, this amends the overall flow to match more recently written sources, where an exception formatting a single location doesn't stop other locations from being formatted and sent.
Configuration menu - View commit details
-
Copy full SHA for acab328 - Browse repository at this point
Copy the full SHA acab328View commit details -
Add schema checking for Rite Aid API
Also adds parsing for phone numbers, because I was foolish enough to try checking the phone number pattern in the schema, and discovered that leading zeroes on the local part of the phone numbers are missing in Rite Aid's data (!!!).
Configuration menu - View commit details
-
Copy full SHA for 77f5a80 - Browse repository at this point
Copy the full SHA 77f5a80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dd14ba - Browse repository at this point
Copy the full SHA 1dd14baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 452e670 - Browse repository at this point
Copy the full SHA 452e670View commit details -
Configuration menu - View commit details
-
Copy full SHA for 768dd42 - Browse repository at this point
Copy the full SHA 768dd42View commit details -
Configuration menu - View commit details
-
Copy full SHA for 324bf8a - Browse repository at this point
Copy the full SHA 324bf8aView commit details -
I could have sworn I tested the previous approach, but clearly not. :\
Configuration menu - View commit details
-
Copy full SHA for 632bdb2 - Browse repository at this point
Copy the full SHA 632bdb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f3a199 - Browse repository at this point
Copy the full SHA 0f3a199View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26eb461 - Browse repository at this point
Copy the full SHA 26eb461View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.