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

chore: document flag metadata / ui #299

Merged
merged 1 commit into from
Jan 1, 2025
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions changelog/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ description: Recent updates to Flipt, including new SDKs and other improvements.
mode: "wide"
---

<Update label="January 2025">

## Flag Metadata

Added support for metadata on flags in the Flipt UI.

![Flag Metadata Example](/images/concepts/flags_metadata.png)

</Update>

<Update label="November 2024">

## Prometheus Analytics Storage
Expand Down
15 changes: 15 additions & 0 deletions concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@

![Boolean Flags Example](/images/concepts/flags_boolean.png)

### Metadata

All flags can have metadata associated with them. This metadata is stored in the Flipt backend and can be used to add additional information about a flag.

Check warning on line 84 in concepts.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Avoid] Don't use 'backend'. See the A-Z word list for details. Raw Output: {"message": "[Microsoft.Avoid] Don't use 'backend'. See the A-Z word list for details.", "location": {"path": "concepts.mdx", "range": {"start": {"line": 84, "column": 88}}}, "severity": "WARNING"}

Metadata is stored as a JSON object and is not used for evaluation. You can retrieve flag metadata using the [Get Flag](/reference/flags/get-flag) API.

Check warning on line 86 in concepts.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Microsoft.Contractions] Use 'isn't' instead of 'is not'. Raw Output: {"message": "[Microsoft.Contractions] Use 'isn't' instead of 'is not'.", "location": {"path": "concepts.mdx", "range": {"start": {"line": 86, "column": 41}}}, "severity": "WARNING"}

In the Flipt UI, metadata is displayed in the flag details section. The UI allows you to add, edit, and delete metadata and provides a more user-friendly interface for managing metadata by specifying key-value pairs and their data types.

Check warning on line 88 in concepts.mdx

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [Openly.SentenceLength] Write short sentences (less than 25 words). Raw Output: {"message": "[Openly.SentenceLength] Write short sentences (less than 25 words).", "location": {"path": "concepts.mdx", "range": {"start": {"line": 88, "column": 69}}}, "severity": "WARNING"}

Currently, the following data types are supported:

- Primitive types: `String`, `Number`, `Boolean`
- Complex types: `Array`, `Object`

![Flag Metadata Example](/images/concepts/flags_metadata.png)

## Segments

Segments allow you to split your user base or audience up into predefined
Expand Down
Binary file added images/concepts/flags_metadata.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading