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

MONGOID-5669 [Monkey Patch Removal] Remove Array#multi_arged? #5702

Merged
merged 6 commits into from
Nov 6, 2023

Conversation

johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Sep 2, 2023

Fixes MONGOID-5669

This PR removes kernel monkey patch Array#multi_arged? and moves its logic to Criteria::Findable.multiple_args?

It also adds a test case which demonstrates the logic works correctly for Set (the old monkey patch code did not monkey patch Set, so it didn't work.)

As per this comment, I am intentionally keeping the legacy tests for the method which is now marked private.

  • TODO: Move private method tests to cover a public method behavior.

Overall progress is tracked here: http://tinyurl.com/mongoid-monkey. Refer to MONGOID-5660 for context.

@johnnyshields johnnyshields changed the title Move Array#multi_arged? to Criteria::Findable.multiple_args? Remove Array#multi_arged? monkey patch (move to Criteria::Findable.multiple_args?) Sep 3, 2023
@johnnyshields johnnyshields changed the title Remove Array#multi_arged? monkey patch (move to Criteria::Findable.multiple_args?) MONGOID-5669 [Monkey Patch Removal] Remove Array#multi_arged? Sep 3, 2023
@johnnyshields johnnyshields marked this pull request as draft September 5, 2023 15:32
@jamis jamis marked this pull request as ready for review November 6, 2023 22:54
@jamis jamis merged commit 20c6563 into mongodb:master Nov 6, 2023
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants