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.
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.
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