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

feat: Start populating report_type column #296

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

scott-codecov
Copy link
Contributor

Purpose/Motivation

Follow up from #287

Links to relevant tickets

N/A

What does this PR do?

Starts populating the report_type column when we create new commit reports or query for existing commit reports (as part of upload).

@codecov-qa
Copy link

codecov-qa bot commented Dec 6, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (58affc8) 95.65% compared to head (fa61b58) 95.64%.

Files Patch % Lines
upload/views/base.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #296      +/-   ##
==========================================
- Coverage   95.65%   95.64%   -0.01%     
==========================================
  Files         612      612              
  Lines       15734    15743       +9     
==========================================
+ Hits        15050    15058       +8     
- Misses        684      685       +1     
Flag Coverage Δ
unit 95.64% <93.75%> (-0.01%) ⬇️
unit-latest-uploader 95.64% <93.75%> (-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 Dec 6, 2023

Codecov Report

Merging #296 (fa61b58) into main (58affc8) will decrease coverage by 0.01%.
The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #296      +/-   ##
==========================================
- Coverage   95.65%   95.64%   -0.01%     
==========================================
  Files         612      612              
  Lines       15734    15743       +9     
==========================================
+ Hits        15050    15058       +8     
- Misses        684      685       +1     
Flag Coverage Δ
unit 95.64% <93.75%> (-0.01%) ⬇️
unit-latest-uploader 95.64% <93.75%> (-0.01%) ⬇️

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

Files Coverage Δ
upload/serializers.py 100.00% <100.00%> (ø)
upload/views/reports.py 100.00% <100.00%> (ø)
upload/views/base.py 98.00% <90.90%> (-2.00%) ⬇️

Impacted file tree graph

if report_type == CommitReport.ReportType.COVERAGE:
queryset = queryset.coverage_reports()
else:
queryset = queryset.filter(report_type=report_type)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be tested when I implement the upload endpoint for bundle analysis

@scott-codecov scott-codecov merged commit 4c37b27 into main Dec 7, 2023
24 of 30 checks passed
@scott-codecov scott-codecov deleted the scott/populate-report-type branch December 7, 2023 17:21
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

4 participants