Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Upgrade to Rails 6 #725

Merged
merged 29 commits into from
Oct 22, 2019
Merged

Upgrade to Rails 6 #725

merged 29 commits into from
Oct 22, 2019

Conversation

iHiD
Copy link
Member

@iHiD iHiD commented Sep 21, 2019

This started as follows:

  • Bumped Gem to 6 and ran bundle update
  • Ran rails app:update and merged updates to the config files
  • Fixed a deprecation warning about case_sensitivity in validator.
  • Fixed an issue explained here

Then @kntsoriano added commits explained in the messages.

@kntsoriano kntsoriano marked this pull request as ready for review October 16, 2019 04:56
@kntsoriano
Copy link
Contributor

@iHiD Ready for review.

@kntsoriano
Copy link
Contributor

kntsoriano commented Oct 16, 2019

I've updated the ruby version for compatibility in Rails 6. We'll need to remember to update our chef scripts when we deploy this.

@iHiD
Copy link
Member Author

iHiD commented Oct 16, 2019

Just working through the commits.

On the commit "Rename classes for autoloading compliance", rather than renaming things, could you add the HTML, SQL, and anything else to config/initializers/inflections.rb please?

@kntsoriano
Copy link
Contributor

kntsoriano commented Oct 21, 2019

Before deploying:

Deployment checklist:

Setup:

  • CDN setup to serve /packs

@iHiD
Copy link
Member Author

iHiD commented Oct 21, 2019

@kntsoriano Can you check my last commit pls. Travis was failing without the mainfest change after a gem update. I removed the JS line and it worked (I presume that folder just isn't in Travis) and also checked Kaido and it's the same. So I think we're good but would appreciate a second pair of eyeballs.

@kntsoriano
Copy link
Contributor

@iHiD Good catch. Rails 6 doesn't have that line in there now.

kntsoriano and others added 4 commits October 22, 2019 13:37
We do not want to render JS before we render our HTML. Rendering JS
blocks browsers from parsing any more of the DOM until the resource
is loaded and parsed. We should probably consider using defer tags
but for now I'd rather keep with the standards we have.

See this article for more info:
https://flaviocopes.com/javascript-async-defer/
Font awesome CDN is deprecated and are replaced by kits. This uses
our own kit instead, which can be managed through the FA UI.
As part of this I've turned off support for FA-4 in the kit. I've
tried to check every icon and look for renames where necessary. I
might have missed some but I think I've done a good enough job.
@iHiD iHiD merged commit 4b939dc into master Oct 22, 2019
@iHiD iHiD mentioned this pull request Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants