You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're going to use a nested transaction inside the entity worker so that we can rely on the database constraints to flag any errors about entity creation. The "current" (before this issue gets fixed) version of the entity worker does some weird stuff like has a complicated pre-check query to test if the entity can successfully be inserted. We'll be able to do away with that extra query with this new approach.
We also need to clearly handle each of the possible submission processing outcomes:
it could return null (the submission doesn't create an entity)
it could successfully create an entity and return it
there could be a validation error
there could be a database constraint error
a. there could be an error that comes from attempting to reprocess a submission that has already been processed, and we could do this with a db constraint or with some other pre-check
We're going to use a nested transaction inside the entity worker so that we can rely on the database constraints to flag any errors about entity creation. The "current" (before this issue gets fixed) version of the entity worker does some weird stuff like has a complicated pre-check query to test if the entity can successfully be inserted. We'll be able to do away with that extra query with this new approach.
We also need to clearly handle each of the possible submission processing outcomes:
a. there could be an error that comes from attempting to reprocess a submission that has already been processed, and we could do this with a db constraint or with some other pre-check
The text was updated successfully, but these errors were encountered: