Open
Conversation
|
We're building your pull request over on Zeet. |
Co-authored-by: naveed-ahmad <701567+naveed-ahmad@users.noreply.github.com>
Co-authored-by: naveed-ahmad <701567+naveed-ahmad@users.noreply.github.com>
Co-authored-by: naveed-ahmad <701567+naveed-ahmad@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Upgrade from Rails 7 to Rails 8 for improved features
Upgrade Rails from 7.0.8.4 to 8.0.3
Oct 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR upgrades the Quranic Universal Library from Rails 7.0.8.4 to Rails 8.0.3, bringing the application up-to-date with the latest Rails features, security updates, and performance improvements.
Changes Made
Core Framework Upgrade
All Rails components have been upgraded to version 8.0.3:
Dependency Updates for Rails 8 Compatibility
Major Version Updates:
~> 2.11→~> 2.13- Fixes compatibility with Rails 8's removal ofactive_support/basic_object>= 12.1.0→>= 15.0.0- Official Rails 8 support (version 16.0.0 installed)~> 2.2.6→~> 3.0- FixesActiveSupport::Deprecation.warnmethod error in Rails 8Minor Updates:
Configuration Changes
Removed:
config/initializers/legacy_connection_handling.rb- This configuration was deprecated in Rails 7.1 and removed in Rails 7.2Updated:
config/initializers/sidekiq.rb:Sidekiq.default_worker_optionstoSidekiq.default_job_options(preparing for Sidekiq 7)Sidekiq::Extensions.enable_delay!Gemfile:
3.3.3→>= 3.2.0(Rails 8 requires Ruby 3.2+, making it more flexible)Testing & Verification
✅ Rails loads successfully without errors
✅ All Rails components verified at version 8.0.3
✅ JavaScript assets build successfully
✅ CSS assets build successfully
✅ No deprecation warnings during application boot
✅ Bundle install completes without conflicts
✅ Cache and ActionMailer functionality verified
Compatibility
All key dependencies remain compatible with Rails 8:
Important Notes
Ruby Version: The application now requires Ruby 3.2.0 or higher (currently tested with Ruby 3.2.3)
Backward Compatibility: The application still uses
config.load_defaults 6.0to maintain backward compatibility. This can be progressively updated to 7.0, 7.1, 7.2, and eventually 8.0 in future PRs after thorough testing.Database: No database schema changes are required for this upgrade.
No Breaking Changes: This is a minimal, surgical upgrade focusing only on framework version changes and compatibility fixes.
Future Considerations
As mentioned in issue #XXX, Rails 8 introduces several built-in features that could replace existing dependencies in future PRs:
These migrations should be done incrementally in separate PRs to ensure stability.
Documentation
Added comprehensive
RAILS_8_UPGRADE.mdwith:Testing Recommendations
Before deploying to production:
Rollback Plan
If issues arise, rollback is straightforward:
bundle installThe changes are minimal and focused, making rollback safe and easy.
Fixes #XXX
Original prompt
Fixes #168
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.