mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-28 06:58:54 +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 <[email protected]>
This commit is contained in:
co-authored by
Stefan Benz
parent
6379d6a0ed
commit
32ec7d0aa9
@@ -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