Summary
WA-VERIFY-083 (PR #1075) identified Mongoid::QueryCache as a HIGH severity breaking change in the Mongoid 8 upgrade path. This issue implements the migration.
Affected Call Sites (from #1069 assessment)
grep -r 'Mongoid::QueryCache' app/ lib/ config/ --include='*.rb'
Known affected files:
core/app/middleware/workarea/admin_search_query_wrapper.rb
core/app/middleware/workarea/releasable.rb
- Rack middleware initializer
Approach
- Replace
Mongoid::QueryCache with Mongo::QueryCache at all call sites
- Verify
Mongo::QueryCache is available in the mongo gem version we use
- Add a test to confirm cache works correctly after change
- Run
bundle exec rake test to confirm no regressions
Acceptance Criteria
Client Impact
None (internal query optimization layer; behavior unchanged).
Related
Summary
WA-VERIFY-083 (PR #1075) identified
Mongoid::QueryCacheas a HIGH severity breaking change in the Mongoid 8 upgrade path. This issue implements the migration.Affected Call Sites (from #1069 assessment)
Known affected files:
core/app/middleware/workarea/admin_search_query_wrapper.rbcore/app/middleware/workarea/releasable.rbApproach
Mongoid::QueryCachewithMongo::QueryCacheat all call sitesMongo::QueryCacheis available in the mongo gem version we usebundle exec rake testto confirm no regressionsAcceptance Criteria
Mongoid::QueryCachereferences remain in production codeMongo::QueryCacheused consistentlyClient Impact
None (internal query optimization layer; behavior unchanged).
Related