-
Notifications
You must be signed in to change notification settings - Fork 17
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
Upgrade to rails 6 #1811
Upgrade to rails 6 #1811
Conversation
b4f1a0b
to
4c008f1
Compare
4c008f1
to
bbad063
Compare
bbad063
to
5a322e1
Compare
5a322e1
to
3548916
Compare
8014b56
to
1455163
Compare
6d9825c
to
b8a3334
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Just needs to resolve the conflicts and
When running tests I was getting this error: `ActionView::Template::Error: undefined method `bubbles?' for true:Sass::Script::Tree::Literal` The solution is suggested here sds/scss-lint#278, specifically "You should only require scss-lint explicitly in your code so that the monkey patching code doesn't get loaded automatically. You can then explicitly load it for the cases where you need it" Putting it first in the rake tasks seems to stop it erroring as well.
Pin rails to specific version and make it stand out, see alphagov/service-manual-frontend@27390cd for reasoning.
b8a3334
to
f1868cb
Compare
All the changes that come with Rails 6, mainly comments and minor config changes.
Custom alias domains such as http://government-frontend.dev.gov.uk are not working on any apps running Rails 6, due to the addition of "Host Authorisation" middleware so we need to explicitly add the local domain to their `config.hosts`. Similar PR: alphagov/info-frontend#644 Issue on govuk-docker: alphagov/support#687
According to testdouble/jasmine-rails#238 the jasmine-rails gem is no longer actively maintained and is reliant on the phantomjs headless browser which has suspended development (ariya/phantomjs#15344). Therefore it makes more sense to switch to the jasmine gem and use the jasmine_selenium_runner gem to switch to headless Chrome for testing.
Using a sass css compressor causes a scss file to be processed twice (once to build, once to compress) which breaks the usage of "unquote" to use CSS that has same function names as SCSS such as max.
To work around the issue with sassc and unquote the accepted solution has been to set css_compressor to nil and then use sass_style to achieve a similar effect. However the gem forces the css_compressor back to :sass thus breaking again on asset compilation. Removing the gem fixes this and the gem itself does not seem to be necessary since it was introduced to fix issues in Firefox 52 and the latest Firefox version is 78
f1868cb
to
2a1df0b
Compare
|
Upgrade to Rails 6, with minor config changes that come with it. Have also removed specified gem versions in Gemfile as it doesn't seem to cause any issues.
Merged changes are automatically deployed to staging and production.
Make sure you follow the guidance for deployments before you merge.
Check your branch is being deployed in the Release app, after merging.