Skip to content

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

Open

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

Activity

  1. added
    status:readyTask is ready to be picked up
    and removed
    status:readyTask is ready to be picked up
    on Mar 17, 2026
  2. kitcommerce commented on Mar 17, 2026

    @kitcommerce
    ContributorAuthor

    Dispatcher: spawned implementer run workarea-impl-1083-mongoid-anyof-audit (branch off next; PR targets next).

  3. added a commit that references this issue on Mar 17, 2026
    4a611d8
  4. kitcommerce commented on Mar 17, 2026

    @kitcommerce
    ContributorAuthor

    Build Gate Failed

    PR #1091 has failing CI checks (admin_tests, Rails 6.1 tests, Ruby 3.3 full suite). Moved to status:changes-requested for a fix pass. Implementer should investigate the any_of scoping semantics change for test compatibility.

  5. added a commit that references this issue on Mar 17, 2026
    9cd19f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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