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

Fix PersistenceStrategy to wrap ModuleResult creation in transaction #218

Merged
merged 2 commits into from
Jul 19, 2016

Conversation

danielkza
Copy link
Contributor

We don't want possible inconsistencies by allowing the KalibroModule to
become visible without it's corresponding ModuleResult.

We don't want possible inconsistencies by allowing the KalibroModule to
become visible without it's corresponding ModuleResult.
@danielkza
Copy link
Contributor Author

danielkza commented Jul 19, 2016

Split off from #215.

if !module_result.nil?
module_result
else
kalibro_module.build_module_result(processing: @processing)
Copy link
Member

Choose a reason for hiding this comment

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

Nice usage of ActiveRecord's builtin method.

@rafamanzo
Copy link
Member

Could you add a CHANGELOG entry for this fix?

@rafamanzo rafamanzo merged commit ea7b847 into master Jul 19, 2016
@rafamanzo rafamanzo deleted the persistence_strategy_module_result_transaction branch July 19, 2016 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants