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-5654: refactor and deprecate Hash#__consolidate__ #5740

Merged
merged 5 commits into from
Nov 7, 2023

Conversation

jamis
Copy link
Contributor

@jamis jamis commented Nov 6, 2023

This PR takes the work by @johnnyshields (here: #5689) and reworks it so that the Hash#__consolidate__ method is deprecated, rather than removed. (In an ideal world, we would indeed just remove the method, but even though the naming of the method strongly suggests it is not part of the public API, the method itself was never explicitly declared to be @api private, and so out of an abundance of caution we are opting to deprecate it until the next major release.)

@johnnyshields
Copy link
Contributor

Awesome, thanks 🎉

Copy link
Contributor

@comandeo comandeo left a comment

Choose a reason for hiding this comment

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

👍

lib/mongoid/atomic_update_preparer.rb Outdated Show resolved Hide resolved
@jamis jamis merged commit 5dff6d6 into mongodb:master Nov 7, 2023
16 of 17 checks passed
@jamis jamis deleted the 5654-hash-consolidate branch November 7, 2023 17:06
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.

3 participants