fix: add OrgIDQuery to the queries for organizations (#8312)

# Which Problems Are Solved

ListOrgs has no option to select for organizations specific to Ids.

# How the Problems Are Solved

Add OrgIDQuery to ListOrgs.

# Additional Changes

Clean up double mapping for the OrgQueries.

# Additional Context

- noted internally while checking performance issues (in Console)
This commit is contained in:
Stefan Benz
2024-07-16 15:12:19 +02:00
committed by GitHub
parent 3d45c5dee5
commit 19561a092c
4 changed files with 18 additions and 25 deletions

View File

@@ -81,6 +81,7 @@ message OrgQuery {
OrgNameQuery name_query = 1;
OrgDomainQuery domain_query = 2;
OrgStateQuery state_query = 3;
OrgIDQuery id_query = 4;
}
}
@@ -123,6 +124,16 @@ message OrgStateQuery {
];
}
message OrgIDQuery {
string id = 1 [
(validate.rules).string = {max_len: 200},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
example: "\"69629023906488334\""
}
];
}
enum OrgFieldName {
ORG_FIELD_NAME_UNSPECIFIED = 0;
ORG_FIELD_NAME_NAME = 1;