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 29 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 ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Dec 23, 2024 5:52pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Dec 23, 2024 5:52pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Dec 23, 2024 5:52pm

@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-e2e:pr-4840 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-4840 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-4840 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4840 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend: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
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.39%. Comparing base (6d96f9b) to head (6448a70).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4840   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files        1191     1191           
  Lines       41535    41613   +78     
=======================================
+ Hits        40453    40529   +76     
- 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
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 front-end Issue related to the React Front End Dashboard
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