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

Clean up change_queue_size_of matcher, fix Time#to_s deprecation #23

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

magni-
Copy link
Contributor

@magni- magni- commented Aug 15, 2023

The first part is commits I had locally from months ago, I don't remember why I made them in the first place, but they seem to be useful?

The last commit is to fix failures that popped up in Rails 7.0.7 dependabot PRs, due to this deprecation: rails/rails#43772

queue_classic_matchers requires active_record, which requires active_support, so we always have access to Time#to_fs.

magni- added 6 commits August 15, 2023 15:26
- 'actual' makes sense for a standard matcher but less so for a block matcher
- new isn't a great variable name

Also, remove the unneeded '|| 1' clause, since that's already in #amount.
This fixes a Rails 7 deprecation warning. See rails/rails#43772
@magni- magni- force-pushed the pp/fix-have_changed_queue_size-copy branch from 67f5774 to cbf722c Compare August 15, 2023 06:26
@magni-
Copy link
Contributor Author

magni- commented Aug 15, 2023

/reviewme @rainforestapp/devs

@marvin-rfbot marvin-rfbot bot added the review label Aug 15, 2023
Copy link

@pyromaniackeca pyromaniackeca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. 👍

Some questions though:
Why prefer the instance variable over the previous block param?
Do we want to support not change by? Seems like this can lead to bad tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants