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 #13

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

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
@jameswnl
Copy link

LGTM and I've also tested it against my setup and the problem goes away.

@chrisarcand chrisarcand merged commit ec0418d into ManageIQ:master Dec 1, 2016
@durandom durandom deleted the refactor/ensure_manager branch December 2, 2016 07:14
@simaishi
Copy link
Contributor

simaishi commented Jan 9, 2017

Euwe backport (to manageiq repo) details:

$ git log -1
commit d52acf25e4950b9122e0659544534bfa02a882b9
Author: Chris Arcand <[email protected]>
Date:   Thu Dec 1 11:43:04 2016 -0600

    Merge pull request #13 from durandom/refactor/ensure_manager
    
    Add managers in before_create callback instead of before_validation
    (cherry picked from commit ec0418d46a2dbdf466f968476c4aaec3f98cbdf6)
    
    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.

4 participants