Skip to content

Commit 24ea414

Browse files
committed
improve use case 1
1 parent 08b9330 commit 24ea414

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

docs/docs/basic-features/segments.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,15 @@ Context values can be used to control your targeting more precisely:
109109
### Gradual rollout across tenants
110110

111111
Suppose your application supports users who can belong to multiple organisations. Now imagine you want to roll out a new
112-
feature to 50% of your total user base — but instead of targeting users randomly, you'd like to gradually release the
113-
feature based on the organisations they belong to.
112+
feature to 20% of your organisations, ensuring that users only have access to the feature when they are part of an organisation included in that 20%. If they switch to an organisation outside this group, they will no longer have access to the feature.
114113

115114
Here's how you might define a segment to achieve this:
116115

117116
| Rule Order | Property | Operator | Value |
118117
| ---------- | ------------------------- | -------- | ----- |
119-
| 1 | Identifier | % Split | 50 |
120-
| 2 | `organisation_name` Trait | % Split | 20 |
118+
| 1 | `organisation_name` Trait | % Split | 20 |
121119

122-
This setup instructs the evaluation engine to:
123-
124-
1. Check whether the user falls within the first 50% of your overall user base.
125-
2. If they do, check whether the organisation they belong to is within 20% of all organisations.
126-
127-
As you gradually increase the percentage in Rule 2, the number of users with access to the feature grows — but it will
128-
never exceed 50% of your total user base. If a user switches to an organisation that isn’t included in Rule 2, they’ll
129-
lose access to the feature.
120+
This setup, along with a segment override, instructs the evaluation engine to enable the feature if the user's current organisation belongs to consistent 20% of all organisations.
130121

131122
:::info Use transient traits for multi-tenancy
132123

0 commit comments

Comments
 (0)