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

Update coverage/tree route to parse flags and components filters #503

Merged
merged 33 commits into from
Apr 19, 2024

Conversation

rohitvinnakota-codecov
Copy link
Contributor

@rohitvinnakota-codecov rohitvinnakota-codecov commented Apr 10, 2024

API changes to propagate totals data to the sunburst chart on the front end.

The chart calls the /coverage/tree endpoint, which does not currently filter on flags or components. This change makes it possible for it to do so. We do something similar in commit.py.

There will be a follow up PR on gazebo that passes flags and components as query params.

Example call on staging
Screenshot 2024-04-15 at 2 46 20 PM

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

codecov-notifications bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.43%. Comparing base (c438b69) to head (d005176).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #503   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         599      599           
  Lines       16167    16177   +10     
=======================================
+ Hits        14782    14792   +10     
  Misses       1385     1385           
Flag Coverage Δ
unit 91.43% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.43% <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.

Copy link

codecov-public-qa bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.43%. Comparing base (c438b69) to head (d005176).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #503   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         599      599           
  Lines       16167    16177   +10     
=======================================
+ Hits        14782    14792   +10     
  Misses       1385     1385           
Flag Coverage Δ
unit 91.43% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.43% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
api/internal/coverage/views.py 100.00% <100.00%> (ø)

Impacted file tree graph

Copy link

codecov bot commented Apr 15, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 95.75%. Comparing base (adf7eb1) to head (24f44e5).

✅ All tests successful. No failed tests found ☺️

Files Patch % Lines
api/internal/coverage/views.py 86.66% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #503     +/-   ##
=======================================
- Coverage   95.76   95.75   -0.01     
=======================================
  Files        774     774             
  Lines      17036   17046     +10     
=======================================
+ Hits       16314   16322      +8     
- Misses       722     724      +2     
Flag Coverage Δ
unit 91.42% <86.66%> (-0.01%) ⬇️
unit-latest-uploader 91.42% <86.66%> (-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.

@rohitvinnakota-codecov rohitvinnakota-codecov marked this pull request as ready for review April 16, 2024 19:41
Copy link

@barnett-yuxiang barnett-yuxiang left a comment

Choose a reason for hiding this comment

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

LGTM

]
build_report_from_commit.return_value = sample_report()
res = self._tree(components="Does_not_exist")
assert res.status_code == 404
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also add 1 more test for the flag filtering?

Copy link
Contributor

@ajay-sentry ajay-sentry left a comment

Choose a reason for hiding this comment

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

test comment, logic looks good

Copy link

@barnett-yuxiang barnett-yuxiang left a comment

Choose a reason for hiding this comment

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

good

@rohitvinnakota-codecov rohitvinnakota-codecov merged commit ac76581 into main Apr 19, 2024
19 checks passed
@rohitvinnakota-codecov rohitvinnakota-codecov deleted the rvinnakota/sunburst-fix branch April 19, 2024 14:24
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.

3 participants