Explore how to maintain database transactions in nested services
darth-dodo opened this issue · 1 comments
darth-dodo commented
Description
- If the commit parser service raises rollback, the parent services do not rollback the
Event
creation as the errors weren't bubbling up to the parent service level - Currently I have implement
raise_rollback_unless_valid
but this does not work effectively with nested services - This is required if we want to parse the entire response and create a list of all the errors before rendering to the client
- Rethink the usage of
raise_rollback_unless_valid
and
return false unless valid?
on the service (especially nested services) level