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

[FEATURE] Add the ability to filter entity ids in some way #92

Open
yanpitangui opened this issue Mar 25, 2025 · 0 comments
Open

[FEATURE] Add the ability to filter entity ids in some way #92

yanpitangui opened this issue Mar 25, 2025 · 0 comments

Comments

@yanpitangui
Copy link
Collaborator

Currently, the filter operation runs on all entities by default. It would be beneficial to introduce a new feature that allows users to specify a scope of entity-ids for the filter operation.

For example, given the following schema:

entity project {
    relation workspace @workspace;
    relation admin @user @team#member;
    relation member @user @team#member;
    relation guest @user @team#member;
    permission create_task := workspace.owner or workspace.admin
                    or admin or member;
    permission edit := workspace.owner or workspace.admin or admin;
    permission view := admin or member or guest or workspace.view;     
}

entity task {
    relation project @project;
    relation assignee @user;
    
    permission view := project.view;     
}

It would be great to allow a way to filter which tasks of project y that a user can view. One way of doing that would be first querying all tasks in that project and then passing into the LookupEntity to filter for only those tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant