Skip to content

Add PostHog flag handling and team-dependent re-evaluation logic - #8267

Merged
Steve-Mcl merged 1 commit into
mainfrom
fix/posthog-loading-before-teams
Aug 24, 2026
Merged

Add PostHog flag handling and team-dependent re-evaluation logic#8267
Steve-Mcl merged 1 commit into
mainfrom
fix/posthog-loading-before-teams

Conversation

@cstns

@cstns cstns commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

Fix PostHog stale cache on hard reload when loading feature flags, caused by PostHog being initialized before the team was loaded.

Related Issue(s)

n/a

Checklist

  • I have read the contribution guidelines
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
    • Upgrade instructions
    • Configuration details
    • Concepts
  • Changes flowforge.yml?
    • Issue/PR raised on FlowFuse/helm to update ConfigMap Template
    • Issue/PR raised on FlowFuse/CloudProject to update values for Staging/Production
  • Link to Changelog Entry PR, or note why one is not needed.

Labels

  • Includes a DB migration? -> add the area:migration label

@cstns
cstns requested a review from Steve-Mcl August 24, 2026 19:33
@Steve-Mcl
Steve-Mcl enabled auto-merge (squash) August 24, 2026 19:34
@cstns
cstns deployed to staging August 24, 2026 19:37 — with GitHub Actions Active
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.08%. Comparing base (3081607) to head (528befd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8267   +/-   ##
=======================================
  Coverage   76.08%   76.08%           
=======================================
  Files         445      445           
  Lines       23994    23994           
  Branches     6405     6405           
=======================================
  Hits        18255    18255           
  Misses       5739     5739           
Flag Coverage Δ
backend 76.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@Steve-Mcl
Steve-Mcl merged commit 0dbcac5 into main Aug 24, 2026
36 of 38 checks passed
@Steve-Mcl
Steve-Mcl deleted the fix/posthog-loading-before-teams branch August 24, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants