Open ankitsheoran1 opened 1 month ago
The changes in this pull request introduce significant enhancements to the Permify API, particularly in the area of permissions management. Two new endpoints, /lookup-entities
and /lookup-entities-stream
, have been added to facilitate entity lookups based on permissions. Additionally, several modifications have been made to the integration tests and internal engines to support these new functionalities. The validation logic for requests and responses has also been updated to ensure compliance with specified constraints.
File Path | Change Summary |
---|---|
docs/api-reference/apidocs.swagger.json |
Added new endpoints: POST /v1/tenants/{tenant_id}/permissions/lookup-entities and lookup-entities-stream . Updated definitions for PermissionsLookupEntityResponse , PermissionsLookupEntityStreamResponse , LookupEntitiesBody , and LookupEntitiesStreamBody . |
integration-test/usecases/facebook_groups_test.go , .../google_docs_test.go , .../notion_test.go |
Updated permissionClient.LookupEntity method to accept multiple permissions and modified response handling in tests. |
internal/engines/bulk.go , .../entityFilter.go , .../lookup.go |
Enhanced BulkChecker , EntityFilter , and LookupEngine classes with new parameters and methods for handling permissions. |
internal/invoke/invoke.go , internal/servers/permissionServer.go |
Added LookupEntities and LookupEntitiesStream methods to the Invoke interface and PermissionServer . |
pkg/pb/base/v1/service.pb.validate.go , .../health.pb.validate.go |
Introduced validation logic for PermissionsLookupEntityRequest , PermissionsLookupEntityResponse , and health check messages. |
apidocs.swagger.json
file, which is directly related to the changes made in the main PR regarding the API documentation for new endpoints and response structures.🐰 In the realm of permissions, we hop with cheer,
New endpoints are here, bringing entities near.
With validations in place, our checks are so bright,
A leap towards clarity, in the API's light!
So let’s celebrate changes, both big and small,
For the power of permissions, we now can enthrall! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Hey @ankitsheoran1, Thank you for updating the PR and rebasing it to latest version. There are some issues with naming and BulkChecker method. I have another PR affecting it. I wanted to make sure I highlight the other PR related to the bulk-checker. Here’s the link: feat: bulk permission check api is added.
Summary by CodeRabbit
New Features
POST /v1/tenants/{tenant_id}/permissions/lookup-entities
POST /v1/tenants/{tenant_id}/permissions/lookup-entities-stream
Bug Fixes
Documentation