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

Save unsaved changes before locking #18716

Merged
merged 1 commit into from
May 2, 2019

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented May 1, 2019

Fixes a deprecation in rails 5.1:

DEPRECATION WARNING: Locking a record with unpersisted changes is
deprecated and will raise an exception in Rails 5.2. Use save to
persist the changes, or reload to discard them explicitly. (called
from update_options at
../app/models/service_template_transformation_plan_task.rb:190)

Seen in #18076

Fixes a deprecation in rails 5.1:

DEPRECATION WARNING: Locking a record with unpersisted changes is
deprecated and will raise an exception in Rails 5.2. Use `save` to
persist the changes, or `reload` to discard them explicitly. (called
from update_options at
../app/models/service_template_transformation_plan_task.rb:190)
@jrafanie jrafanie requested a review from jameswnl May 1, 2019 22:16
@miq-bot
Copy link
Member

miq-bot commented May 1, 2019

Checked commit jrafanie@ae30d11 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

Copy link
Contributor

@jameswnl jameswnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks LJ

@kbrock kbrock merged commit 08891f8 into ManageIQ:master May 2, 2019
@kbrock kbrock self-assigned this May 2, 2019
@kbrock kbrock added this to the Sprint 111 Ending May 13, 2019 milestone May 2, 2019
@jrafanie jrafanie deleted the save_changes_before_locking branch October 4, 2019 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants