Skip to content

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

Description

@ucatbas

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.

Activity

  1. ucatbas commented on Aug 27, 2024

    @ucatbas
    ContributorAuthor

    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"]
        }
    }
    
  2. moved this to Q2 2024 – Apr-Jun in Public Roadmapon Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions