Skip to content

Commit

Permalink
add definition of static vs dynamic
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <[email protected]>
  • Loading branch information
thomaspoignant committed Dec 18, 2024
1 parent d06ea52 commit eb49de6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/src/pages/specification/20241027-flagsets.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ Description: Flag sets are a way to group flags together.
> _Source: [Openfeature glossary](https://openfeature.dev/specification/glossary/#flag-set)._

- **static flag set**: the flag set is defined in the retriever configuration, we know in advance that this flag set exists.
- **dynamic flag set**: the flag set is defined in the flag configuration file, we don't know in advance which flag sets exist.

## Context

As of today, GO Feature Flag is evaluating flag differently for client and server evaluations.
Expand Down Expand Up @@ -117,6 +120,8 @@ authorizedKeys:
- The flag set configuration is at the same place as the flag configuration, so it is possible to edit the flag set name directly inside the file _(risk of overriding another flag set)_.
- If we want the same flag to be part of multiple flag sets, we need to duplicate the flag in multiple files.
---
### Solution 2: specify the flag set in the retriever configuration
In this solution we consider that we need at least one file per flag set.
Expand Down Expand Up @@ -171,6 +176,8 @@ authorizedKeys:
**CON**
- If we want the same flag to be part of multiple flag sets, we need to duplicate the flag in multiple files.

---

### Solution 3
In this solution we want to offer multiple way to specify the flag set in the configuration.
This solution will be more complex to implement, but it will give more flexibility to the users.
Expand Down

0 comments on commit eb49de6

Please sign in to comment.