Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Rails 6 (WIP) #1306

Closed
wants to merge 1 commit into from

Conversation

ozydingo
Copy link
Contributor

Checklist:

  • I have performed a self-review of my own code,
  • I have commented my code, particularly in hard-to-understand areas,
  • I have made corresponding changes to the documentation,
  • I have added tests that prove my fix is effective or that my feature works,
  • New and existing unit tests pass locally with my changes ("bundle exec rake"),
  • Title include "WIP" if work is in progress.

Resolves #1181

Description

Start with rails app:upgrade. However, this inflicts many changes, most of which are unnecessary or clobber needed app functionality or setup. So I went through all changes and discarded such changes, confirming the app still runs and tests pass.

I reviewed https://edgeguides.rubyonrails.org/6_0_release_notes.html for breaking changes and search the app for any occurrences; there were none.

I also discarded most formatting / text / commenting changes to keep the PR easier on the eyes.

For a review of the changes that are caused by rails app:upgrade, reference #1204

Labelled WIP because I think it would be wise to manually test various app setups and features in addition to relying on rspec tests, and I am not fluent enough in this app to do so with confidence.

I attempted to remove action_text, which is now included in Rails, but ran into issues with the action_text file not being included, so punted on that for now.

Type of change

  • Software upgrade

How Has This Been Tested?

Tests pass. Poked around app. Should poke around more.

…s task that either clobbered app-specific setup or were unecessary comments or formatting changes.
@auto-comment
Copy link

auto-comment bot commented Oct 18, 2019


Thank you for your pull request!
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
Best,
@diaper-team

@ozydingo
Copy link
Contributor Author

Closing -- multiple tests now failing (108 failures) after actually upgrading gems (not just running app:update.

@ozydingo ozydingo closed this Oct 19, 2019
@ozydingo
Copy link
Contributor Author

Repoened: most failures were due to an ActionView change that break rspec <4. Upgraded to rspec4.0.0.beta3 to fix; this decision should be weighted against the need to upgrade to Rails 6. Comment from rspec folks is that 4 will be released soon. See rspec/rspec-rails#2086

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Rails 6
1 participant