-
This is a list of the issues I faced updating my app from lucky release 0.24.0 to master on lucky and avram. Upgrade notes:
Annoyances:
Resolved:
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Update for ResetPasswordRequest, SignInUser is similar: # Run validations and yield the operation and the user if valid
- def submit
+ def run
user = user_from_email
validate(user)
if valid?
- yield self, user
+ user
else
- yield self, nil
+ nil
end
end |
Beta Was this translation helpful? Give feedback.
-
Update for PasswordResetRequests::Create, SignIns::Create is similar: route do
- RequestPasswordReset.new(params).submit do |operation, user|
+ RequestPasswordReset.run(params) do |operation, user|
if user |
Beta Was this translation helpful? Give feedback.
-
Generated code update for log "Executing Query" annoyance: Update config/log.cr: # Use a pretty formatter printing to STDOUT in development
backend = Log::IOBackend.new
backend.formatter = Lucky::PrettyLogFormatter.proc
Log.dexter.configure(:debug, backend)
+ DB::Log.level = :info
end |
Beta Was this translation helpful? Give feedback.
-
I've updated LuckyDiff as well: |
Beta Was this translation helpful? Give feedback.
-
Thanks for putting this together @robacarp! It's all now ready for the UPGRADE_NOTES https://github.com/luckyframework/lucky/pull/1365/files Let me know if you find anything missing on there. That will be merged in maybe tomorrow. |
Beta Was this translation helpful? Give feedback.
Thanks for putting this together @robacarp! It's all now ready for the UPGRADE_NOTES https://github.com/luckyframework/lucky/pull/1365/files Let me know if you find anything missing on there. That will be merged in maybe tomorrow.