Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Speed up identity overrides #4840

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

zachaysan
Copy link
Contributor

Changes

This changes the way that identity overrides are requested for the features page in two ways. First, instead of the entire document getting paginated and returned to the client, only one page per feature is returned. Second, instead of every feature being returned in the network call, we only serve up the features for the current page.

How did you test this code?

I've written one new test, although I'm awaiting codecov to let me know where else needs testing, since I'm sure some are missing.

@zachaysan zachaysan requested a review from a team as a code owner November 18, 2024 14:17
@zachaysan zachaysan requested review from khvn26 and removed request for a team November 18, 2024 14:17
Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 8:32pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 8:32pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 8:32pm

@github-actions github-actions bot added api Issue related to the REST API fix labels Nov 18, 2024
Copy link
Contributor

github-actions bot commented Nov 18, 2024

Docker builds report

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

Copy link
Contributor

github-actions bot commented Nov 18, 2024

Uffizzi Ephemeral Environment deployment-58917

☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/4840

📄 View Application Logs etc.

What is Uffizzi? Learn more!

Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

Added a bunch of questions + not sure if the original issue is actually solved by this.

@github-actions github-actions bot added fix and removed fix labels Nov 18, 2024
@github-actions github-actions bot added fix and removed fix labels Nov 19, 2024
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.38%. Comparing base (05ab7cf) to head (b151941).
Report is 14 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #4840    +/-   ##
========================================
  Coverage   97.38%   97.38%            
========================================
  Files        1189     1189            
  Lines       41420    41531   +111     
========================================
+ Hits        40338    40447   +109     
- Misses       1082     1084     +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added fix and removed fix labels Nov 19, 2024
@zachaysan zachaysan requested a review from khvn26 November 19, 2024 19:50
@github-actions github-actions bot added fix and removed fix labels Dec 3, 2024
@github-actions github-actions bot added fix and removed fix labels Dec 6, 2024
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.

Identity override count retrieval is slow for large numbers of overrides
3 participants