Skip to content

fix(Webhooks): Correct previous_state for scheduled feature updates#6740

Merged
emyller merged 3 commits intomainfrom
fix/webhook-data-scheduled-flag-update
Feb 23, 2026
Merged

fix(Webhooks): Correct previous_state for scheduled feature updates#6740
emyller merged 3 commits intomainfrom
fix/webhook-data-scheduled-flag-update

Conversation

@emyller
Copy link
Copy Markdown
Contributor

@emyller emyller commented Feb 20, 2026

Webhook consumers receive the correct previous state when a scheduled feature update goes live.

Changes

  • Webhook previous_state reflects the actual previous live feature state for scheduled changes
  • Integration tests cover scheduled flag change webhooks in legacy versioning

Closes #2063

Review effort: 2/5

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 20, 2026

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

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Feb 20, 2026 0:35am
flagsmith-frontend-preview Ignored Ignored Preview Feb 20, 2026 0:35am
flagsmith-frontend-staging Ignored Ignored Preview Feb 20, 2026 0:35am

Request Review

@github-actions github-actions bot added api Issue related to the REST API fix labels Feb 20, 2026
@github-actions github-actions bot added fix and removed fix labels Feb 20, 2026
@emyller emyller marked this pull request as ready for review February 20, 2026 01:46
@emyller emyller requested a review from a team as a code owner February 20, 2026 01:46
@emyller emyller requested review from khvn26 and removed request for a team February 20, 2026 01:46
@github-actions github-actions bot added fix and removed fix labels Feb 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 20, 2026

Docker builds report

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

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.25%. Comparing base (7c0bf27) to head (dfe89e0).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6740      +/-   ##
==========================================
+ Coverage   98.23%   98.25%   +0.02%     
==========================================
  Files        1312     1312              
  Lines       48490    48547      +57     
==========================================
+ Hits        47633    47701      +68     
+ Misses        857      846      -11     

☔ View full report in Codecov by Sentry.
📢 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.

@emyller emyller self-assigned this Feb 20, 2026
Copy link
Copy Markdown
Contributor

@Zaimwa9 Zaimwa9 left a comment

Choose a reason for hiding this comment

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

👍

@emyller emyller merged commit 9094867 into main Feb 23, 2026
51 checks passed
@emyller emyller deleted the fix/webhook-data-scheduled-flag-update branch February 23, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webhooks are not triggered for scheduled flags

2 participants