-
Notifications
You must be signed in to change notification settings - Fork 9
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
fix: remove date filter when fetching campaign_ids #387
Conversation
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.
Love how simple it is - i do want to refactor this into a with
(happy to pair!)
lib/bike_brigade/delivery.ex
Outdated
# sometimes we just want to fetch campaigns with specific ids | ||
# (such as when we need to display campaigns that urgently need a rider) | ||
filter = | ||
# First we check if we are fetching with campaign_ids |
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.
I love this but I feel we can refactor this into a with
Happy to pair on it!
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.
oops meant to not approve it 🐵
aba590d
to
8cdc9b8
Compare
Will test this again just to be sure on sunday :) edit: oh wait... i added a test for this... but maybe I will still test on sunday. you know? Just to be sure? |
Did it work? |
I forgot to test yesterday 🙃 |
a70e6c4
to
6fddf2d
Compare
@teesloane is this good to go? |
sorry, it's been a while and I forgot about this. I need to revisit the code to make sure I feel confident. I'll aim to merge it in on the weekend :) |
fixes #369
Here is a video demonstrating the bug on a sunday, as well as the fix:
CleanShot.2024-06-16.at.09.28.59.mp4
Describe your changes
campaign_ids
, we disable filtering by start/end date.@mveytsman any ideas on how I could write a test for this that simulates that it's a sunday locally and the campaigns in question are on a monday (without changing the system under test?)
Checklist before requesting a review
about this update in the description above.