-
Notifications
You must be signed in to change notification settings - Fork 1
F4KRP-125 Get polyline from stops #83
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
base: main
Are you sure you want to change the base?
Conversation
…/food4kids into eddy/get-polyline-from-stops
PR Review: F4KRP-125 Get polyline from stopsSummaryThis PR adds functionality to fetch route polylines from Google Maps Routes API. The implementation includes a new utility function, database migration for 🔴 Critical Issues1. Migration Chain Conflict (backend/python/migrations/versions/eb010a6ed5ad_added_ends_at_warehouse_to_route_model.py:14)The migration has
2. Unused Import in routes_utils.py (backend/python/app/utilities/routes_utils.py:3)
import googlemaps # <- Remove this line3. Base Model Change Lacks Justification (backend/python/app/models/base.py:32-33)The addition of an empty
|
backend/python/app/models/base.py
Outdated
| def __init_subclass__(cls, **kwargs: Any) -> None: | ||
| super().__init_subclass__(**kwargs) | ||
|
|
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.
For context, these lines were added to fix this MyPy error:
Unexpected keyword argument "table" for "__init_subclass__" of "object"Mypy
Addressed Claude PR comments:
|
…eddy/get-polyline-from-stops
ludavidca
left a comment
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.
Great Job Eddy! This is a great PR. I looked into the mypy issue you were facing earlier and was able to get it resolved (not sure what was causing it in the first place). Great handling of edge cases and feel free to merge it in!
JIRA ticket link
Ticket Name
Implementation description
ends_at_warehouseboolean field to the Routes model as required in the ticketroutes_utils.pyto handle fetching the polyline given a list of stopsroutes_utils.py(see below on how you can test)Steps to test
What should reviewers focus on?
Checklist