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] Filter projects on create resource forms #2500

Open
mknowlton89 opened this issue May 9, 2024 · 0 comments
Open

[Feature] Filter projects on create resource forms #2500

mknowlton89 opened this issue May 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mknowlton89
Copy link
Collaborator

Description of Feature

On most forms that handle creating resources (e.g. metrics, SDK Connections, etc) when creating the resource we fetch a list of projects the user has readAccess to, but in some cases, while the user may have readAccess for that particular project, they don't have permission to create a resource in that project.

E.G.
A user with a global role of noaccess has project-roles for two projects. Project A they have an experimenter role and Project B they have an analyst role.

If the user goes to create an SDK Connection, in the Create SDK Connection form, we show both Project A and Project B in the projects dropdown, but the user only has canCreateSDKConnection for Project A.

If the user tries to add Project B to the SDK Connection, they'll receive a permission error.

The issue is, the permission error doesn't provide any context, so it's not clear to the user. So we can either filter the project list or we can provide a more contextual error message. E.G. "Permission Error: You don't have canCreateSDKConnection in project B".

Related Issues

@mknowlton89 mknowlton89 added the enhancement New feature or request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant