-
Notifications
You must be signed in to change notification settings - Fork 10
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
[DISCO-3294] chore: update more cities for weather #813
Conversation
@@ -32,7 +32,7 @@ | |||
"77", | |||
), | |||
( | |||
Location(country="AR", regions=["B", "5"], city="La Plata"), | |||
Location(country="AA", regions=["B", "5"], city="La Plata"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this to a fake country code, since as we add more countries to our lists, this test will fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a comment for future reference.
@@ -89,6 +96,11 @@ | |||
("US", "UT", "Hill Air Force Base"): 0, | |||
} | |||
|
|||
KNOWN_SPECIFIC_REGION_COUNTRIES: frozenset = frozenset( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're getting constants defined here, let's add some descriptions to them for better readability.
@@ -32,7 +32,7 @@ | |||
"77", | |||
), | |||
( | |||
Location(country="AR", regions=["B", "5"], city="La Plata"), | |||
Location(country="AA", regions=["B", "5"], city="La Plata"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a comment for future reference.
40cff62
to
9e70509
Compare
References
JIRA: DISCO-3294
Description
Because we're cycling through city names, normalized city name, city name without locality suffix times # of regions for that city, we're making a lot of requests we don't need to. I've split
REGION_MAPPING_EXCLUSIONS
into two sets instead and added the countries that we know. In addition added the cities in those countries that require the city to be None.PR Review Checklist
Put an
x
in the boxes that apply[DISCO-####]
, and has the same title (if applicable)[load test: (abort|skip|warn)]
keywords are applied to the last commit message (if applicable)