Skip to content

WA-VERIFY-091: Audit Mongoid 8 any_of scoping semantics changes (8 call sites) #1083

@kitcommerce

Description

@kitcommerce

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

  • All any_of call sites have tests covering expected results
  • Any necessary query changes implemented with minimal surface-area impact
  • Tests pass under default appraisal
  • Notes file documents any behavior differences discovered during verification

Client Impact

None expected (aim is to preserve query results/behavior).

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions