Skip to content

fix(Change requests): Refresh counts once an approve or publish succeeds - #8922

Closed
talissoncosta wants to merge 1 commit into
mainfrom
fix/change-request-action-refresh-8774
Closed

talissoncosta wants to merge 1 commit into
mainfrom
fix/change-request-action-refresh-8774

Conversation

@talissoncosta

Copy link
Copy Markdown
Contributor
  • 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 #8774

After approving or publishing a change request, the sidebar counts and feature values only refreshed once a follow-up request for the change request succeeded. That request's promise wasn't returned, so if it failed, the change was published on the server but the page stayed faded, showed no error, and the counts stayed stale until a reload.

Now the refresh runs as soon as the approve or publish succeeds, and a failed follow-up request shows an error instead of hanging.

The proper fix is moving the change request detail page onto RTK Query, like project change requests; that's a separate follow-up.

How did you test this code?

Locally, with the follow-up GET forced to fail (500) right after publishing:

  • Before: counts stuck, page stuck faded, no error, uncaught promise error in the console.
  • After: counts and feature values refresh, the page stops loading and shows an error.

The refresh only ran after re-reading the change request, and that
promise was not returned, so a failed re-read left stale counts, a
page stuck loading and no error.

Contributes to #8774

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 9, 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 9, 2026 7:27pm UTC
flagsmith-frontend-staging Ready Ready Preview Nov 9, 2026 7:27pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
docs Ignored Ignored Nov 9, 2026 7:27pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • 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

@talissoncosta

Copy link
Copy Markdown
Contributor Author

Superseded by #8923, which removes the store this patches.

@talissoncosta
talissoncosta deleted the fix/change-request-action-refresh-8774 branch November 9, 2026 20:35

This branch was successfully deployed

2 active deployments
Preview – flagsmith-frontend-preview — a6eb9e84 Deployed Nov 9, 2026 by vercel[bot]
Preview – flagsmith-frontend-staging — a6eb9e84 Deployed Nov 9, 2026 by vercel[bot]
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.

1 participant