fix: project grants (#4031)

* fix: filter granted memberships correctly

* fix: only show changes of granted project

* Apply suggestions from code review

Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>

* Update internal/query/user_membership.go

Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>

Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
This commit is contained in:
Livio Spring
2022-07-27 09:55:44 +02:00
committed by GitHub
parent c15577c1f9
commit 5bd9badbcf
14 changed files with 224 additions and 44 deletions

View File

@@ -1417,6 +1417,19 @@ Removes an app key
DELETE: /projects/{project_id}/apps/{app_id}/keys/{key_id}
### ListProjectGrantChanges
> **rpc** ListProjectGrantChanges([ListProjectGrantChangesRequest](#listprojectgrantchangesrequest))
[ListProjectGrantChangesResponse](#listprojectgrantchangesresponse)
Returns the history of the project grant (each event)
Limit should always be set, there is a default limit set by the service
POST: /projects/{project_id}/grants/{grant_id}/changes/_search
### GetProjectGrantByID
> **rpc** GetProjectGrantByID([GetProjectGrantByIDRequest](#getprojectgrantbyidrequest))
@@ -5743,6 +5756,30 @@ This is an empty request
### ListProjectGrantChangesRequest
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| query | zitadel.change.v1.ChangeQuery | list limitations and ordering | |
| project_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
| grant_id | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
### ListProjectGrantChangesResponse
| Field | Type | Description | Validation |
| ----- | ---- | ----------- | ----------- |
| result | repeated zitadel.change.v1.Change | zitadel.v1.ListDetails details = 1; was always returned empty (as we cannot get the necessary infos) | |
### ListProjectGrantMemberRolesRequest