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

Incorrect project-level roles shown in project settings #4924

Open
1 of 4 tasks
rolodato opened this issue Dec 16, 2024 · 0 comments
Open
1 of 4 tasks

Incorrect project-level roles shown in project settings #4924

rolodato opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
api Issue related to the REST API bug Something isn't working

Comments

@rolodato
Copy link
Member

rolodato commented Dec 16, 2024

How are you running Flagsmith

  • Self Hosted with Docker
  • Self Hosted with Kubernetes
  • SaaS at flagsmith.com
  • Some other way (add details in description below)

Describe the bug

The list of project-specific roles in the Project Settings page only seems to show 1 role, even if other roles should be shown. It can also incorrectly show roles if they used to be specific to a project in the past.

Steps To Reproduce

  1. Create two roles
  2. Give one role Project Admin permissions to any project
  3. Go to Project Settings > Permissions > Roles, and validate that that role is present
  4. Give the other role Project Admin permissions to the same project
  5. Go to the project roles page again - only the role from step 2 will be shown

If you remove Project Admin permissions from the first role, it will still be shown incorrectly in the project roles page.

If you delete the first role, the second role will now be shown correctly in the project roles page.

The endpoint returning incorrect data is GET /api/v1/organisations/15467/roles/717/projects-permissions/?project=22470

Expected behavior

All project roles should be returned in the project settings page.

Screenshots

project.roles.mov
@rolodato rolodato added api Issue related to the REST API bug Something isn't working labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants