Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,33 @@ An SDK-compliant secondary function that is abstracted by the Feature Flag API,
### Context

The flag evaluation context, which may contain information about the runtime environment, details of the transport method encapsulating the flag evaluation, the host, the client, the subject (user), etc.

## Flagging specifics

```mermaid
erDiagram
Flag ||--|{ variant: "has many"
variant ||--|| value: "has"
Flag ||--o{ rule: "Has zero or many"
rule }|--|{ variant : "links to many"
```

### Flag

Flags represent a single pivot point of logic. Flags have a type, like `string`, `boolean`, `json`, etc. Examples: `redesign_enabled` or `header-order`

### Variant
A variant is a space-constrained identifier for values. This allows us to reference these values without having to include all of the data (which may be quite large). We may use some hash of the values themselves or a string name. So for the `header-order` flag, we may have variants like `reverse`, `wonky` or `standard`.

### Values
Individual variants have values associated with them. These values adhere to the flag's type. For the `header-order` variants, we may have values like:

```
reverse: [5,4,3,2,1]
wonky: [3,5,2,1,4]
standard: [1,2,3,4,5]
```

### Rule

A rule is some criteria that's used to determine which variant a particular context should be mapped to.