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

feat(feature flags): use organization flags API in the UI #18477

Merged
merged 31 commits into from
Nov 8, 2023

Conversation

jurajmajerik
Copy link
Contributor

@jurajmajerik jurajmajerik commented Nov 8, 2023

Changes

  • Add API calls to the UI to:
    • Retrieve organization flags
    • Copy flags
  • Set button text dynamically based on whether we're copying or updating
  • Add success/failure toasts
Screen.Recording.2023-11-08.at.10.25.50.mov

Follow ups:

  • Adjust API calls after the copy_flags endpoint accepts multiple flags
  • Proactively check for which projects the copy operations won't succeed (based on permissions), and don't allow to update those projects from the UI

Suggest de-prio for now:

  • Copy into multiple projects at once - this will require handling the case when some operations succeed and some fail

How did you test this code?

👀

jurajmajerik and others added 28 commits October 31, 2023 15:32
Copy link
Collaborator

@neilkakkar neilkakkar left a comment

Choose a reason for hiding this comment

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

nice 👍

copyFlag: async () => {
const orgId = values.currentOrganization?.id

return await api.create(`api/organizations/${orgId}/feature_flags/copy_flags`, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@jurajmajerik jurajmajerik merged commit 292e3db into master Nov 8, 2023
72 of 73 checks passed
@jurajmajerik jurajmajerik deleted the fix/feature-flags-filters branch November 8, 2023 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants