Summary
Mongoid 8 changes any_of scoping semantics. The readiness assessment (PR #1075) identified 8 call sites that likely require adjustment and/or test coverage to ensure query behavior stays correct.
Approach
# Find any_of usage
rg "\.any_of\b" core/app core/lib --glob='*.rb'
For each call site:
- Add focused tests that lock in expected query behavior
- Adjust query construction as needed to match the prior Mongoid 7 behavior (or document intentional behavior change)
Acceptance Criteria
Client Impact
None expected (aim is to preserve query results/behavior).
Related
Summary
Mongoid 8 changes
any_ofscoping semantics. The readiness assessment (PR #1075) identified 8 call sites that likely require adjustment and/or test coverage to ensure query behavior stays correct.Approach
For each call site:
Acceptance Criteria
any_ofcall sites have tests covering expected resultsClient Impact
None expected (aim is to preserve query results/behavior).
Related