Skip to content
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

Add Support for Batch Processing in permission-check API #1520

Open
ucatbas opened this issue Aug 27, 2024 · 1 comment
Open

Add Support for Batch Processing in permission-check API #1520

ucatbas opened this issue Aug 27, 2024 · 1 comment
Assignees
Labels
feature request New feature or request

Comments

@ucatbas
Copy link
Contributor

ucatbas commented Aug 27, 2024

Is your feature request related to a problem? Please describe.
This is an enhancement request to the permission-check API. The current implementation processes a single entity and subject per API call. It would be beneficial to introduce support for batch processing, allowing users to send arrays of entities or subjects and receive results as arrays in a single API call.

Additional context

  • reduces the number of API calls needed for multiple permission checks, improving performance and reducing network overhead.
@ucatbas ucatbas added the feature request New feature or request label Aug 27, 2024
@ucatbas
Copy link
Contributor Author

ucatbas commented Aug 27, 2024

Here is an example request body:

{
    "metadata": {
        "snap_token": {{snap_token}},
        "schema_version": {{schema_version}},
        "depth": 100
    },
    "entity": {
        "type": "repository",
        "ids": ["repo_1", "repo_2", "repo_3"]
    },
    "permission": "view",
    "subject": {
        "type": "user",
        "ids": ["user_1"]
    }
}

@tolgaOzen tolgaOzen moved this to Q2 2024 – Apr-Jun in Public Roadmap Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
Status: Q4 2024 – Oct-Dec
Development

No branches or pull requests

3 participants