Skip to content

Commit eb49de6

Browse files
add definition of static vs dynamic
Signed-off-by: Thomas Poignant <[email protected]>
1 parent d06ea52 commit eb49de6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: website/src/pages/specification/20241027-flagsets.md

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Description: Flag sets are a way to group flags together.
1818
> _Source: [Openfeature glossary](https://openfeature.dev/specification/glossary/#flag-set)._
1919
2020

21+
- **static flag set**: the flag set is defined in the retriever configuration, we know in advance that this flag set exists.
22+
- **dynamic flag set**: the flag set is defined in the flag configuration file, we don't know in advance which flag sets exist.
23+
2124
## Context
2225

2326
As of today, GO Feature Flag is evaluating flag differently for client and server evaluations.
@@ -117,6 +120,8 @@ authorizedKeys:
117120
- 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)_.
118121
- If we want the same flag to be part of multiple flag sets, we need to duplicate the flag in multiple files.
119122
123+
---
124+
120125
### Solution 2: specify the flag set in the retriever configuration
121126
122127
In this solution we consider that we need at least one file per flag set.
@@ -171,6 +176,8 @@ authorizedKeys:
171176
**CON**
172177
- If we want the same flag to be part of multiple flag sets, we need to duplicate the flag in multiple files.
173178

179+
---
180+
174181
### Solution 3
175182
In this solution we want to offer multiple way to specify the flag set in the configuration.
176183
This solution will be more complex to implement, but it will give more flexibility to the users.

0 commit comments

Comments
 (0)