feat(v3alpha): read actions (#8357)

# Which Problems Are Solved

The current v3alpha actions APIs don't exactly adhere to the [new
resources API
design](https://zitadel.com/docs/apis/v3#standard-resources).

# How the Problems Are Solved

- **Improved ID access**: The aggregate ID is added to the resource
details object, so accessing resource IDs and constructing proto
messages for resources is easier
- **Explicit Instances**: Optionally, the instance can be explicitly
given in each request
- **Pagination**: A default search limit and a max search limit are
added to the defaults.yaml. They apply to the new v3 APIs (currently
only actions). The search query defaults are changed to ascending by
creation date, because this makes the pagination results the most
deterministic. The creation date is also added to the object details.
The bug with updated creation dates is fixed for executions and targets.
- **Removed Sequences**: Removed Sequence from object details and
ProcessedSequence from search details

# Additional Changes

Object details IDs are checked in unit test only if an empty ID is
expected. Centralizing the details check also makes this internal object
more flexible for future evolutions.

# Additional Context

- Closes #8169 
- Depends on https://github.com/zitadel/zitadel/pull/8225

---------

Co-authored-by: Silvan <silvan.reusser@gmail.com>
Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
This commit is contained in:
Elio Bischof
2024-08-12 22:32:01 +02:00
committed by GitHub
parent 18c3f574a9
commit 042c438813
130 changed files with 3253 additions and 605 deletions

View File

@@ -509,6 +509,7 @@ Errors:
SQLStatement: SQL изразът не може да бъде създаден
InvalidRequest: Заявката е невалидна
TooManyNestingLevels: Твърде много нива на влагане на заявката (макс. 20)
LimitExceeded: Ограничението на заявката е превишено
Quota:
AlreadyExists: Вече съществува квота за тази единица
NotFound: Не е намерена квота за тази единица

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: SQL příkaz nemohl být vytvořen
InvalidRequest: Požadavek je neplatný
TooManyNestingLevels: Příliš mnoho úrovní vnoření dotazů (max. 20)
LimitExceeded: Překročen limit výsledků
Quota:
AlreadyExists: Kvóta pro tuto jednotku již existuje
NotFound: Kvóta pro tuto jednotku nenalezena

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: SQL Statement konnte nicht erstellt werden
InvalidRequest: Anfrage ist ungültig
TooManyNestingLevels: Zu viele Abfrageverschachtelungsebenen (maximal 20)
LimitExceeded: Limit überschritten
Quota:
AlreadyExists: Das Kontingent existiert bereits für diese Einheit
NotFound: Kontingent für diese Einheit nicht gefunden

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: SQL Statement could not be created
InvalidRequest: Request is invalid
TooManyNestingLevels: Too many query nesting levels (Max 20)
LimitExceeded: Limit exceeded
Quota:
AlreadyExists: Quota already exists for this unit
NotFound: Quota not found for this unit
@@ -586,6 +587,7 @@ Errors:
Impersonation:
PolicyDisabled: Impersonation is disabled in the instance security policy
AggregateTypes:
action: Action
instance: Instance

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: La sentencia SQL no pudo crearse
InvalidRequest: La solicitud no es válida
TooManyNestingLevels: Demasiados niveles de anidamiento de consultas (máximo 20)
LimitExceeded: Se ha superado el límite de resultados
Quota:
AlreadyExists: La cuota ya existe para esta unidad
NotFound: Cuota no encontrada para esta unidad

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: L'instruction SQL n'a pas pu être créée
InvalidRequest: La requête n'est pas valide
TooManyNestingLevels: Trop de niveaux d'imbrication de requêtes (maximum 20)
LimitExceeded: Limite dépassée
Quota:
AlreadyExists: Contingent existe déjà pour cette unité
NotFound: Contingent non trouvé pour cette unité

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: Lo statement SQL non può essere creato
InvalidRequest: La richiesta non è valida
TooManyNestingLevels: Troppi livelli di nidificazione delle query (massimo 20)
LimitExceeded: Limite superato
Quota:
AlreadyExists: La quota esiste già per questa unità
NotFound: Quota non trovata per questa unità

View File

@@ -484,6 +484,7 @@ Errors:
SQLStatement: SQLステートメントの作成に失敗しました
InvalidRequest: 無効なリクエストです
TooManyNestingLevels: クエリのネスト レベルが多すぎます (最大 20)
LimitExceeded: 制限を超えました
Quota:
AlreadyExists: このユニットにはすでにクォータが存在しています
NotFound: このユニットにはクォータが見つかりません

View File

@@ -494,6 +494,7 @@ Errors:
SQLStatement: SQL наредбата не може да се креира
InvalidRequest: Барањето е невалидно
TooManyNestingLevels: Премногу нивоа на вгнездување на барања (макс 20)
LimitExceeded: Превишена граница
Quota:
AlreadyExists: Веќе постои квота за оваа единица
NotFound: Квотата не е пронајдена за оваа единица

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: SQL Statement kon niet worden gemaakt
InvalidRequest: Verzoek is ongeldig
TooManyNestingLevels: Te veel query nesting niveaus (Max 20)
LimitExceeded: Limiet overschreden
Quota:
AlreadyExists: Quota bestaat al voor deze eenheid
NotFound: Quota niet gevonden voor deze eenheid

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: Instrukcja SQL nie mogła zostać utworzona
InvalidRequest: Żądanie jest nieprawidłowe
TooManyNestingLevels: Zbyt wiele poziomów zagnieżdżenia zapytań (maks. 20)
LimitExceeded: Limit przekroczony
Quota:
AlreadyExists: Limit już istnieje dla tej jednostki
NotFound: Nie znaleziono limitu dla tej jednostki

View File

@@ -494,6 +494,7 @@ Errors:
SQLStatement: Não foi possível criar a instrução SQL
InvalidRequest: O pedido é inválido
TooManyNestingLevels: muitos níveis de aninhamento de consulta (máx. 20)
LimitExceeded: Limite excedido
Quota:
AlreadyExists: Cota já existe para esta unidade
NotFound: Cota não encontrada para esta unidade

View File

@@ -488,6 +488,7 @@ Errors:
SQLStatement: SQL-запрос не может быть создан
InvalidRequest: Запрос недействителен
TooManyNestingLevels: слишком много уровней вложенности запросов (максимум 20)
LimitExceeded: Превышен лимит
Quota:
AlreadyExists: Квота для данного объекта уже существует
NotFound: Квота для данного объекта не найдена

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: SQL-satsen kunde inte skapas
InvalidRequest: Begäran är ogiltig
TooManyNestingLevels: För många nivåer av frågenästning (Max 20)
LimitExceeded: Gränsen överskreds
Quota:
AlreadyExists: Kvota finns redan för denna enhet
NotFound: Kvota hittades inte för denna enhet

View File

@@ -495,6 +495,7 @@ Errors:
SQLStatement: 无法创建 SQL 语句
InvalidRequest: 请求无效
TooManyNestingLevels: 查询嵌套级别过多(最多 20 个)
LimitExceeded: 限制已超出
Quota:
AlreadyExists: 这个单位的配额已经存在
NotFound: 没有找到该单位的配额