Skip to content

[FFL-2385] Add Stale Flags concept page#37279

Open
abin-ddhq wants to merge 7 commits into
masterfrom
abin/ffl-2385-stale-flags-docs
Open

[FFL-2385] Add Stale Flags concept page#37279
abin-ddhq wants to merge 7 commits into
masterfrom
abin/ffl-2385-stale-flags-docs

Conversation

@abin-ddhq
Copy link
Copy Markdown
Contributor

What does this PR do? What is the motivation?

Fixes FFL-2385

Adds a new "Stale Flags" page under content/en/feature_flags/concepts/ documenting how Datadog detects stale feature flags, the three staleness signals (Fully rolled out, No evaluations, No activity), and the per-flag actions available from the stale banner: Generate Removal PR with Bits, Archive, Mark as Permanent, and Dismiss for 30 days.

Also adds the new page to the concepts index.

Merge instructions

Merge readiness:

  • Ready for merge

Additional notes

Made with Cursor

Adds a new concept page documenting how Datadog detects and surfaces
stale feature flags, plus the in-product actions to resolve them
(Generate Removal PR with Bits, Archive, Mark as Permanent, Dismiss).

Co-authored-by: Cursor <cursoragent@cursor.com>
@abin-ddhq abin-ddhq requested a review from a team as a code owner June 4, 2026 20:35
@github-actions github-actions Bot added the Images Images are added/removed with this PR label Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

@dd-octo-sts-c33ac5
Copy link
Copy Markdown

dd-octo-sts-c33ac5 Bot commented Jun 4, 2026

🐑 PR Shepherd is maintaining this PR

I watch your PR and automatically fix CI failures, rebase your branch, handle flaky tests, and push it to the merge queue when it's ready.

More about what I do → Guide

To pause me on this PR, add the flow-skip label.

Copy link
Copy Markdown
Contributor

@OliviaShoup OliviaShoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the PR! it looks great. left some non-blocking suggestions

Comment thread content/en/feature_flags/concepts/stale_flags.md Outdated
Comment thread content/en/feature_flags/concepts/stale_flags.md Outdated
Comment thread content/en/feature_flags/concepts/stale_flags.md Outdated
Comment thread content/en/feature_flags/concepts/stale_flags.md Outdated
Comment thread content/en/feature_flags/concepts/stale_flags.md Outdated

## Manage stale flags

### Generate a removal PR with Bits AI
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading says "Bits AI," but the button label below (and the modal alt text) read "Generate Removal PR with Bits." Worth confirming the actual UI label and aligning the heading with it — if the feature is branded "Bits AI," keep it; if the button literally reads "Bits," match that.


**Note**: Remove the flag from your code and deploy the change before you archive the flag. Archiving a flag that is still referenced in code can cause unexpected behavior in your application.

{{< img src="feature_flags/generate_removal_pr.png" alt="Generate Removal PR with Bits modal" style="width:100%;" >}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alt text should end with a period.

Suggested change
{{< img src="feature_flags/generate_removal_pr.png" alt="Generate Removal PR with Bits modal" style="width:100%;" >}}
{{< img src="feature_flags/generate_removal_pr.png" alt="Generate Removal PR with Bits modal." style="width:100%;" >}}


### Mark as permanent

Some flags are intentionally long-lived, such as killswitches or permission gates. Select {{< ui >}}Mark as Permanent{{< /ui >}} on the stale banner to designate a flag as a permanent operational control and exclude it from future stale detection. Permanent flags show a {{< ui >}}PERMANENT{{< /ui >}} indicator in the flag details sidebar.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kill switches is two words (per Merriam-Webster):

Suggested change
Some flags are intentionally long-lived, such as killswitches or permission gates. Select {{< ui >}}Mark as Permanent{{< /ui >}} on the stale banner to designate a flag as a permanent operational control and exclude it from future stale detection. Permanent flags show a {{< ui >}}PERMANENT{{< /ui >}} indicator in the flag details sidebar.
Some flags are intentionally long-lived, such as kill switches or permission gates. Select {{< ui >}}Mark as Permanent{{< /ui >}} on the stale banner to designate a flag as a permanent operational control and exclude it from future stale detection. Permanent flags show a {{< ui >}}PERMANENT{{< /ui >}} indicator in the flag details sidebar.


Some flags are intentionally long-lived, such as killswitches or permission gates. Select {{< ui >}}Mark as Permanent{{< /ui >}} on the stale banner to designate a flag as a permanent operational control and exclude it from future stale detection. Permanent flags show a {{< ui >}}PERMANENT{{< /ui >}} indicator in the flag details sidebar.

{{< img src="feature_flags/mark_as_permanent.png" alt="Feature flag marked as PERMANENT on the flag details page" style="width:100%;" >}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alt text should end with a period.

Suggested change
{{< img src="feature_flags/mark_as_permanent.png" alt="Feature flag marked as PERMANENT on the flag details page" style="width:100%;" >}}
{{< img src="feature_flags/mark_as_permanent.png" alt="Feature flag marked as PERMANENT on the flag details page." style="width:100%;" >}}


{{< partial name="whats-next/whats-next.html" >}}

[1]: https://app.datadoghq.com/feature-flags
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't verify this link from here (the page is auth-gated). Worth confirming /feature-flags resolves — and note that a hardcoded app.datadoghq.com link sends EU/US3/etc. users to the US1 site rather than their own.

abin-ddhq and others added 5 commits June 4, 2026 18:49
Co-authored-by: Olivia Shoup <116908616+OliviaShoup@users.noreply.github.com>
Co-authored-by: Olivia Shoup <116908616+OliviaShoup@users.noreply.github.com>
Co-authored-by: Olivia Shoup <116908616+OliviaShoup@users.noreply.github.com>
Co-authored-by: Olivia Shoup <116908616+OliviaShoup@users.noreply.github.com>
Co-authored-by: Olivia Shoup <116908616+OliviaShoup@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Images Images are added/removed with this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants