Skip to content

WA-VERIFY-107: Audit load_defaults behavioral flags coverage (Rails 7.0/7.1) #1126

@kitcommerce

Description

@kitcommerce

Summary

Verify that all config.load_defaults behavioral flags introduced in Rails 7.0 and 7.1 have been accounted for in Workarea's test suite and migration notes.

Objective

The load-defaults-behavioral-flags pattern doc documents known risky flag behaviors (BigDecimal serialization, QueryCache middleware position). This task audits the actual coverage — are the risky behaviors tested? Are there gaps?

Approach

# Check current load_defaults setting across engine config files
grep -r 'load_defaults' workarea-*/config/ --include='*.rb'

# Check for BigDecimal/Money cache round-trip tests
grep -rn 'BigDecimal\|to_money\|Money.new' workarea-*/test/ --include='*.rb' | grep -i cache

For each behavioral flag in the pattern doc:

  • Confirm it's been addressed (test exists, or documented as N/A for Workarea)
  • Note any gaps where behavior change could affect downstream apps silently

Acceptance Criteria

  • Current load_defaults version confirmed in all engine config files
  • BigDecimal/cache serialization behavior verified or documented N/A
  • QueryCache middleware position confirmed correct
  • Any untested behavioral flags flagged as follow-up issues or documented N/A
  • Brief notes file created: notes/WA-VERIFY-107-load-defaults-audit.md

Verification Plan

Read the notes file output. Each behavioral flag should have a clear PASS/N/A/NEEDS-FOLLOW-UP status.

Client Impact

None (verification/documentation only).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions