Skip to content

Commit

Permalink
docs: Rewrite segments doc (#3872)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolodato authored May 6, 2024
1 parent 53e728a commit 2fe2752
Show file tree
Hide file tree
Showing 15 changed files with 281 additions and 326 deletions.
4 changes: 2 additions & 2 deletions docs/docs/basic-features/managing-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description: Feature Flags allow you to ship code and features before they are f
---

Flags in Flagsmith are _created and shared at a Project level_, but _overridden at an Environment level_. They can also
be overridden on a [per Identity](/basic-features/managing-identities.md) or
[per Segment](/basic-features/managing-segments.md) basis.
be overridden on a [per Identity](/basic-features/managing-identities.md) or [per Segment](/basic-features/segments.md)
basis.

Flags within Flagsmith are a combination of both:

Expand Down
8 changes: 3 additions & 5 deletions docs/docs/basic-features/managing-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ and modifying their Flags.

You can also use Flagsmith to store 'Traits' against identities. Traits are key/value pairs that are associated with
individual Identities for a particular Environment. Traits have two purposes outlined below, but the main use case is to
drive [Segments](managing-segments.md).
drive [Segments](segments.md).

:::important

Expand All @@ -70,8 +70,7 @@ Flags flags = flagsmith.getIdentityFlags(identifier, traits);
```

Here we are setting the trait key `app_version` with the value of `YourApplication.getVersion()`.You can now create a
[Segment](managing-segments.md) that is based on the application version and manage features based on the application
version.
[Segment](segments.md) that is based on the application version and manage features based on the application version.

Traits are completely free-form. You can store any number of traits, with any relevant information you see fit, in the
platform and then use Segments to control features based on these Trait values.
Expand Down Expand Up @@ -104,8 +103,7 @@ Traits are stored natively as either numbers, strings or booleans.

## Traits powering Segments

Traits can be used within your application, but they can also be used to power
[Segments](/basic-features/managing-segments.md).
Traits can be used within your application, but they can also be used to power [Segments](/basic-features/segments.md).

## Trait Value Data Types

Expand Down
295 changes: 0 additions & 295 deletions docs/docs/basic-features/managing-segments.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/docs/basic-features/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ number of custom defined traits.
Similarly to individual users, you will be able to override environment defaults for features. For example showing
certain features for a "power user" segment.

For more info see [Segments](/basic-features/managing-segments.md).
For more info see [Segments](/basic-features/segments.md).
Loading

0 comments on commit 2fe2752

Please sign in to comment.