feat: add executions for actions v2 (#7433)

* feat: add events for execution

* feat: add events for execution and command side

* feat: add events for execution and command side

* feat: add api endpoints for set and delete executions with integration tests

* feat: add integration and unit tests and more existence checks

* feat: add integration and unit tests and more existence checks

* feat: unit tests for includes in executions

* feat: integration tests for includes in executions

* fix: linting

* fix: update internal/api/api.go

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>

* fix: update internal/command/command.go

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>

* fix: apply suggestions from code review

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>

* fix: change api return

* fix: change aggregateID with prefix of execution type and add to documentation

* fix: change body in proto for documentation and correct linting

* fix: changed existing check to single query in separate writemodel

* fix: linter changes and list endpoints for conditions in executions

* fix: remove writemodel query on exeuction set as state before is irrelevant

* fix: testing for exists write models and correction

* fix: translations for errors and event types

---------

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
This commit is contained in:
Stefan Benz
2024-02-26 11:49:43 +01:00
committed by GitHub
parent ce7ebffa84
commit 2731099db3
39 changed files with 5893 additions and 58 deletions

View File

@@ -557,6 +557,12 @@ Errors:
NoTimeout: Целта няма време за изчакване
InvalidURL: Целта има невалиден URL адрес
NotFound: Целта не е намерена
Execution:
ConditionInvalid: Условието за изпълнение е невалидно
Invalid: Изпълнението е невалидно
NotFound: Изпълнението не е намерено
IncludeNotFound: Включването не е намерено
NoTargets: Няма определени цели
AggregateTypes:
action: Действие
@@ -569,8 +575,12 @@ AggregateTypes:
quota: Квота
feature: Особеност
target: Целта
execution: Екзекуция
EventTypes:
execution:
set: Комплект за изпълнение
removed: Изпълнението е изтрито
target:
added: Целта е създадена
changed: Целта е променена

View File

@@ -537,6 +537,12 @@ Errors:
NoTimeout: Cíl nemá časový limit
InvalidURL: Cíl má neplatnou adresu URL
NotFound: Cíl nenalezen
Execution:
ConditionInvalid: Podmínka provedení je neplatná
Invalid: Provedení je neplatné
NotFound: Provedení nenalezeno
IncludeNotFound: Zahrnout nenalezeno
NoTargets: Nejsou definovány žádné cíle
AggregateTypes:
action: Akce
@@ -549,8 +555,12 @@ AggregateTypes:
quota: Kvóta
feature: Funkce
target: Cíl
execution: Provedení
EventTypes:
execution:
set: Prováděcí sada
removed: Provedení smazáno
target:
added: Cíl vytvořen
changed: Cíl změněn

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: Ziel hat keinen Timeout
InvalidURL: Ziel hat eine ungültige URL
NotFound: Ziel nicht gefunden
Execution:
ConditionInvalid: Die Ausführungsbedingung ist ungültig
Invalid: Die Ausführung ist ungültig
NotFound: Ausführung nicht gefunden
IncludeNotFound: Einschließen nicht gefunden
NoTargets: Keine Ziele definiert
AggregateTypes:
action: Action
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Kontingent
feature: Feature
target: Ziel
execution: Ausführung
EventTypes:
execution:
set: Ausführung gesetzt
removed: Ausführung gelöscht
target:
added: Ziel erstellt
changed: Ziel geändert

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: Target has no timeout
InvalidURL: Target has an invalid URL
NotFound: Target not found
Execution:
ConditionInvalid: Execution condition is invalid
Invalid: Execution is invalid
NotFound: Execution not found
IncludeNotFound: Include not found
NoTargets: No targets defined
AggregateTypes:
action: Action
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Quota
feature: Feature
target: Target
execution: Execution
EventTypes:
execution:
set: Execution set
removed: Execution deleted
target:
added: Target created
changed: Target changed

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: El objetivo no tiene tiempo de espera
InvalidURL: El objetivo tiene una URL no válida
NotFound: El objetivo no encontrado
Execution:
ConditionInvalid: La condición de ejecución no es válida
Invalid: La ejecución no es válida
NotFound: Ejecución no encontrada
IncludeNotFound: Incluir no encontrado
NoTargets: No hay objetivos definidos
AggregateTypes:
action: Acción
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Cuota
feature: Característica
target: Objectivo
execution: Ejecución
EventTypes:
execution:
set: Conjunto de ejecución
removed: Ejecución eliminada
target:
added: Objetivo creado
changed: Objetivo cambiado

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: La cible n'a pas de délai d'attente
InvalidURL: La cible a une URL non valide
NotFound: La cible introuvable
Execution:
ConditionInvalid: La condition d'exécution n'est pas valide
Invalid: L'exécution est invalide
NotFound: Exécution introuvable
IncludeNotFound: Inclure introuvable
NoTargets: Aucune cible définie
AggregateTypes:
action: Action
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Contingent
feature: Fonctionnalité
target: Cible
execution: Exécution
EventTypes:
execution:
set: Ensemble d'exécution
removed: Exécution supprimée
target:
added: Cible créée
changed: Cible modifiée

View File

@@ -541,6 +541,13 @@ Errors:
NoTimeout: Il target non ha timeout
InvalidURL: La destinazione ha un URL non valido
NotFound: Obiettivo non trovato
Execution:
ConditionInvalid: La condizione di esecuzione non è valida
Invalid: L'esecuzione non è valida
NotFound: Esecuzione non trovata
IncludeNotFound: Includi non trovato
NoTargets: Nessun obiettivo definito
AggregateTypes:
action: Azione
@@ -553,8 +560,12 @@ AggregateTypes:
quota: Quota
feature: Funzionalità
target: Bersaglio
execution: Esecuzione
EventTypes:
execution:
set: Insieme di esecuzione
removed: Esecuzione cancellata
target:
added: Obiettivo creato
changed: Obiettivo cambiato

View File

@@ -529,6 +529,12 @@ Errors:
NoTimeout: ターゲットにはタイムアウトがありません
InvalidURL: ターゲットに無効な URL があります
NotFound: ターゲットが見つかりません
Execution:
ConditionInvalid: 実行条件が不正です
Invalid: 実行は無効です
NotFound: 実行が見つかりませんでした
IncludeNotFound: 見つからないものを含める
NoTargets: ターゲットが定義されていません
AggregateTypes:
action: アクション
@@ -541,8 +547,12 @@ AggregateTypes:
quota: クォータ
feature: 特徴
target: 目標
execution: 実行
EventTypes:
execution:
set: 実行セット
removed: 実行は削除されました
target:
added: ターゲットが作成されました
changed: ターゲットが変更されました

View File

@@ -539,6 +539,12 @@ Errors:
NoTimeout: Целта нема тајмаут
InvalidURL: Целта има неважечка URL-адреса
NotFound: Целта не е пронајдена
Execution:
ConditionInvalid: Условот за извршување е неважечки
Invalid: Извршувањето е неважечко
NotFound: Извршувањето не е пронајдено
IncludeNotFound: Вклучете не е пронајден
NoTargets: Не се дефинирани цели
AggregateTypes:
action: Акција
@@ -551,8 +557,12 @@ AggregateTypes:
quota: Квота
feature: Карактеристика
target: Цел
execution: Извршување
EventTypes:
execution:
set: Комплет за извршување
removed: Извршувањето е избришано
target:
added: Целта е избришана
changed: Целта е променета

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: Doel heeft geen time-out
InvalidURL: Doel heeft een ongeldige URL
NotFound: Doel niet gevonden
Execution:
ConditionInvalid: Uitvoeringsvoorwaarde is ongeldig
Invalid: Uitvoering is ongeldig
NotFound: Uitvoering niet gevonden
IncludeNotFound: Inclusief niet gevonden
NoTargets: Geen doelstellingen gedefinieerd
AggregateTypes:
action: Actie
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Quota
feature: Functie
target: Doel
execution: Executie
EventTypes:
execution:
set: Uitvoering ingesteld
removed: Uitvoering verwijderd
target:
added: Doel gemaakt
changed: Doel gewijzigd

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: Cel nie ma limitu czasu
InvalidURL: Cel ma nieprawidłowy adres URL
NotFound: Nie znaleziono celu
Execution:
ConditionInvalid: Warunek wykonania jest nieprawidłowy
Invalid: Wykonanie jest nieprawidłowe
NotFound: Nie znaleziono wykonania
IncludeNotFound: Nie znaleziono uwzględnienia
NoTargets: Nie zdefiniowano celów
AggregateTypes:
action: Działanie
@@ -552,8 +558,12 @@ AggregateTypes:
quota: Limit
feature: Funkcja
target: Cel
execution: Wykonanie
EventTypes:
execution:
set: Zestaw wykonawczy
removed: Wykonanie usunięte
target:
added: Cel został utworzony
changed: Cel zmieniony

View File

@@ -534,6 +534,12 @@ Errors:
NoTimeout: O destino não tem tempo limite
InvalidURL: O destino tem um URL inválido
NotFound: Destino não encontrado
Execution:
ConditionInvalid: A condição de execução é inválida
Invalid: A execução é inválida
NotFound: Execução não encontrada
IncludeNotFound: Incluir não encontrado
NoTargets: Nenhuma meta definida
AggregateTypes:
action: Ação
@@ -545,9 +551,13 @@ AggregateTypes:
usergrant: Concessão de usuário
quota: Cota
feature: Recurso
target: objetivo
target: Objetivo
execution: Execução
EventTypes:
execution:
set: Conjunto de execução
removed: Execução excluída
target:
added: Destino criado
changed: Destino alterada

View File

@@ -528,6 +528,12 @@ Errors:
NoTimeout: У цели нет тайм-аута
InvalidURL: Цель имеет неверный URL-адрес
NotFound: Цель не найдена
Execution:
ConditionInvalid: Недопустимое условие выполнения
Invalid: Исполнение недействительно
NotFound: Исполнение не найдено
IncludeNotFound: Включить не найдено
NoTargets: Цели не определены
AggregateTypes:
action: Действие
@@ -540,8 +546,12 @@ AggregateTypes:
quota: Квота
feature: Особенность
target: мишень
execution: Исполнение
EventTypes:
execution:
set: Набор исполнения
removed: Исполнение удалено
target:
added: Цель создана
changed: Цель изменена

View File

@@ -540,6 +540,12 @@ Errors:
NoTimeout: 目标没有超时
InvalidURL: 目标的 URL 无效
NotFound: 未找到目标
Execution:
ConditionInvalid: 执行条件无效
Invalid: 执行无效
NotFound: 未找到执行
IncludeNotFound: 包括未找到的内容
NoTargets: 没有定义目标
AggregateTypes:
action: 动作
@@ -552,8 +558,12 @@ AggregateTypes:
quota: 配额
feature: 特征
target:
execution: 执行
EventTypes:
execution:
set: 执行集
removed: 执行已删除
target:
added: 目标已创建
changed: 目标改变