fix : added order_id filter to driver telemetry MongoDB query - #792
Conversation
|
🎉 Thank you for your contribution! Your pull request has been received and will be reviewed shortly. If you enjoy the project, please consider giving the repository a ⭐. You can also follow my GitHub profile to stay updated on future open-source projects. Thanks for being part of the community! 🚀 |
|
![Review Change Stack [link removed for security]]([link removed for security]) No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThe MongoDB telemetry query inside the ChangesDriver Telemetry Query Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment
|
2edb62c
into
KanishJebaMathewM:main
|
🎉 Thank you for your contribution! Your pull request has been merged successfully. We appreciate your work and look forward to your future contributions. 🚀 |
Closes #787.
Summary of What Has Been Done:
Added an order_id filter to the MongoDB telemetry query in GET /orders/:id/driver-location. Previously the query returned telemetry for the driver regardless of which order it belonged to, causing stale location data to be shown when a driver has multiple active orders.
Changes Made:
Impact it Made:
All 239 unit tests pass. The driver location endpoint now correctly scopes telemetry to the specific order being tracked.
Summary by CodeRabbit