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 Request: Add environment field to flag #3

Open
endigo opened this issue Dec 7, 2024 · 1 comment
Open

Feature Request: Add environment field to flag #3

endigo opened this issue Dec 7, 2024 · 1 comment

Comments

@endigo
Copy link

endigo commented Dec 7, 2024

I don't want to create Flags in different environments like staging and production.

Can we have environment field in the flag itself?

If possible I want to toggle each environment separately

@jgunnink
Copy link
Member

jgunnink commented Jan 2, 2025

Thanks for your suggestion @endigo - sorry for the delay, I didn't notice the issue was opened!

If I understand correctly you'd like to have an environment value associated with the flag when queried, which you'd like to be able to configure as a multi toggle-able option?

So if I fetch a flag, and get back the JSON it might look like this?

"name": "Flag A",
"id": "abcDEF123",
"enabled": true,
"environments": {
  "staging": true,
  "prod": false
}

Curious to understand how you imagine it working so I can look into it.

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

No branches or pull requests

2 participants