Skip to content

chore(sdk-keys): clean up rtk_server_side_sdk_keys feature flag#7356

Merged
talissoncosta merged 4 commits intomainfrom
chore/cleanup-rtk-server-side-sdk-keys-flag-7140
Apr 29, 2026
Merged

chore(sdk-keys): clean up rtk_server_side_sdk_keys feature flag#7356
talissoncosta merged 4 commits intomainfrom
chore/cleanup-rtk-server-side-sdk-keys-flag-7140

Conversation

@talissoncosta
Copy link
Copy Markdown
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes #7140

The rtk_server_side_sdk_keys flag has shipped, so this PR removes the toggle and the legacy code it was guarding.

  • refactor(sdk-keys): drop rtk_server_side_sdk_keys flag wrapperweb/components/pages/sdk-keys/SDKKeysPage.tsx is now the real page (formerly SDKEnvironmentKeysSettings.tsx), no flag check.
  • chore(sdk-keys): remove legacy ServerSideSDKKeys and SDKKeysPage — deletes the orphaned Flux-era class component (web/components/ServerSideSDKKeys.js) and its host (web/components/SDKKeysPage.tsx).
  • refactor(sdk-keys): drop redundant providesTags entry — collapses useGetServersideEnvironmentKeysQuery's providesTags back to the single LIST tag (the res?.id entry was a no-op kept for parity with the legacy component).
  • test(e2e): always run server-side SDK keys test — drops the flagsmith.hasFeature('rtk_server_side_sdk_keys') skip so the test runs unconditionally.

Follow-up (out of this PR): delete the rtk_server_side_sdk_keys flag from Flagsmith once this is merged.

How did you test this code?

  • npm run typecheck — no new errors introduced; remaining errors are pre-existing on main.
  • npx eslint --fix clean on touched files.
  • grep confirms no dangling references to legacy components or the flag string.
  • Manual UI verification of the SDK keys page (create + delete a server-side key) — TODO before merging.
  • E2E sdk-keys-test.pw.ts will exercise the page end-to-end on CI.

🤖 Generated with Claude Code

talissoncosta and others added 4 commits April 28, 2026 08:57
Inline the RTK-based SDK keys page into web/components/pages/sdk-keys/SDKKeysPage.tsx
and remove the SDKEnvironmentKeysSettings indirection. The flag has shipped, so the
wrapper that toggled between legacy and RTK paths is no longer needed.

Refs #7140

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Now that the rtk_server_side_sdk_keys flag wrapper is gone, the Flux-era
class component (web/components/ServerSideSDKKeys.js) and its host page
(web/components/SDKKeysPage.tsx) are no longer referenced anywhere.

Refs #7140

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The list endpoint returns APIKey[], so res?.id was always undefined and the
extra tag entry was a no-op kept only to keep cache invalidation consistent
with the legacy ServerSideSDKKeys.js component. The legacy component is gone,
so collapse providesTags back to the LIST tag.

Refs #7140

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The rtk_server_side_sdk_keys flag has shipped and the legacy code path is
deleted, so the conditional skip is no longer needed. The test now runs
unconditionally against the RTK page.

Refs #7140

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@talissoncosta talissoncosta requested a review from a team as a code owner April 28, 2026 11:58
@talissoncosta talissoncosta requested review from Zaimwa9 and removed request for a team April 28, 2026 11:58
Copy link
Copy Markdown

@claude claude Bot left a comment

Choose a reason for hiding this comment

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

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit at claude.ai/admin-settings/claude-code.

Once credits are available, reopen this pull request to trigger a review.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Apr 28, 2026 11:59am
flagsmith-frontend-staging Ready Ready Preview, Comment Apr 28, 2026 11:59am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Apr 28, 2026 11:59am

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-7356 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-7356 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-7356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7356 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-7356 Finished ✅ Results

@talissoncosta talissoncosta changed the title Clean up rtk_server_side_sdk_keys feature flag chore(sdk-keys): clean up rtk_server_side_sdk_keys feature flag Apr 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  40.1 seconds
commit  f215058
info  🔄 Run: #16347 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  11 passed

Details

stats  11 tests across 8 suites
duration  51.4 seconds
commit  f215058
info  🔄 Run: #16347 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  53.1 seconds
commit  f215058
info  🔄 Run: #16347 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  1 minute
commit  f215058
info  🔄 Run: #16347 (attempt 1)

@github-actions
Copy link
Copy Markdown
Contributor

Visual Regression

16 screenshots compared. See report for details.
View full report

@talissoncosta talissoncosta merged commit 309a370 into main Apr 29, 2026
30 checks passed
@talissoncosta talissoncosta deleted the chore/cleanup-rtk-server-side-sdk-keys-flag-7140 branch April 29, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clean up rtk_server_side_sdk_keys feature flag

2 participants