Skip to content

Commit b361efc

Browse files
authored
Add documentation for soft launch enablement using PostHog feature flags (#7343)
1 parent 4810241 commit b361efc

2 files changed

Lines changed: 65 additions & 0 deletions

File tree

docs/admin/feature-flags.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
navTitle: Soft Launch Enablement
3+
meta:
4+
description: How to enable soft-launched features for specific teams using PostHog feature flags.
5+
tags:
6+
- flowfuse
7+
- feature flags
8+
- posthog
9+
- soft launch
10+
---
11+
12+
# Enabling Soft-Launched Features for Specific Teams
13+
14+
During a soft launch campaign, new features are gated behind PostHog feature flags
15+
and enabled on a per-team basis. This guide describes the process for enabling a
16+
feature flag for a specific team on FlowFuse Cloud.
17+
18+
## Process
19+
20+
### 1. Change Request
21+
22+
A change request is created in the **CloudProject** repository. The request must include:
23+
24+
- The **internal team ID** of the team that needs the feature enabled
25+
- The **feature** that needs enabling
26+
27+
### 2. Identify the Feature Flag Key
28+
29+
The developer or admin handling the request should know which PostHog feature flag
30+
key gates the requested feature. If unsure, ask in the **Slack engineering channel**.
31+
32+
### 3. Update the Feature Flag in PostHog
33+
34+
1. Log into **PostHog** on the **production project**
35+
2. In the left-hand menu, navigate to **Features > Feature Flags**
36+
3. Find the relevant feature flag key in the list and open it for editing
37+
38+
### 4. Add a Release Condition
39+
40+
Under **Release conditions**, add a new condition set for the team:
41+
42+
1. Click to add a new condition set
43+
2. Give the condition set a **description** — use the team or customer name for
44+
readability (see [Organizing Condition Sets](#organizing-condition-sets) below)
45+
3. Add a filter: **`team-id`****equals****`<given-team-id>`**
46+
4. Set the **rollout percentage** to **100%**
47+
5. **Save** the feature flag
48+
49+
### 5. Verify and Close
50+
51+
- Verify that the feature flag change is reflected on **production/cloud** — confirm
52+
the team now has access to the feature
53+
- Once verified, close the change request in the CloudProject repository
54+
55+
## Organizing Condition Sets
56+
57+
When adding release conditions, prefer **one condition set per customer**. If a
58+
customer has multiple teams, group them under the same condition set. This approach
59+
keeps things readable because each condition set can have a description identifying
60+
the customer, avoiding the need to track and correlate raw team IDs.
61+
62+
If the feature flag already has existing condition sets, follow the pattern that was
63+
established when the flag was first created. Use your judgement on the best approach
64+
— the goal is to keep the list of conditions manageable and easy to audit.

docs/admin/introduction.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ meta:
2727
- [Licensing](/docs/admin/licensing.md)
2828
- [User management](/docs/admin/user_management.md)
2929
- [Platform Monitoring](/docs/admin/monitoring.md)
30+
- [Soft Launch Enablement](/docs/admin/feature-flags.md)
3031

3132
## Administering FlowFuse
3233

0 commit comments

Comments
 (0)