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

fix: Disable is_admin switcher in Organization API Keys #4753

Merged
merged 2 commits into from
Oct 23, 2024
Merged

fix: Disable is_admin switcher in Organization API Keys #4753

merged 2 commits into from
Oct 23, 2024

Conversation

dougfabris
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

It proposes to disabled the "is admin" switcher in order to not display roles toggle for free plans

Closes #3644

How did you test this code?

  • Go to organization API Keys
  • Create or edit an api key
  • Is admin should be disabled for free plans

Copy link

vercel bot commented Oct 20, 2024

@dougfabris is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Oct 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 1:30pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 1:30pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2024 1:30pm

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Oct 20, 2024
@dougfabris dougfabris marked this pull request as ready for review October 20, 2024 22:55
@dougfabris dougfabris requested a review from a team as a code owner October 20, 2024 22:55
@dougfabris dougfabris requested review from kyle-ssg and removed request for a team October 20, 2024 22:55
Copy link
Contributor

github-actions bot commented Oct 22, 2024

Uffizzi Preview deployment-57506 was deleted.

Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dougfabris, thanks very much for this - it's a very good catch.

I think we can also extend it to add a banner that shows it is only available in our paid plans, but we can handle that internally. For now, getting the switcher disabled would be important for our customers.

I've added one suggested improvement, but I'd happily merge it and take on the improvement internally if needed.

Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks @dougfabris !

@matthewelwell matthewelwell added this pull request to the merge queue Oct 23, 2024
Merged via the queue into Flagsmith:main with commit 6d955b4 Oct 23, 2024
28 checks passed
@dougfabris dougfabris deleted the fix/create-apikey-switch branch October 23, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end Issue related to the React Front End Dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When creating an Organisation API key, Free plans should not show the roles toggle
2 participants