Skip to content
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

Merged
merged 5 commits into from
Jul 28, 2024

Conversation

teesloane
Copy link
Contributor

@teesloane teesloane commented Jun 12, 2024

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

  • when list_campaigns is called with an option of 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

  • I have performed a self-review of my code
  • If it is a core feature, I have added tests.
  • Are there other PRs or Issues that I should link to here?
  • Will this be part of a product update? If yes, please write one phrase
    about this update in the description above.

@teesloane
Copy link
Contributor Author

Also, I added some needed padding on desktop.

image

(1 is from before, 2 is after)

@teesloane teesloane marked this pull request as ready for review June 16, 2024 13:34
@teesloane teesloane requested a review from mveytsman June 16, 2024 13:34
Copy link
Member

@mveytsman mveytsman left a 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!)

# 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
Copy link
Member

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!

Copy link
Member

@mveytsman mveytsman left a 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 🐵

@teesloane
Copy link
Contributor Author

teesloane commented Jun 21, 2024

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?

@mveytsman
Copy link
Member

Did it work?

@teesloane
Copy link
Contributor Author

Did it work?

I forgot to test yesterday 🙃

@mveytsman
Copy link
Member

@teesloane is this good to go?

@teesloane
Copy link
Contributor Author

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 :)

@teesloane teesloane merged commit 4878922 into main Jul 28, 2024
1 check passed
@teesloane teesloane deleted the ty/369-48-hour-cta branch July 28, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Riders Needed! section does not link to campaign sign-up across week boundaries
2 participants