Add opt to remove TypeInstance's revision via dedicated gRPC method
Store new revision in external storage before executing update cypher query
Rollback stored revision in case of failed transaction
The Local Hub code was simplified thanks to handling the update logic directly in mutation resolver instead of value field resolver. However, the additionall logic (rpc DeleteRevision) is now required to be implemented on each storage backend.
Testing
I added e2e tests for Local Hub to prove that the contract was not broken with the new approach.
Description
Changes proposed in this pull request:
The Local Hub code was simplified thanks to handling the update logic directly in mutation resolver instead of
value
field resolver. However, the additionall logic (rpc DeleteRevision) is now required to be implemented on each storage backend.Testing
I added e2e tests for Local Hub to prove that the contract was not broken with the new approach.
Related issue(s)
Fix https://github.com/capactio/capact/issues/661