feat: reset projections and remove failed events (#2770)

* feat: change failed events to new projection

* feat: change failed events to new projection

* feat: change current sequences to new projection

* feat: add tests

* Update internal/api/grpc/admin/failed_event.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* Update internal/api/grpc/admin/view.go

Co-authored-by: Livio Amstutz <livio.a@gmail.com>

* fix: truncate

* fix reset

* fix reset

* Rename V1.102__queries.sql to V1.103__queries.sql

* improve current_sequence and truncate view tables

* check sub tables of view are tables

* Update internal/query/current_sequence_test.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* fixes and use squirrel

* missing error handling

* lock before reset

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
Co-authored-by: Silvan <silvan.reusser@gmail.com>
This commit is contained in:
Fabi
2021-12-16 14:44:26 +01:00
committed by GitHub
parent d2ea9a1b8c
commit a43e1fc34a
15 changed files with 821 additions and 40 deletions

View File

@@ -4,6 +4,9 @@ Errors:
OriginNotAllowed: Dieser "Origin" ist nicht freigeschaltet
IDMissing: ID fehlt
ResourceOwnerMissing: Organisation fehlt
RemoveFailed: Konnte nicht gelöscht werden
ProjectionName:
Invalid: Ungültiger Projektionsname
Assets:
EmptyKey: Asset Key ist leer
Store:

View File

@@ -4,6 +4,9 @@ Errors:
OriginNotAllowed: This "Origin" is not allowed
IDMissing: ID missing
ResourceOwnerMissing: Resource Owner Organisation missing
RemoveFailed: Could not be removed
ProjectionName:
Invalid: Invalid projection name
Assets:
EmptyKey: Asset key is empty
Store:

View File

@@ -4,6 +4,9 @@ Errors:
OriginNotAllowed: Origine non consentita
IDMissing: ID mancante
ResourceOwnerMissing: Resource Owner mancante
RemoveFailed: Non può essere cancellato
ProjectionName:
Invalid: Nome della proiezione non valido
Assets:
EmptyKey: Asset key vuoto
Store: