Skip to content

WA-RAILS7-004: Mongoid 8.x upgrade — implement changes from research doc #690

@kitcommerce

Description

@kitcommerce

Summary

Issue #663 (now done) produced a research document at docs/research/mongoid-upgrade-path.md detailing the Mongoid 7.4 → 8.x upgrade path. This issue implements the actual changes.

Key changes expected (from research):

  1. Widen gemspec: mongoid ~> 7.4mongoid '>= 7.4', '< 10' (or similar)
  2. Fix any deprecated Mongoid 7.x patterns flagged in the research doc
  3. Handle the Mongoid::Errors namespace changes
  4. Update any store_in / collection configuration patterns
  5. Test with both Mongoid 7.4 (Rails 6.1) and Mongoid 8.x (Rails 7)

Objective

Make Workarea compatible with Mongoid 8.x while maintaining Mongoid 7.4 backward compatibility.

Client impact

High — Mongoid 8 has breaking changes. Clients will need to test their decorators and custom models. Provide detailed migration notes.

Acceptance Criteria

  • App boots with Mongoid 8.x
  • Core test suite passes with Mongoid 8.x
  • Backward compatible with Mongoid 7.4
  • Migration notes document all breaking changes

Verification Plan

  1. Run full test suite with Mongoid 7.4 (regression)
  2. Run full test suite with Mongoid 8.x
  3. Document any test failures unique to Mongoid 8.x

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