Skip to content

fix: Schedule Update on Segment Overrides shows 'Feature contains no changes'#6996

Merged
talissoncosta merged 1 commit intomainfrom
fix/schedule-segment-overrides-missing-flag
Mar 19, 2026
Merged

fix: Schedule Update on Segment Overrides shows 'Feature contains no changes'#6996
talissoncosta merged 1 commit intomainfrom
fix/schedule-segment-overrides-missing-flag

Conversation

@talissoncosta
Copy link
Contributor

@talissoncosta talissoncosta commented Mar 19, 2026

  • 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 #6997

When clicking "Schedule Update" on the Segment Overrides tab, saveFeatureSegments delegates to saveFeatureValue() without forwarding the schedule argument. This causes the change request flow to be skipped entirely (when 4-eyes approval is not enabled), falling through to a direct value save that fails with "Feature contains no changes".

The fix passes the schedule flag through: saveFeatureValue()saveFeatureValue(schedule).

Introduced in 00085cd (feat: Edit Change Requests #6356).

How did you test this code?

  1. Open a feature with segment overrides on a versioned environment (without 4-eyes approval)
  2. Modify a segment override (e.g. toggle enabled, change value, or add a new one)
  3. Click "Schedule Update"
  4. Verify the scheduling modal opens instead of showing "Feature contains no changes"

When clicking "Schedule Update" on the Segment Overrides tab,
saveFeatureSegments delegates to saveFeatureValue() without forwarding
the schedule argument. This causes the change request flow to be
skipped entirely (when 4-eyes is disabled), falling through to a
direct value save that fails with "Feature contains no changes".

Introduced in 00085cd (feat: Edit Change Requests #6356).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@talissoncosta talissoncosta requested a review from a team as a code owner March 19, 2026 17:02
@talissoncosta talissoncosta requested review from kyle-ssg and removed request for a team March 19, 2026 17:02
Copy link

@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 in Settings → Usage.

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

@vercel
Copy link

vercel bot commented Mar 19, 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 Mar 19, 2026 5:04pm
flagsmith-frontend-staging Ready Ready Preview, Comment Mar 19, 2026 5:04pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Mar 19, 2026 5:04pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Docker builds report

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  43.5 seconds
commit  3ff9e04
info  🔄 Run: #15384 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  50.6 seconds
commit  3ff9e04
info  🔄 Run: #15384 (attempt 1)

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

passed  16 passed

Details

stats  16 tests across 13 suites
duration  34.8 seconds
commit  3ff9e04
info  🔄 Run: #15384 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  58.9 seconds
commit  3ff9e04
info  🔄 Run: #15384 (attempt 1)

@talissoncosta talissoncosta merged commit ec940fe into main Mar 19, 2026
27 checks passed
@talissoncosta talissoncosta deleted the fix/schedule-segment-overrides-missing-flag branch March 19, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Schedule Update on Segment Overrides shows 'Feature contains no changes'

3 participants