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

Add managers in before_create callback instead of before_validation #87

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

durandom
Copy link
Member

otherwise it could happen that one process deletes the manager
and another one saves it and the saving one would add back
a deleted manager.

https://bugzilla.redhat.com/show_bug.cgi?id=1389459
https://bugzilla.redhat.com/show_bug.cgi?id=1393675

ManageIQ/manageiq#12878
ManageIQ/manageiq-providers-azure#13

otherwise it could happen that one process deletes the manager
and another one saves it and the saving one would add back
a deleted manager.

https://bugzilla.redhat.com/show_bug.cgi?id=1389459
https://bugzilla.redhat.com/show_bug.cgi?id=1393675
@chrisarcand chrisarcand merged commit 950a3d1 into ManageIQ:master Dec 1, 2016
@durandom durandom deleted the refactor/ensure_manager branch December 8, 2016 22:19
simaishi pushed a commit that referenced this pull request Jan 9, 2017
@simaishi
Copy link
Contributor

simaishi commented Jan 9, 2017

Euwe backport details:

$ git log -1
commit 192752692816722c4b14a7c7a547551cf5930dcb
Author: Chris Arcand <[email protected]>
Date:   Thu Dec 1 10:43:16 2016 -0600

    Merge pull request #87 from durandom/refactor/ensure_manager
    
    Add managers in before_create callback instead of before_validation
    (cherry picked from commit 950a3d1cf1bcf882fd1daa7a0f0c686b9477d2ea)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1411517
    https://bugzilla.redhat.com/show_bug.cgi?id=1403011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants