Skip to content

Commit c910e54

Browse files
committed
Clarify UserId property in context
1 parent 275d0b2 commit c910e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/contributing/feature-flags.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ debugging code.
9898
<div>
9999
The `flags.json` file can also define flags which respond to user context. Currently, only `UserId`and the `OrganizationId` of all organizations a user belongs to are included in our feature flagging context. The syntax for defining context-aware flags amounts to defining a `flag` object which specifies `variations` values and `rules` which are evaluated against the user context. A `fallthrough` object is also available to specify a default variation. Rules are represented by `segments`, which are defined in the same file.
100100

101-
a Feature flag may not appear in both the `flags` object and in the `flagValues` object.
101+
A Feature flag may not appear in both the `flags` object and in the `flagValues` object.
102+
103+
Note that UserId is referred to as `key` in the `clauses` object while defining a segment.
102104
</div>
103105
<br/>
104106
<details>

0 commit comments

Comments
 (0)