Summary
WA-VERIFY-091 (PR #1091) found and fixed two real bugs related to any_of semantics changing between Mongoid 7 and Mongoid 8. Document this as a reusable migration pattern for downstream Workarea implementations.
Objective
Create docs/rails7-migration-patterns/mongoid8-any-of-semantics.md to describe the any_of scoping change, detection strategy, and fix pattern — so Workarea plugin authors and downstream apps can apply the same fixes.
Approach
Base the doc on the notes from PR #1091 (notes/WA-VERIFY-091-mongoid8-any-of.md if it exists) and the fix patterns implemented in:
admin/app/view_models/workarea/admin/activity_view_model.rb
core/app/models/workarea/tax/rate.rb
Acceptance Criteria
Verification Plan
- Read the doc for clarity and completeness
- Verify README index updated
Client Impact
None (documentation only).
Summary
WA-VERIFY-091 (PR #1091) found and fixed two real bugs related to
any_ofsemantics changing between Mongoid 7 and Mongoid 8. Document this as a reusable migration pattern for downstream Workarea implementations.Objective
Create
docs/rails7-migration-patterns/mongoid8-any-of-semantics.mdto describe theany_ofscoping change, detection strategy, and fix pattern — so Workarea plugin authors and downstream apps can apply the same fixes.Approach
Base the doc on the notes from PR #1091 (
notes/WA-VERIFY-091-mongoid8-any-of.mdif it exists) and the fix patterns implemented in:admin/app/view_models/workarea/admin/activity_view_model.rbcore/app/models/workarea/tax/rate.rbAcceptance Criteria
docs/rails7-migration-patterns/mongoid8-any-of-semantics.mdany_ofAPI difference (array arg vs splat)rg ".any_of" --glob='*.rb')docs/rails7-migration-patterns/README.mdupdated to include new docVerification Plan
Client Impact
None (documentation only).