-
-
Notifications
You must be signed in to change notification settings - Fork 262
feat: add support for list of permissions in lookup-entity #1465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 9 commits
db07226
14f612c
d5b5fcd
e76ab81
d9593b3
d2a5b08
e1c59ea
e3d94fd
4694441
ccb597f
d4f9b4b
2ee4d81
59f4462
a17f7ee
1d48d67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2049,6 +2049,19 @@ | |
| }, | ||
| "description": "EntityFilter is used to filter entities based on the type and ids." | ||
| }, | ||
| "EntityIds": { | ||
| "type": "object", | ||
| "properties": { | ||
| "ids": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "title": "entitiy Ids" | ||
| } | ||
| }, | ||
| "description": "EntityIds is a helper message used within PermissionLookupEntityResponse to encapsulate a list of entity." | ||
| }, | ||
| "Entry": { | ||
| "type": "object", | ||
| "properties": { | ||
|
|
@@ -2261,8 +2274,11 @@ | |
| "type": "string", | ||
| "description": "Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes." | ||
| }, | ||
| "permission": { | ||
| "type": "string", | ||
| "permissions": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "description": "Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes." | ||
| }, | ||
| "subject": { | ||
|
|
@@ -2296,8 +2312,11 @@ | |
| "type": "string", | ||
| "description": "Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes." | ||
| }, | ||
| "permission": { | ||
| "type": "string", | ||
| "permissions": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
|
Comment on lines
+2410
to
+2414
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update streaming API clients to handle multiple permissions per entity ID. Changing the Please ensure that all streaming API clients are updated to handle multiple permissions associated with each entity ID in the response stream. |
||
| "description": "Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes." | ||
| }, | ||
| "subject": { | ||
|
|
@@ -2584,9 +2603,9 @@ | |
| "type": "object", | ||
| "properties": { | ||
| "entity_ids": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "$ref": "#/definitions/EntityIds" | ||
| }, | ||
| "description": "List of identifiers for entities that match the lookup." | ||
| }, | ||
|
|
@@ -2604,6 +2623,10 @@ | |
| "type": "string", | ||
| "description": "Identifier for an entity that matches the lookup." | ||
| }, | ||
| "permission": { | ||
| "type": "string", | ||
| "description": "The name of the permission for which the specified entity_id has access." | ||
| }, | ||
| "continuous_token": { | ||
| "type": "string", | ||
| "description": "continuous_token is a string that can be used to paginate and retrieve the next set of results." | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update API clients to use an array of permission names.
Changing the
permissionproperty to an array is a good enhancement to allow checking multiple permissions in a single request.Please ensure that all API clients are updated to provide an array of permission names when calling the
LookupEntityAPI.