Skip to content

Commit 9681236

Browse files
codedbychavezaisz0811laliconfigcat
authored
Add: Zombie Flags Report Documentation (#530)
* Add path to `sidebars.ts` * Initial draft of My Zombie Flags Report * Additional updates and screenshots * Add link to `website/src/pages/index.js` * Fix: #530 (comment) * Fix: https://github.com/configcat/docs/pull/530/files/936015325bc339b76ad974586be27dd6a5557095#r2030704244 * Fix: https://github.com/configcat/docs/pull/530/files/936015325bc339b76ad974586be27dd6a5557095#r2030723289 * Update website/docs/my-zombie-flags-report.mdx Co-authored-by: aisz0811 <55664408+aisz0811@users.noreply.github.com> * Update website/docs/my-zombie-flags-report.mdx Co-authored-by: aisz0811 <55664408+aisz0811@users.noreply.github.com> * Apply suggestions from code review Applied first batch of suggetsions Co-authored-by: aisz0811 <55664408+aisz0811@users.noreply.github.com> * Update website/docs/my-zombie-flags-report.mdx Co-authored-by: aisz0811 <55664408+aisz0811@users.noreply.github.com> * Add new section * Lint fixes * Fix bold text * Update * Apply suggestions from code review Co-authored-by: Csilla Kisfaludi <55664408+aisz0811@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Csilla Kisfaludi <55664408+aisz0811@users.noreply.github.com> * Fix screenshots * Update link to Zombie Flag document in `sidebar.js` and `website/src/pages/index.js` * Add notes * Add: updated screenshots and instruction notes #1 * Updates * Add: Zombie flag report email screenshot and update documentation. * Updates * Update website/docs/zombie-flags.mdx Co-authored-by: Lajos Szoke <63732287+laliconfigcat@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Lajos Szoke <63732287+laliconfigcat@users.noreply.github.com> * Fix: https://github.com/configcat/docs/pull/530/files#r2112577805 * Fix: https://github.com/configcat/docs/pull/530/files#r2112592644 * Fix: https://github.com/configcat/docs/pull/530/files#r2112591105 * Fix: https://github.com/configcat/docs/pull/530/files#r2112597326 * Remove: Unused screenshot * Fix: #530 (comment) * Add: zombie flags document to v1 docs and v1 sidebar * Update: My Zombie Flags Report screenshot * Final updates * Apply suggestions from code review Co-authored-by: Csilla Kisfaludi <55664408+aisz0811@users.noreply.github.com> * unwanted spaces * Apply suggestions from code review Co-authored-by: Csilla Kisfaludi <55664408+aisz0811@users.noreply.github.com> * changes --------- Co-authored-by: aisz0811 <55664408+aisz0811@users.noreply.github.com> Co-authored-by: Lajos Szoke <63732287+laliconfigcat@users.noreply.github.com> Co-authored-by: Lali <lali@configcat.com>
1 parent a2eb872 commit 9681236

11 files changed

+204
-1
lines changed

website/docs/zombie-flags.mdx

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
id: zombie-flags
3+
title: Zombie Flags
4+
description: This page explains how to identify and manage Zombie Flags in ConfigCat through the dashboard, email reports, or the Zombie Flags API.
5+
---
6+
7+
Zombie flags (stale flags) are feature flags that are no longer needed or actively used. They often remain in the codebase long after their purpose has been fulfilled. Removing these outdated flags can reduce technical debt, improve performance, and simplify your codebase.
8+
9+
Common scenarios where zombie flags appear:
10+
11+
- A temporary feature becomes permanent, but its flag is never removed.
12+
- A flag was introduced for a one-time rollout or experiment that's now complete.
13+
- A decision was made to always keep a feature on or off, making the flag redundant.
14+
- The flag hasn't been toggled or referenced for an extended period.
15+
16+
## Why Removing Zombie Flags Matters
17+
18+
Leaving stale flags in your code can lead to the following:
19+
- **Increased complexity:** Unused flags clutter code and reduce maintainability.
20+
- **Unexpected behavior:** Outdated flags might trigger legacy logic unintentionally.
21+
- **Longer onboarding and reviews:** Developers waste time reviewing obsolete logic.
22+
- **Performance degradation:** In large-scale systems, excess flags can slow down operations.
23+
24+
## Managing Zombie Flags in ConfigCat
25+
26+
There are three ways to access and manage Zombie flags in ConfigCat:
27+
28+
- Through the [Dashboard](https://app.configcat.com/product/zombie-flags).
29+
- Using the [Zombie Flags Email Report](https://app.configcat.com/my-account/zombie-flags-report).
30+
- Via the [Zombie Flags API](https://api.configcat.com/docs/index.html#tag/Zombie-(stale)-flags).
31+
32+
### Using the Dashboard
33+
34+
The [Zombie Flags page](https://app.configcat.com/product/zombie-flags) shows all the stale flags in a table for the selected product based on the filters set:
35+
36+
- **Inactivity**: How long the flag was inactive.
37+
- **Feature flag scope**: Choose between all feature flags or only those you are watching.
38+
- **Included environments**: The ConfigCat [environment(s)](https://configcat.com/docs/main-concepts/#environment) to include in the analysis.
39+
- **Ignored flags based on tags**: Exclude flags based on assigned tags.
40+
- **Stale in all/any selected environments**: Choose whether to include flags that are stale in all or any of the selected environments.
41+
- **Filter by config or feature flag name**: Start typing to filter the list automatically.
42+
43+
<img alt="The Zombie Flags page in the ConfigCat dashboard" src="/docs/assets/guide/my-zombie-flags-report/the-zombie-flags-page-in-the-dashboard_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
44+
45+
By default, the Zombie Flags page will filter the zombie flags based on the filters set in the **My Zombie Flags Report** page.
46+
47+
:::info
48+
If you have the [Code References](https://configcat.com/docs/advanced/code-references/overview/) feature enabled, you can also see where the flags are used in your code.
49+
:::
50+
51+
### Using the Zombie Flags Report Email
52+
53+
The Zombie Flags Report scans your ConfigCat dashboard and sends an email report of the feature flags that haven't been updated or toggled within the configured timeframe.
54+
55+
You can customize the report to include only the flags you want to track, using filters similar to those available in the dashboard.
56+
57+
#### How to Set Up the Zombie Feature Flags Report
58+
59+
1. Log in to the [ConfigCat dashboard](https://app.configcat.com/my-account/zombie-flags-report).
60+
2. Click the Organization name in the top-left corner.
61+
3. Select **My Zombie Flags Report** from the dropdown menu.
62+
63+
<img alt="Navigating to My Zombie Flags Report" src="/docs/assets/guide/my-zombie-flags-report/navigating-to-my-zombie-flags-report_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
64+
65+
#### The My Zombie Flags Report Page
66+
67+
The email report can be customized as follows:
68+
69+
- **Receive report via email:** Turn on email notifications and set the frequency (daily, weekly, monthly).
70+
- **Criteria:** Define how long a flag must be inactive before it's marked as stale.
71+
- **Scope:** Include all flags or only watched ones.
72+
- **Environment:** Choose the ConfigCat [environment(s)](https://configcat.com/docs/main-concepts/#environment) you want to analyze.
73+
- **Tags:** Exclude specific flags based on tags.
74+
- **Stale in all/any selected environments:** Choose whether to include flags that are stale in all or any of the selected environments.
75+
76+
<img alt="My Zombie Flags Report page in the dashboard" src="/docs/assets/guide/my-zombie-flags-report/my-zombie-flags-report-page-in-the-dashboard_192dpi.png" width="1366" height="1044" decoding="async" loading="lazy" />
77+
78+
#### Sample Email Report
79+
80+
Here's a preview of what the Zombie Flags report email looks like:
81+
82+
<img alt="Zombie Flags Report Email" src="/docs/assets/guide/my-zombie-flags-report/zombie-flags-report-email_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
83+
84+
### Using the Zombie Flags API
85+
86+
The [Zombie Flags API](https://api.configcat.com/docs/index.html#tag/Zombie-(stale)-flags) allows programmatic access to zombie flag data. This is useful for integrating flag cleanup processes into your CI/CD workflows or internal tooling.
87+
88+
You can use tools like Postman to retrieve zombie flag data via the API for testing or integration. Here's a preview of what it looks like in Postman:
89+
90+
<img alt="Using the Zombie Flags API in Postman" src="/docs/assets/guide/my-zombie-flags-report/using-the-zombie-flags-api-in-postman_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
91+
92+
## Other Tools for Identifying Unused Feature Flags
93+
94+
In addition to the methods mentioned, ConfigCat also provides several tools to help you detect and clean up unused feature flags:
95+
96+
- [Scan & Upload Code References](https://configcat.com/docs/advanced/code-references/overview): Track where feature flags appear in your code.
97+
- [The ConfigCat CLI](https://configcat.com/docs/advanced/cli): Detect flags still in your code that no longer exist in the ConfigCat Dashboard.
98+
- [GitHub Action](https://configcat.com/docs/integrations/github/) and [CircleCI Orb](https://configcat.com/docs/integrations/circleci): Find feature flags in your code that you might want to remove.
99+
- [Bitrise Step](https://configcat.com/docs/integrations/bitrise/): Scan your source code for feature flag and setting usages and upload the found code references to ConfigCat.
100+
- [Bitbucket Pipe](https://configcat.com/docs/integrations/bitbucket/): Scan your source code for feature flag and setting usages and upload the found code references to ConfigCat.

website/sidebars.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ const sidebars: SidebarsConfig = {
184184
},
185185
],
186186
},
187+
'zombie-flags',
187188
{
188189
label: 'Migration from LaunchDarkly',
189190
type: 'category',

website/src/pages/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const features = [
6060
url: 'advanced/migration-from-launchdarkly',
6161
title: 'Migration from LaunchDarkly',
6262
},
63+
{ url: 'zombie-flags', title: 'Zombie Flags' },
6364
// { url: 'advanced/config-v2-migration-guide', title: 'Config V2 Migration Guide' },
6465
],
6566
},
Loading
Loading
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
---
2+
id: zombie-flags
3+
title: Zombie Flags
4+
description: This page explains how to identify and manage Zombie Flags in ConfigCat through the dashboard, email reports, or the Zombie Flags API.
5+
---
6+
7+
Zombie flags (stale flags) are feature flags that are no longer needed or actively used. They often remain in the codebase long after their purpose has been fulfilled. Removing these outdated flags can reduce technical debt, improve performance, and simplify your codebase.
8+
9+
Common scenarios where zombie flags appear:
10+
11+
- A temporary feature becomes permanent, but its flag is never removed.
12+
- A flag was introduced for a one-time rollout or experiment that's now complete.
13+
- A decision was made to always keep a feature on or off, making the flag redundant.
14+
- The flag hasn't been toggled or referenced for an extended period.
15+
16+
## Why Removing Zombie Flags Matters
17+
18+
Leaving stale flags in your code can lead to the following:
19+
- **Increased complexity:** Unused flags clutter code and reduce maintainability.
20+
- **Unexpected behavior:** Outdated flags might trigger legacy logic unintentionally.
21+
- **Longer onboarding and reviews:** Developers waste time reviewing obsolete logic.
22+
- **Performance degradation:** In large-scale systems, excess flags can slow down operations.
23+
24+
## Managing Zombie Flags in ConfigCat
25+
26+
There are three ways to access and manage Zombie flags in ConfigCat:
27+
28+
- Through the [Dashboard](https://app.configcat.com/product/zombie-flags).
29+
- Using the [Zombie Flags Email Report](https://app.configcat.com/my-account/zombie-flags-report).
30+
- Via the [Zombie Flags API](https://api.configcat.com/docs/index.html#tag/Zombie-(stale)-flags).
31+
32+
### Using the Dashboard
33+
34+
The [Zombie Flags page](https://app.configcat.com/product/zombie-flags) shows all the stale flags in a table for the selected product based on the filters set:
35+
36+
- **Inactivity**: How long the flag was inactive.
37+
- **Feature flag scope**: Choose between all feature flags or only those you are watching.
38+
- **Included environments**: The ConfigCat [environment(s)](https://configcat.com/docs/main-concepts/#environment) to include in the analysis.
39+
- **Ignored flags based on tags**: Exclude flags based on assigned tags.
40+
- **Stale in all/any selected environments**: Choose whether to include flags that are stale in all or any of the selected environments.
41+
- **Filter by config or feature flag name**: Start typing to filter the list automatically.
42+
43+
<img alt="The Zombie Flags page in the ConfigCat dashboard" src="/docs/assets/guide/my-zombie-flags-report/the-zombie-flags-page-in-the-dashboard_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
44+
45+
By default, the Zombie Flags page will filter the zombie flags based on the filters set in the **My Zombie Flags Report** page.
46+
47+
:::info
48+
If you have the [Code References](https://configcat.com/docs/advanced/code-references/overview/) feature enabled, you can also see where the flags are used in your code.
49+
:::
50+
51+
### Using the Zombie Flags Report Email
52+
53+
The Zombie Flags Report scans your ConfigCat dashboard and sends an email report of the feature flags that haven't been updated or toggled within the configured timeframe.
54+
55+
You can customize the report to include only the flags you want to track, using filters similar to those available in the dashboard.
56+
57+
#### How to Set Up the Zombie Feature Flags Report
58+
59+
1. Log in to the [ConfigCat dashboard](https://app.configcat.com/my-account/zombie-flags-report).
60+
2. Click the Organization name in the top-left corner.
61+
3. Select **My Zombie Flags Report** from the dropdown menu.
62+
63+
<img alt="Navigating to My Zombie Flags Report" src="/docs/assets/guide/my-zombie-flags-report/navigating-to-my-zombie-flags-report_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
64+
65+
#### The My Zombie Flags Report Page
66+
67+
The email report can be customized as follows:
68+
69+
- **Receive report via email:** Turn on email notifications and set the frequency (daily, weekly, monthly).
70+
- **Criteria:** Define how long a flag must be inactive before it's marked as stale.
71+
- **Scope:** Include all flags or only watched ones.
72+
- **Environment:** Choose the ConfigCat [environment(s)](https://configcat.com/docs/main-concepts/#environment) you want to analyze.
73+
- **Tags:** Exclude specific flags based on tags.
74+
- **Stale in all/any selected environments:** Choose whether to include flags that are stale in all or any of the selected environments.
75+
76+
<img alt="My Zombie Flags Report page in the dashboard" src="/docs/assets/guide/my-zombie-flags-report/my-zombie-flags-report-page-in-the-dashboard_192dpi.png" width="1366" height="1044" decoding="async" loading="lazy" />
77+
78+
#### Sample Email Report
79+
80+
Here's a preview of what the Zombie Flags report email looks like:
81+
82+
<img alt="Zombie Flags Report Email" src="/docs/assets/guide/my-zombie-flags-report/zombie-flags-report-email_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
83+
84+
### Using the Zombie Flags API
85+
86+
The [Zombie Flags API](https://api.configcat.com/docs/index.html#tag/Zombie-(stale)-flags) allows programmatic access to zombie flag data. This is useful for integrating flag cleanup processes into your CI/CD workflows or internal tooling.
87+
88+
You can use tools like Postman to retrieve zombie flag data via the API for testing or integration. Here's a preview of what it looks like in Postman:
89+
90+
<img alt="Using the Zombie Flags API in Postman" src="/docs/assets/guide/my-zombie-flags-report/using-the-zombie-flags-api-in-postman_192dpi.png" width="1366" height="768" decoding="async" loading="lazy" />
91+
92+
## Other Tools for Identifying Unused Feature Flags
93+
94+
In addition to the methods mentioned, ConfigCat also provides several tools to help you detect and clean up unused feature flags:
95+
96+
- [Scan & Upload Code References](https://configcat.com/docs/advanced/code-references/overview): Track where feature flags appear in your code.
97+
- [The ConfigCat CLI](https://configcat.com/docs/advanced/cli): Detect flags still in your code that no longer exist in the ConfigCat Dashboard.
98+
- [GitHub Action](https://configcat.com/docs/integrations/github/) and [CircleCI Orb](https://configcat.com/docs/integrations/circleci): Find feature flags in your code that you might want to remove.
99+
- [Bitrise Step](https://configcat.com/docs/integrations/bitrise/): Scan your source code for feature flag and setting usages and upload the found code references to ConfigCat.
100+
- [Bitbucket Pipe](https://configcat.com/docs/integrations/bitbucket/): Scan your source code for feature flag and setting usages and upload the found code references to ConfigCat.

0 commit comments

Comments
 (0)