-
Notifications
You must be signed in to change notification settings - Fork 9
Vn/weekday riders search #457
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
through . Returns riders who had any delivery on that weekday within the last 7 days. - Add @weekdays map for ISO day numbers (1=Monday, 7=Sunday) - Implement weekday filter using exists subquery on campaigns
Typing active:mon now suggests active:monday alongside active:month. - Add monday-sunday to @actives in Suggestions module - Add unit tests for Suggestions module (9 tests)
|
I think this is the correct start but I think scoping to the past week isn't quite right. Like we're looking for people who generally ride on mondays. I would default to a longer window but have it pair with the |
|
Hi @mveytsman , Below are the possible results: Given a rider who delivered on a Monday 3 weeks ago Given a rider who delivered on a Monday 3 weeks ago Please let me know if this approach makes sense and if there are any additional use cases to consider. |
|
We talked about this IRL but for posterity: I think this is almost right but we need some sort of threshhold. If I'm searching within year I want people who delivery on Mondays and I think just one monday is too low. There's some number where deliveries greater than that that tells us that this person is prone to delivering on mondays. Not sure how to calculate it though |
…he default active rider weekday search by year ago
|
I will explore couple of options which makes sense and share the PR for your review. Thank you |
Describe your changes
Dispatchers can now search for riders based on which day of the week they made deliveries.
This helps with scheduling and identifying rider availability patterns.
active:mondayfinds riders who delivered yesterday (Monday)demo_454_rider_search.mov
Checklist before requesting a review
Allow for searching riders based on activity in days of the week #454
about this update in the description above.