-
Notifications
You must be signed in to change notification settings - Fork 1.4k
MONGOID-5144 Add a deprecation warning when using the legacy query cache #5042
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
Merged
p-mongo
merged 5 commits into
mongodb:master
from
johnnyshields:query-cache-dep-warning
Aug 26, 2021
Merged
MONGOID-5144 Add a deprecation warning when using the legacy query cache #5042
p-mongo
merged 5 commits into
mongodb:master
from
johnnyshields:query-cache-dep-warning
Aug 26, 2021
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p-mongo
reviewed
Aug 25, 2021
spec/mongoid/query_cache_spec.rb
Outdated
@@ -29,6 +29,8 @@ | |||
min_driver_version '2.14' | |||
|
|||
it 'does not log a deprecation warning' do | |||
Mongoid::QueryCache.remove_instance_variable('@legacy_query_cache_warned') |
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.
This happens to fail when the instance variable does not exist.
70bdd8c
to
92a39f5
Compare
p-mongo
approved these changes
Aug 25, 2021
comandeo
approved these changes
Aug 26, 2021
p-mongo
pushed a commit
that referenced
this pull request
Aug 27, 2021
…che (#5042) * MONGOID-5144 Add a deprecation warning when using the legacy query cache. * fix the feature/test with old drivers * Update query_cache_spec.rb * account for instance variable removal failing better * Minor improvement in a spec Co-authored-by: shields <shields@tablecheck.com> Co-authored-by: Oleg Pudeyev <code@olegp.name> Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
p-mongo
pushed a commit
that referenced
this pull request
Aug 27, 2021
…che (#5042) * MONGOID-5144 Add a deprecation warning when using the legacy query cache. * fix the feature/test with old drivers * Update query_cache_spec.rb * account for instance variable removal failing better * Minor improvement in a spec Co-authored-by: shields <shields@tablecheck.com> Co-authored-by: Oleg Pudeyev <code@olegp.name> Co-authored-by: Dmitry Rybakov <dmitry.rybakov@mongodb.com>
p-mongo
pushed a commit
to johnnyshields/mongoid
that referenced
this pull request
Sep 10, 2021
* upstream/master: (27 commits) Create security policy following github's template (mongodb#5070) MONGOID-5131 Use proper mdb <-> ubuntu versions (mongodb#5067) MONGOID-5131: Set up build pipeline for outside contributors (mongodb#5043) MONGOID-5165 Fix documentation link (mongodb#5065) Fix indentation MONGOID-5029 #empty method should use an #exists? rather than a #count query (mongodb#5029) MONGOID-5177 Fix flaky contextual spec (mongodb#5064) MONGOID-5170 - Fix more typos mostly in code docs and code comments (mongodb#5056) MONGOID-5105 Allow block form in Mongoid::Association::EmbedsMany::Proxy#count (mongodb#5060) MONGOID-5162 Add a release note for the planned changes in ObjectId#as_json (mongodb#5059) MONGOID-5171 - Make the minimum Ruby version 2.5 (mongodb#5058) MONGOID-5130 Remove conn count from client spec (mongodb#5055) Add driver 2.15 to compat table Fix MONGOID-5136 .touch with custom field is broken for embedded documents (mongodb#5039) MONGOID-5144 Add a deprecation warning when using the legacy query cache (mongodb#5042) MONGOID-???? Replace field[0] == ?$ with field.start_with?('$') -- easier to read and 30%+ faster (mongodb#5052) MONGOID-???? - Remove BSON::ObjectId#as_json as we will defer to the bson-ruby gem implementation. (mongodb#5057) MONGOID-4737 Deprecate the :compact option on Document#as_json (mongodb#5040) MONGOID-5143 [Code Comments Only] Remove magic comment "# encoding: utf-8" (mongodb#5041) Remove all @SInCE comments. These are generally not useful as: (mongodb#5037) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes MONGOID-5144