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: speedup flag filtering in GraphQL API #223

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Nov 1, 2023

Purpose/Motivation

What is the feature? Why is this being done?

Speed up filtering by flags in GraphQL endpoints by rewriting the search function to be able to compute faster on average.
Change it to exit each of the nested for loops quicker by not going through the entire iterator.

Links to relevant tickets

codecov/engineering-team#691

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@codecov-staging
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

Copy link

codecov-public-qa bot commented Nov 1, 2023

Codecov Report

Merging #223 (5f03f2d) into main (6462963) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #223   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files         602      602           
  Lines       15291    15304   +13     
=======================================
+ Hits        14619    14632   +13     
  Misses        672      672           
Flag Coverage Δ
unit 95.60% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.60% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
services/report.py 96.49% <100.00%> (+0.45%) ⬆️

Impacted file tree graph

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #223 (5f03f2d) into main (6462963) will not change coverage.
The diff coverage is 100.00%.

@@          Coverage Diff          @@
##            main    #223   +/-   ##
=====================================
  Coverage   95.51   95.51           
=====================================
  Files        716     716           
  Lines      15697   15710   +13     
=====================================
+ Hits       14992   15005   +13     
  Misses       705     705           
Flag Coverage Δ
unit 95.60% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.60% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
services/report.py 96.49% <100.00%> (+0.45%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Nov 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6462963) 95.60% compared to head (5f03f2d) 95.60%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #223   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files         602      602           
  Lines       15291    15304   +13     
=======================================
+ Hits        14619    14632   +13     
  Misses        672      672           
Flag Coverage Δ
unit 95.60% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.60% <100.00%> (+<0.01%) ⬆️

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

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

@JerrySentry JerrySentry merged commit 7c1a3d4 into main Nov 2, 2023
19 of 20 checks passed
@JerrySentry JerrySentry deleted the api_691_gql branch November 2, 2023 00:22
scott-codecov added a commit that referenced this pull request Nov 6, 2023
* main:
  Test ats run (#229)
  Release 23.11.2 (#228)
  feat: Add comparison endpoint for impacted files (#212)
  Update shared version (#226)
  feat: add a filter for public/private repo filter for viewableRepositories (#224)
  fix: speedup flag filtering in GraphQL API (#223)
  fix: Disable early notify comment (#219)
  Add 'value' key to the plan representation resolver  (#216)
  713 adjust available plans in plan service (#214)
  feat: Allow upload requests originating from Shelter to set storage path (#172)
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.

None yet

2 participants