Skip to content

fix(API Usage): Update subscription cache from database-backed usage#7024

Merged
emyller merged 7 commits intomainfrom
fix/missing-api-calls-30d
Mar 24, 2026
Merged

fix(API Usage): Update subscription cache from database-backed usage#7024
emyller merged 7 commits intomainfrom
fix/missing-api-calls-30d

Conversation

@emyller
Copy link
Contributor

@emyller emyller commented Mar 24, 2026

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://github.com/Flagsmith/infrastructure/issues/334

Update subscription cache from database-backed analytics.

How did you test this code?

Unit tests.

@emyller emyller self-assigned this Mar 24, 2026
@vercel
Copy link

vercel bot commented Mar 24, 2026

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

3 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Mar 24, 2026 4:09pm
flagsmith-frontend-preview Ignored Ignored Preview Mar 24, 2026 4:09pm
flagsmith-frontend-staging Ignored Ignored Preview Mar 24, 2026 4:09pm

Request Review

@github-actions github-actions bot added the api Issue related to the REST API label Mar 24, 2026
@emyller emyller changed the title Update subscription cache from database-backed usage fix(API Usage): Update subscription cache from database-backed usage Mar 24, 2026
@codecov
Copy link

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.33%. Comparing base (94780fe) to head (708fe6a).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7024      +/-   ##
==========================================
+ Coverage   98.32%   98.33%   +0.01%     
==========================================
  Files        1335     1337       +2     
  Lines       49850    50010     +160     
==========================================
+ Hits        49013    49178     +165     
+ Misses        837      832       -5     

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

matthewelwell
matthewelwell previously approved these changes Mar 24, 2026
@github-actions github-actions bot added the fix label Mar 24, 2026
@emyller emyller marked this pull request as ready for review March 24, 2026 14:25
@emyller emyller requested a review from a team as a code owner March 24, 2026 14:25
@emyller emyller requested review from Zaimwa9 and removed request for a team March 24, 2026 14:25
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.

@github-actions github-actions bot added fix and removed fix labels Mar 24, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2026

Docker builds report

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2026

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  42.6 seconds
commit  970afd9
info  🔄 Run: #15450 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  49 seconds
commit  970afd9
info  🔄 Run: #15450 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  45.9 seconds
commit  970afd9
info  🔄 Run: #15450 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  59.9 seconds
commit  970afd9
info  🔄 Run: #15450 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  46.3 seconds
commit  c4b4ec3
info  🔄 Run: #15455 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  42.6 seconds
commit  7c98fc9
info  🔄 Run: #15456 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  49.6 seconds
commit  7c98fc9
info  🔄 Run: #15456 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  11.2 seconds
commit  c4b4ec3
info  🔄 Run: #15455 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  44.1 seconds
commit  c4b4ec3
info  🔄 Run: #15455 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  1 minute, 1 second
commit  c4b4ec3
info  🔄 Run: #15455 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  24.2 seconds
commit  48f96d9
info  🔄 Run: #15460 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  53 seconds
commit  48f96d9
info  🔄 Run: #15460 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  43.3 seconds
commit  48f96d9
info  🔄 Run: #15460 (attempt 1)

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

passed  2 passed

Details

stats  2 tests across 2 suites
duration  1 minute, 15 seconds
commit  48f96d9
info  🔄 Run: #15460 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  43.6 seconds
commit  708fe6a
info  🔄 Run: #15464 (attempt 1)

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

passed  10 passed

Details

stats  10 tests across 7 suites
duration  45 seconds
commit  708fe6a
info  🔄 Run: #15464 (attempt 1)

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

passed  3 passed

Details

stats  3 tests across 3 suites
duration  46.4 seconds
commit  708fe6a
info  🔄 Run: #15464 (attempt 1)

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

passed  1 passed

Details

stats  1 test across 1 suite
duration  52.3 seconds
commit  708fe6a
info  🔄 Run: #15464 (attempt 1)

@github-actions github-actions bot added fix and removed fix labels Mar 24, 2026
@emyller emyller force-pushed the fix/missing-api-calls-30d branch from 7c98fc9 to 48f96d9 Compare March 24, 2026 15:49
@github-actions github-actions bot added fix and removed fix labels Mar 24, 2026
Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

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

1 minor comment remaining.

Co-authored-by: Matthew Elwell <matthew.elwell@flagsmith.com>
@github-actions github-actions bot added fix and removed fix labels Mar 24, 2026
@emyller emyller merged commit b018bfb into main Mar 24, 2026
33 checks passed
@emyller emyller deleted the fix/missing-api-calls-30d branch March 24, 2026 16:16
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.

2 participants