Skip to content

Remove feature flag: registerFrontendClient #10024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sastromskis
Copy link

Feature Flag Removal: registerFrontendClient

This PR removes the registerFrontendClient feature flag from the codebase. The changes have been automatically applied using Henry, our automated flag removal assistant.

Flag Value: kept

This change removes the registerFrontendClient feature flag from the codebase.
The feature controlled by this flag has been kept, meaning its functionality is
now permanently enabled.

What was removed:

• The registerFrontendClient flag definition in src/lib/types/experimental.ts.
• The registerFrontendClient flag from the UiFlags interface in
frontend/src/interfaces/uiConfig.ts.
• The flag from experimental flag configurations in src/server-dev.ts and
src/test/e2e/api/admin/applications.e2e.test.ts.
• Conditional checks for this.flagResolver.isEnabled('registerFrontendClient')
in:
• src/lib/features/frontend-api/frontend-api-service.ts
• src/lib/features/metrics/instance/metrics.ts
• The useUiFlag('registerFrontendClient') hook call and associated conditional
rendering logic in frontend/src/component/application/ApplicationChart.tsx.

What was kept:

• The core functionality of registering frontend clients.
• In src/lib/features/frontend-api/frontend-api-service.ts, the logic to
register frontend clients via
this.services.clientInstanceService.registerFrontendClient(client) will
now always execute if metrics.instanceId and sdkVersion are present.
• In src/lib/features/metrics/instance/metrics.ts, the logic to register
frontend clients via
this.clientInstanceService.registerFrontendClient(...) during bulk metrics
processing will now always execute for applications with sdkType ===
'frontend' and a valid sdkVersion.
• In frontend/src/component/application/ApplicationChart.tsx, the UI will now
consistently display separate "Backend SDK" and "Frontend SDK" sections if
data for them exists, instead of a generic "SDK" section.

Why these changes were made:

The registerFrontendClient feature flag was deemed stable and ready for
permanent activation. Removing the flag simplifies the codebase by eliminating
conditional logic and makes the frontend client registration behavior standard.

Tokens: 46k sent, 2.0k received. Cost: $0.08 message, $0.08 session.
Applied edit to frontend/src/interfaces/uiConfig.ts
Applied edit to src/server-dev.ts
Applied edit to src/test/e2e/api/admin/applications.e2e.test.ts
Applied edit to src/lib/types/experimental.ts
Applied edit to frontend/src/component/application/ApplicationChart.tsx
Applied edit to src/lib/features/frontend-api/frontend-api-service.ts
Applied edit to src/lib/features/metrics/instance/metrics.ts
Commit e20ff3c chore: remove registerFrontendClient flag, keep feature

Copy link

vercel bot commented May 22, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 22, 2025 8:32am

Copy link
Contributor

@sastromskis, core features have been modified in this pull request. Please review carefully!

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@chriswk chriswk moved this from New to In Progress in Issues and PRs May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant