-
Notifications
You must be signed in to change notification settings - Fork 1
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.0.4.4
#249
Conversation
Latest rails 6 releases
Avoid using OpenStruct; use Struct, Hash, a class or test doubles instead.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
gumboot/strap.rb:28:in `ensure_database': Only supports mysql2 adapter
Implementing the fix causes errors, instead, suppressing the check
This comment was marked as outdated.
This comment was marked as outdated.
@@ -2,7 +2,7 @@ | |||
|
|||
require 'mail' | |||
require 'aws-sdk-sqs' | |||
|
|||
# rubocop:disable Style/OpenStructUse |
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.
I got rid of OpenStruct
in rapid-idp-manager.
Please commit here: https://github.com/ausaccessfed/rapid-idp-manager/pull/1135/commits/68ac2fc6536e5d2a43e948b00232c63e5dd08d6d
for details. It's quite a pain to fix it and update all the tests. Just an idea for you. Not sure if it is worth the effort here.
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.
Thanks! I am unsure if it is worth the effort here, since this service is planned to die according to: https://github.com/ausaccessfed/stockpile/issues/101
Should I go down this rabbit hole @rianniello ? Happy to if required
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.
IMO not worthwhile
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.
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.
(not worth the effort, though good to get this off old rails in meantime 👍)
This comment was marked as outdated.
This comment was marked as outdated.
Might be easier just go to Rails 6.0.x, reporting service should be well and truly dead by the time that hits EOL |
I agree, will fix up this PR to only go to |
As suggested in: #249 (comment)
Manually checked the changes and applied relevant ones
This comment was marked as resolved.
This comment was marked as resolved.
Used to fix: DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0. Please use dynamic attributes instead by wrapping the attribute value in a block:
Been digging at that for a while, maybe the caching has changed? Would you mind taking a look for me when you have a moment @matthew-puku ? Bit lost |
@waldofouche Tests pass now. Rubocop is very unhappy, though. I would probably just remove it now that you've gotten what you wanted from it. |
Thanks for your help @matthew-puku , I agree, I'll remove rubocop now |
No longer required
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 alright to me. reporting-service
isn't super important so I'm pretty happy to just send this to test and see what it does. Less need to comb over the diff as rigorously as usual 🤷
Agree @matthew-puku , if the build fails we can just revert and the errors will help us troubleshoot |
Having no issues using reporting service in test currently, I think everything is all good here @matthew-puku |
👍 |
* aaf-develop: Add platform `x86_64-linux` (ausaccessfed#252) Upgrade to rails `6.0.4.4` (ausaccessfed#249) Resolved-Conflicts: * config/environments/production.rb - adjacent changes: config.log_level changed to :info locally in 5e1e309
* code-develop: Version: 1.4.5-tuakiri2 Add platform `x86_64-linux` (ausaccessfed#252) Upgrade to rails `6.0.4.4` (ausaccessfed#249)
Hi, I've just rolled it out into production - thanks for the work. Note that this also upgraded the I have now solved it by just installing nodejs and that works, so not an issue anymore. But as Cheers, |
* aaf-develop: Bump nokogiri from 1.13.4 to 1.13.6 (ausaccessfed#259) Bump rack from 2.2.3 to 2.2.3.1 (ausaccessfed#260) fix: mysqld_safe: command not found (ausaccessfed#258) Bump nokogiri from 1.13.3 to 1.13.4 (ausaccessfed#256) Bump puma from 5.6.2 to 5.6.4 (ausaccessfed#255) Gemfile updates (ausaccessfed#254) Add platform `x86_64-linux` (ausaccessfed#252) Upgrade to rails `6.0.4.4` (ausaccessfed#249) Bump nokogiri from 1.12.5 to 1.13.3 Bump puma from 5.5.2 to 5.6.2 Update puma to 5.5.2
Latest rails 6 releases
Tests passed:
Guard boots without issues:
Part of https://github.com/ausaccessfed/stockpile/issues/101