Skip to content

feat(experimentation): choose the rollout when completing an experiment - #9021

Merged
Zaimwa9 merged 6 commits into
mainfrom
feat/experiment-complete-modal
Nov 23, 2026
Merged

Zaimwa9 merged 6 commits into
mainfrom
feat/experiment-complete-modal

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Nov 19, 2026 •

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

Contributes to https://linear.app/flagsmith/issue/ENG-663/what-happens-to-rollout-when-an-experiment-ends

How did you test this code?

Unit tests, plus a local end-to-end run against #9018 in light and dark mode (each decision, one and several variants).

No results: control pre-selected Variant chosen Single variant

@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
flagsmith-frontend-preview Ready Ready Preview Nov 23, 2026 9:58am UTC
flagsmith-frontend-staging Ready Ready Preview Nov 23, 2026 9:58am UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Preview Nov 23, 2026 9:58am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 97a21aa6-4492-4ab0-8b62-c7d68673c95e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

ENG-663

@github-actions github-actions Bot added front-end Issue related to the React Front End Dashboard feature New feature or request labels Nov 19, 2026
@Zaimwa9
Zaimwa9 force-pushed the feat/experiment-complete-modal branch from 63a1e16 to 490464c Compare November 19, 2026 16:22
@Zaimwa9
Zaimwa9 changed the base branch from main to feat/experiment-complete-rollout-decision November 19, 2026 16:22
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 19, 2026
@Zaimwa9
Zaimwa9 marked this pull request as ready for review November 19, 2026 16:27
@Zaimwa9
Zaimwa9 requested a review from a team as a code owner November 19, 2026 16:27
@Zaimwa9
Zaimwa9 requested review from talissoncosta and removed request for a team November 19, 2026 16:27
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 19, 2026
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Docker builds report

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

@codecov

codecov Bot commented Nov 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.93%. Comparing base (48f525e) to head (490464c).

Additional details and impacted files
@@                            Coverage Diff                             @@
##           feat/experiment-complete-rollout-decision    #9021   +/-   ##
==========================================================================
  Coverage                                      98.93%   98.93%           
==========================================================================
  Files                                           1714     1714           
  Lines                                          72685    72685           
==========================================================================
  Hits                                           71908    71908           
  Misses                                           777      777           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 18 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23577 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  37.1 seconds
commit  59bacfa
info  🔄 Run: #23577 (attempt 1)

🗂️ Previous results
✅ private-cloud · depot-ubuntu-latest-16 — run #23577 (attempt 1)

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

passed  6 passed

Details

stats  6 tests across 5 suites
duration  51.7 seconds
commit  59bacfa
info  🔄 Run: #23577 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23577 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  37.1 seconds
commit  59bacfa
info  🔄 Run: #23577 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23577 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  31.3 seconds
commit  59bacfa
info  🔄 Run: #23577 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23512 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  52.1 seconds
commit  b99ecb9
info  🔄 Run: #23512 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23512 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  36.7 seconds
commit  b99ecb9
info  🔄 Run: #23512 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23512 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  36.2 seconds
commit  b99ecb9
info  🔄 Run: #23512 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23512 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  32.4 seconds
commit  b99ecb9
info  🔄 Run: #23512 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-arm-16 — run #23507 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  37.2 seconds
commit  229aa94
info  🔄 Run: #23507 (attempt 1)

✅ private-cloud · depot-ubuntu-latest-16 — run #23507 (attempt 1)

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

passed  4 passed

Details

stats  4 tests across 4 suites
duration  59.4 seconds
commit  229aa94
info  🔄 Run: #23507 (attempt 1)

✅ oss · depot-ubuntu-latest-arm-16 — run #23507 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  35.4 seconds
commit  229aa94
info  🔄 Run: #23507 (attempt 1)

✅ oss · depot-ubuntu-latest-16 — run #23507 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  30.6 seconds
commit  229aa94
info  🔄 Run: #23507 (attempt 1)

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 18 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Visual Regression

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

@github-actions github-actions Bot removed the feature New feature or request label Nov 20, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

0 issues found across 1 file (changes from recent commits).

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Requires human review: Adds a rollout-decision modal to experiment completion behind a feature flag, with tests. Declining because dismissed findings remain: failed results fetches default to control in an irreversible action, and the flag-off path sends no body to an API that requires rollout_decision.

Turn on auto-fix | Re-trigger cubic

talissoncosta
talissoncosta previously approved these changes Nov 20, 2026

@talissoncosta talissoncosta left a comment

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.

Looks good! just some small nits on there.

@Zaimwa9
Zaimwa9 changed the base branch from feat/experiment-complete-rollout-decision to main November 23, 2026 09:58
@Zaimwa9
Zaimwa9 dismissed talissoncosta’s stale review November 23, 2026 09:58

The base branch was changed.

@Zaimwa9
Zaimwa9 requested review from a team as code owners November 23, 2026 09:58
@Zaimwa9
Zaimwa9 requested review from khvn26 and removed request for a team November 23, 2026 09:58
@Zaimwa9
Zaimwa9 force-pushed the feat/experiment-complete-modal branch from b99ecb9 to 59bacfa Compare November 23, 2026 09:58
@github-actions github-actions Bot added feature New feature or request and removed feature New feature or request labels Nov 23, 2026
@Zaimwa9
Zaimwa9 removed the request for review from khvn26 November 23, 2026 09:59

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-staging — 59bacfa9 Deployed Nov 23, 2026 by vercel[bot]
Preview – flagsmith-frontend-preview — 59bacfa9 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants