mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 14:47:33 +00:00
feat(\internal): sorting column on ListIAMMembersRequest (#9203)
# Which Problems Are Solved SortingColumn functionality on system API ListIAMMembers SortingColumn functionality on admin API ListIAMMembers # How the Problems Are Solved I have added enum MemberFieldColumnName in` member.proto `file , consists of names of the columns on which the request can be sorted. MEMBER_FIELD_NAME_UNSPECIFIED = 0; MEMBER_FIELD_NAME_USER_ID=1; MEMBER_FIELD_NAME_CREATION_DATE = 2; MEMBER_FIELD_NAME_CHANGE_DATE=3; MEMBER_FIELD_NAME_USER_RESOURCE_OWNER=4 I have added field Sorting Column for ListIAMMembersRequest in` system.proto` file. I have added field Sorting Column for ListIAMMembersRequest in` admin.proto` file. I have modified ListIAMMembersRequestToQuery function in file `internal/api/grpc/system/instance_converter.go `to include sorting column in the query.SearchRequest{}. I have modified ListIAMMembersRequestToQuery function in file `internal/api/grpc/admin/iam_member_converter.go ` to include sorting column in the query.SearchRequest{}. # Additional Changes Replace this example text with a concise list of additional changes that this PR introduces, that are not directly solving the initial problem but are related. For example: - The docs explicitly describe that the property XY is mandatory - Adds missing translations for validations. # Additional Context Replace this example with links to related issues, discussions, discord threads, or other sources with more context. Use the Closing #issue syntax for issues that are resolved with this PR. - Closes https://github.com/zitadel/zitadel/issues/5063 - Discussion #xxx - Follow-up for PR #xxx - https://discordapp.com/channels/927474939156643850/1329872809488416789/1329872809488416789 --------- Co-authored-by: Stefan Benz <46600784+stebenz@users.noreply.github.com>
This commit is contained in:
@@ -8782,6 +8782,7 @@ message ListIAMMembersRequest {
|
||||
zitadel.v1.ListQuery query = 1;
|
||||
//criteria the client is looking for
|
||||
repeated zitadel.member.v1.SearchQuery queries = 2;
|
||||
zitadel.member.v1.MemberFieldColumnName sorting_column = 3;
|
||||
}
|
||||
|
||||
message ListIAMMembersResponse {
|
||||
|
@@ -143,3 +143,11 @@ message UserIDQuery {
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
enum MemberFieldColumnName {
|
||||
MEMBER_FIELD_NAME_UNSPECIFIED = 0;
|
||||
MEMBER_FIELD_NAME_USER_ID=1;
|
||||
MEMBER_FIELD_NAME_CREATION_DATE = 2;
|
||||
MEMBER_FIELD_NAME_CHANGE_DATE=3;
|
||||
MEMBER_FIELD_NAME_USER_RESOURCE_OWNER=4;
|
||||
}
|
@@ -689,6 +689,7 @@ message ListIAMMembersRequest {
|
||||
zitadel.v1.ListQuery query = 1;
|
||||
string instance_id = 2;
|
||||
repeated zitadel.member.v1.SearchQuery queries = 3;
|
||||
zitadel.member.v1.MemberFieldColumnName sorting_column = 4;
|
||||
}
|
||||
|
||||
message ListIAMMembersResponse {
|
||||
|
Reference in New Issue
Block a user