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

ref: Add new resolver for ImpactedFiles #183

Merged
merged 10 commits into from
Oct 12, 2023
Merged

ref: Add new resolver for ImpactedFiles #183

merged 10 commits into from
Oct 12, 2023

Conversation

JerrySentry
Copy link
Contributor

@JerrySentry JerrySentry commented Oct 6, 2023

Purpose/Motivation

Make a new resolver for ImpactedFiles with a slight change in logic where if there are no coverage with list of flags provided for filtering it will return an error instead of show all files.

Links to relevant tickets

codecov/engineering-team#641

What does this PR do?

Flags refactoring

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-qa
Copy link

codecov-qa bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (502a283) 95.61% compared to head (a5d9ebb) 95.62%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #183   +/-   ##
=======================================
  Coverage   95.61%   95.62%           
=======================================
  Files         600      600           
  Lines       15183    15210   +27     
=======================================
+ Hits        14517    14544   +27     
  Misses        666      666           
Flag Coverage Δ
unit 95.62% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.62% <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.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 6, 2023

Codecov Report

Merging #183 (a5d9ebb) into main (502a283) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #183   +/-   ##
=======================================
  Coverage   95.61%   95.62%           
=======================================
  Files         600      600           
  Lines       15183    15210   +27     
=======================================
+ Hits        14517    14544   +27     
  Misses        666      666           
Flag Coverage Δ
unit 95.62% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 95.62% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
graphql_api/types/__init__.py 100.00% <100.00%> (ø)
graphql_api/types/comparison/comparison.py 100.00% <100.00%> (ø)
graphql_api/types/impacted_file/__init__.py 100.00% <100.00%> (ø)
graphql_api/types/impacted_file/impacted_file.py 100.00% <100.00%> (ø)

Impacted file tree graph

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #183 (d8b2e8f) into main (502a283) will decrease coverage by 0.01%.
The diff coverage is 90.00%.

❗ Current head d8b2e8f differs from pull request most recent head a5d9ebb. Consider uploading reports for the commit a5d9ebb to get more accurate results

@@           Coverage Diff           @@
##            main    #183     +/-   ##
=======================================
- Coverage   95.51   95.50   -0.01     
=======================================
  Files        714     714             
  Lines      15589   15616     +27     
=======================================
+ Hits       14889   14913     +24     
- Misses       700     703      +3     
Flag Coverage Δ
unit 95.60% <90.00%> (-0.02%) ⬇️
unit-latest-uploader 95.60% <90.00%> (-0.02%) ⬇️

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

Files Coverage Δ
graphql_api/types/__init__.py 100.00% <100.00%> (ø)
graphql_api/types/impacted_file/__init__.py 100.00% <100.00%> (ø)
graphql_api/types/impacted_file/impacted_file.py 100.00% <100.00%> (ø)
graphql_api/types/comparison/comparison.py 97.88% <84.21%> (-2.12%) ⬇️

@JerrySentry JerrySentry changed the title [WIP] ref: Add new resolver for ImpactedFiles ref: Add new resolver for ImpactedFiles Oct 10, 2023
read_file.return_value = mock_data_from_archive

query_impacted_files = """
query ImpactedFilesNew(
Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: if the query is the same bw this and the other filter file, maybe add it to the setup to avoid DRY

@JerrySentry JerrySentry merged commit 4c8d43b into main Oct 12, 2023
10 of 11 checks passed
@JerrySentry JerrySentry deleted the api_641b branch October 12, 2023 10:56
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