-
Notifications
You must be signed in to change notification settings - Fork 70
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
Cannot create job definition #125
Comments
Hmm, I couldn't reproduce your situation.
|
I got it. This behavior depends on |
Ah, I see. But it may effect other components unintentionally. I try with rails 4 compatibility for the time being. |
I had a similar problem. |
@yukihirop What exactly was the "light monkey patch"? Can you direct me to the specific commit where this was fixed? EDIT: I managed to find the necessary edits. After adding these it seems to work. At least I am able to create jobs and they run successfully. For modifications, add both these two scripts: |
Ruby: 2.5.3
Rails: 5.1.6
Kuroko2: 0.5.0
Creating a new job definition responds "Revisions is invalid". It looks association between job_definition and revision is not set correctly according to simulating controller action with rails console. In spite of controllers and features specs success.
I think one of below ideas may help (sorry for not PR).
https://github.com/cookpad/kuroko2/blob/master/app/models/kuroko2/job_definition.rb#L33
https://github.com/cookpad/kuroko2/blob/master/app/models/kuroko2/job_definition.rb#L145
Latter one have less impact on app. How do you think?
The text was updated successfully, but these errors were encountered: