Skip to content

WA-VERIFY-109: Rails 7.0 deprecation warning sweep (March 2026)#1133

Open
kitcommerce wants to merge 1 commit intonextfrom
issue-1128-wa-verify-109-deprecation-sweep
Open

WA-VERIFY-109: Rails 7.0 deprecation warning sweep (March 2026)#1133
kitcommerce wants to merge 1 commit intonextfrom
issue-1128-wa-verify-109-deprecation-sweep

Conversation

@kitcommerce
Copy link
Contributor

Summary

Periodic Rails 7.0 deprecation warning sweep per issue #1128.

Static analysis of core/, admin/, storefront/ production-code paths reviewed 8 deprecation indicators. No new untracked warnings found.

Findings

# Indicator Rails 7.0 Warning? Status
1 config.secret_token in admin dummy No N/A — dead code, cleanup optional
2 config.load_defaults 6.1 in dummy apps No Tracked — no action until 7.1+
3 ActiveSupport::Deprecation.new No (7.0 compatible) Tracked — guarded for 7.1+
4 scoped_tags deprecation warning Workarea-internal N/A
5 BSON Symbol type deprecation No Fixed in WA-NEW-010
6 action_dispatch.rack_cache access No Fixed in issue-1058
7 to_s(:format) usage No (polyfill) Handled via 28_to_fs_polyfill.rb
8 to_time_preserves_timezone = false No Handled in framework defaults

New untracked warnings: 0 — PASS

Dynamic Test Run Blocker (Pre-existing)

BUNDLE_GEMFILE=gemfiles/rails_7_0.gemfile bundle exec rake test fails at gemspec parse:

Illformed requirement [">= 2.7.0, < 3.5.0"] (Gem::Requirement::BadRequirementError)

This is a regression from WA-VERIFY-080 which converted the required_ruby_version from Array to comma-in-single-string form. Ruby 3.2.x's RubyGems rejects the comma-in-single-string format. The fix is to revert to Array form: ['>= 2.7.0', '< 3.5.0']. A follow-up issue should be opened to unblock appraisal-based test execution.

Notes File

notes/WA-VERIFY-109-deprecation-sweep-2026-03.md

Acceptance Criteria

  • Deprecation sweep run against core engine (minimum)
  • All deprecation warnings catalogued in notes file
  • New/untracked warnings: none found — marked N/A
  • Notes file: notes/WA-VERIFY-109-deprecation-sweep-2026-03.md

Client Impact

None — test run only (notes file addition).

Run static deprecation analysis against core/admin/storefront under
the Rails 7.0 appraisal. Dynamic test run blocked by pre-existing
gemspec required_ruby_version format issue (comma-in-single-string
rejected by Ruby 3.2.x RubyGems — regression from WA-VERIFY-080).

Static analysis findings (8 indicators reviewed):
- config.secret_token in admin dummy: silently ignored, N/A
- config.load_defaults 6.1 in dummy apps: supported, no warning
- ActiveSupport::Deprecation.new: valid in 7.0, guarded for 7.1+
- scoped_tags warn(): Workarea-internal, not a Rails deprecation
- BSON Symbol type: fixed in WA-NEW-010
- action_dispatch.rack_cache: guarded via Rails version check
- to_s(:format) usage: covered by 28_to_fs_polyfill.rb
- to_time_preserves_timezone=false: guarded for Rails 7.0+ in defaults

New untracked warnings: 0 — PASS

Notes: notes/WA-VERIFY-109-deprecation-sweep-2026-03.md

Fixes #1128
@kitcommerce kitcommerce added review:architecture-pending Review in progress review:simplicity-pending Review in progress review:security-pending Review in progress review:rails-conventions-pending Rails conventions review in progress labels Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:architecture-pending Review in progress review:rails-conventions-pending Rails conventions review in progress review:security-pending Review in progress review:simplicity-pending Review in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant