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: Support global variables/constants #7537

Open
Hansemeister opened this issue Jul 3, 2024 · 2 comments
Open

feat: Support global variables/constants #7537

Hansemeister opened this issue Jul 3, 2024 · 2 comments
Assignees

Comments

@Hansemeister
Copy link

Hansemeister commented Jul 3, 2024

Describe the feature request

I want Unleash to support string variables that can be defined one place, and referenced in multiple activation strategies / constraints / variants. In a string-replacement kind of way.

Background

Purpose is to avoid duplicating configuration, and to easily modify multiple resources safely with less chance of "missing a spot". This is especially useful with larger teams where you want the configurations to be consistent across Projects / strategies.

Solution suggestions

Backend - Variables can be persisted in postgres database.
Frontend - How it could look using $(VAR_NAME) syntax :

Variables page
image

Constraints page:
image

Variants page:
image

@Hansemeister Hansemeister changed the title Support global variables/constants feat: Support global variables/constants Jul 3, 2024
@FredrikOseberg FredrikOseberg self-assigned this Jul 4, 2024
@FredrikOseberg FredrikOseberg moved this from New to Support rotation in Issues and PRs Jul 4, 2024
@FredrikOseberg
Copy link
Contributor

@Hansemeister Thanks for the suggestion! I think we already have something in this area that may make it easier for you to manage configuration for multiple feature toggles. For this purpose we already have segments which allows you to define re-usable sets of constraint that can be updated in one central place. Does that solve this use case for you?

@Hansemeister
Copy link
Author

@FredrikOseberg Neat! Unleash Segments solve my use case for the constraints.
However for the variants, it could still be useful to have variables to use in the payloads.

@ivarconr ivarconr moved this from Support rotation to For later in Issues and PRs Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: For later
Development

No branches or pull requests

2 participants