Skip to content

docs: update feature flag docs for Bitwarden.Server.Sdk.Features - #888

Merged
justindbaur merged 1 commit into
mainfrom
docs/feature-flags-server-sdk
Oct 9, 2026
Merged

justindbaur merged 1 commit into
mainfrom
docs/feature-flags-server-sdk

Conversation

@justindbaur

Copy link
Copy Markdown
Member

🎟️ Tracking

Follow-up to bitwarden/server#7898, which switched the server to Bitwarden.Server.Sdk.Features.

📔 Objective

Update the feature flag docs to reflect the server's move to Bitwarden.Server.Sdk.Features:

  • Point the targeting context at ServerContextBuilder and note device targeting.
  • Replace the now-unused GetLocalOverrideFlagValues() guidance with AddFeatureFlagValues().
  • Document [FlagKeyCollection] and team-owned flag key collections registered with AddKnownFeatureFlags() (which must happen in Api for flags returned from /config), instead of requiring every flag in FeatureFlagKeys.
  • Drop the ICurrentContext requirement from the server consumption steps and link to the package docs.
  • Add a "Removing a flag" section pointing at the BW0001 code fix.

Configuration examples intentionally still use the globalSettings:launchDarkly keys.

The server now evaluates flags through Bitwarden.Server.Sdk.Features, so
the server guidance referenced types and methods that no longer apply.
Document team-owned flag key collections, AddFeatureFlagValues for code
overrides, and the BW0001 code fix for flag removal.
@justindbaur justindbaur added the ai-review Request a Claude code review label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR changes only documentation, in docs/contributing/feature-flags.md, to reflect the server's move to Bitwarden.Server.Sdk.Features. It updates the targeting context link to ServerContextBuilder and replaces the GetLocalOverrideFlagValues() guidance with AddFeatureFlagValues(). It also documents [FlagKeyCollection] collections and AddKnownFeatureFlags() registration, and adds a "Removing a flag" section. Internal anchors (#creating-a-new-flag, #flag-data-sources, #self-hosted-considerations) still resolve, nothing in docs/ still points at the removed guidance, and the review found no issues.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying contributing-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f8b7788
Status: ✅  Deploy successful!
Preview URL: https://82535d44.contributing-docs.pages.dev
Branch Preview URL: https://docs-feature-flags-server-sd.contributing-docs.pages.dev

View logs

@justindbaur
justindbaur marked this pull request as ready for review October 9, 2026 18:41
@justindbaur
justindbaur requested a review from a team as a code owner October 9, 2026 18:41
@justindbaur
justindbaur merged commit e8da8d7 into main Oct 9, 2026
18 of 21 checks passed
@justindbaur
justindbaur deleted the docs/feature-flags-server-sdk branch October 9, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants