Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Upgrade Rails 7.1 -> 7.2

Đang mở
#883 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rails, ruby
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu bằng cách xem xét phạm vi dependency của Rails và hai issue chặn, #881 và #882. Chạy bin/rails app:update, giữ config.load_defaults ở 7.1, giữ các default 7.2 được tạo ở trạng thái comment và loại bỏ config/initializers/new_framework_defaults_7_1.rb. Được xem là hoàn tất khi toàn bộ suite chạy thành công với deprecation được raise và staging hoàn thành soak.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type:infrastructure

Why

First framework step. With the prep and the two blocker gems done, this should be close to mechanical. Verified to resolve cleanly.

Scope

  • gem "rails", "~> 7.2.0"
  • Keep config.load_defaults at 7.1. Run bin/rails app:update, take the generated new_framework_defaults_7_2.rb with every option still commented. Enabling them is a separate issue — upgrading the framework and changing its behaviour are two different changes, and some defaults alter serialization formats that must not flip in the same deploy.
  • config/initializers/new_framework_defaults_7_1.rb can be retired: it is already fully worked through and load_defaults 7.1 is set, so it is bookkeeping.
  • Rails.application.secrets is removed in 7.2 — already handled by the prep issue.

Note Rails 7.2 requires Ruby >= 3.1, so this lands fine on the current Ruby 3.2.3.

Acceptance criteria

  • Full suite green with deprecations raising
  • load_defaults still 7.1
  • Staging soak before the defaults are flipped

Blocked by

#881 (Mongoid 9) and #882 (Globalize 7) — both hard resolution blockers. Blocks #884 and #885.


Part of the Ruby + Rails upgrade sequence. Ruby 3.2 reached end of life on 2026-04-01 and the backend is on Rails 7.1; the goal is Ruby 3.4.10 and Rails 8.1, in steps that each keep CI green and are independently deployable.

Ngôn ngữ chính
Ruby
Star
50
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của rubyforgood/Flaredown

Tất cả issue của rubyforgood/Flaredown

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.