-
Notifications
You must be signed in to change notification settings - Fork 114
perf: improve vehicle location performance and API integration #1210
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
- Refactored vehicle location data structures to use SiriVehicleLocationWithRelatedPydanticModel. - Updated API calls in gtfsService and siriService to accept optional parameters. - Removed the VehicleLocation model and adjusted related components to align with the new structure. - Enhanced the useVehicleLocations hook to improve data fetching and state management. - Updated map-related components and storybook data to reflect the new data model. - Adjusted tests to accommodate changes in vehicle location handling.
…and correct ride ID reference in LineProfileRide
…mit reduction - Reduced the LIMIT for vehicle location requests from 10,000 to 1,000. - Enhanced the loadData method to accept an AbortSignal for better request management. - Updated fetchWithQueue to handle the AbortSignal, allowing for cancellation of requests. - Modified the LocationObservable constructor to include signal handling.
NoamGaash
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.
that's a good change - thank you!
I'm just concerned about the potential performance impact when we use objects instead of primitives as react dependencies, but everything else seems amazing 👍
…bers - Changed the vehicle location request parameters from dayjs objects to timestamps (numbers). - Updated related functions and hooks to handle the new timestamp format. - Ensured compatibility with existing components by adjusting how timestamps are processed and displayed.
…nce workflow_run head_sha
NoamGaash
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.
👏
…r handling - Replaced `getRoutesAsync` with `getGTFSRoutes` across various components and hooks for consistency. - Updated route fetching to accept parameters as objects, improving flexibility and readability. - Adjusted related components to handle new parameter structure, ensuring compatibility with existing functionality. - Increased vehicle location request limit from 1,000 to 10,000 for improved data retrieval.
…VehicleLocations hook
|
@NoamGaash I think to improve the map performance on the client side, we need to move the map to WebGL Maps. |
refactor: update vehicle location handling and API integration
SiriVehicleLocationWithRelatedPydanticModel.gtfsServiceandsiriServiceto accept optional parameters.