Skip to content

Target feature flags by stable team ID#514

Closed
matthewlouisbrockman wants to merge 2 commits into
mainfrom
remove-feature-flag-team-slug
Closed

Target feature flags by stable team ID#514
matthewlouisbrockman wants to merge 2 commits into
mainfrom
remove-feature-flag-team-slug

Conversation

@matthewlouisbrockman

Copy link
Copy Markdown
Contributor

Summary

  • remove dashboard slugs from the shared feature-flag context
  • stop forwarding team.slug to LaunchDarkly
  • update every existing feature-flag call site and the provider contract test

Why

Dashboard slugs are mutable routing identifiers, while the verified team ID is the stable LaunchDarkly targeting key. Keeping slug in the evaluation context allowed future rules to produce inconsistent results for the same team.

A read-only audit of the Dashboard LaunchDarkly project found no slug-based clauses or segments in Test, Staging, or Production. Existing team targets use team context keys with UUID team IDs, so this does not change current targeting behavior.

Validation

  • bunx vitest run tests/unit/feature-flags.test.ts tests/unit/sidebar.test.ts
  • bun run next typegen && bunx tsc --noEmit
  • bun run knip:ci
  • focused Biome check
  • bunx react-doctor --verbose --diff origin/main --blocking warning --no-score --no-telemetry

Remove dashboard slugs from the LaunchDarkly context so routing identifiers cannot become targeting inputs. Existing Dashboard project rules and targets use team context keys only.
@cla-bot cla-bot Bot added the cla-signed label Jul 16, 2026
@matthewlouisbrockman

Copy link
Copy Markdown
Contributor Author

eh, will wait to coordinate this, realized someone else had added this not me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant