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

Increase the number of decimal places for the AbstractLevelTotals #458

Merged
merged 2 commits into from
May 23, 2024

Conversation

michelletran-codecov
Copy link
Contributor

@michelletran-codecov michelletran-codecov commented May 21, 2024

After the migration to increase the number of decimal places for these tables, we should be able to use them to 5 decimal places. We just need to also update the models used in worker for consistency.

Migration happens in shared: codecov/shared#224

ref: codecov/engineering-team#1614

Diff for the shared update: codecov/shared@codecov:f6c2c3852530192ab0c6b9fd0c0a800c2cbdb16f^^^^^...codecov:ae6e12f3cf43188a6d6fa0156ccb78252d3405a8

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.

@michelletran-codecov michelletran-codecov requested a review from a team May 21, 2024 14:24
@codecov-staging
Copy link

codecov-staging bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #458   +/-   ##
=======================================
  Coverage   97.34%   97.34%           
=======================================
  Files         407      407           
  Lines       33834    33834           
=======================================
  Hits        32936    32936           
  Misses        898      898           
Flag Coverage Δ
integration 97.34% <100.00%> (ø)
latest-uploader-overall 97.34% <100.00%> (ø)
unit 97.34% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 94.57% <100.00%> (ø)
OutsideTasks 97.49% <100.00%> (ø)
Files Coverage Δ
database/models/reports.py 99.40% <100.00%> (ø)

@codecov-qa
Copy link

codecov-qa bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.34%. Comparing base (6482d2b) to head (40b48c2).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #458   +/-   ##
=======================================
  Coverage   97.34%   97.34%           
=======================================
  Files         407      407           
  Lines       33834    33834           
=======================================
  Hits        32936    32936           
  Misses        898      898           
Flag Coverage Δ
integration 97.34% <100.00%> (ø)
latest-uploader-overall 97.34% <100.00%> (ø)
unit 97.34% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 94.57% <100.00%> (ø)
OutsideTasks 97.49% <100.00%> (ø)
Files Coverage Δ
database/models/reports.py 99.40% <100.00%> (ø)

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.37%. Comparing base (6482d2b) to head (40b48c2).

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #458   +/-   ##
=======================================
  Coverage   97.37%   97.37%           
=======================================
  Files         439      439           
  Lines       34589    34589           
=======================================
  Hits        33682    33682           
  Misses        907      907           
Flag Coverage Δ
integration 97.34% <100.00%> (ø)
latest-uploader-overall 97.34% <100.00%> (ø)
unit 97.34% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 94.62% <100.00%> (ø)
OutsideTasks 97.49% <100.00%> (ø)
Files Coverage Δ
database/models/reports.py 99.40% <100.00%> (ø)

This change has been scanned for critical changes. Learn more

Copy link

codecov-public-qa bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.34%. Comparing base (6482d2b) to head (40b48c2).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #458   +/-   ##
=======================================
  Coverage   97.34%   97.34%           
=======================================
  Files         407      407           
  Lines       33834    33834           
=======================================
  Hits        32936    32936           
  Misses        898      898           
Flag Coverage Δ
integration 97.34% <100.00%> (ø)
latest-uploader-overall 97.34% <100.00%> (ø)
unit 97.34% <100.00%> (ø)

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

Components Coverage Δ
NonTestCode 94.57% <100.00%> (ø)
OutsideTasks 97.49% <100.00%> (ø)
Files Coverage Δ
database/models/reports.py 99.40% <100.00%> (ø)

Copy link
Contributor

@adrian-codecov adrian-codecov left a comment

Choose a reason for hiding this comment

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

Lgtm! Just in case, this should be merged after the migrations from this https://github.com/codecov/shared/pull/224/files are applied 👌

After the migration to increase the number of decimal places for these tables,
we should be able to use them to 5 decimal places. We just need to also update the models
used in worker for consistency.
This keeps the models in sync. Both the Django and SQLAlchemy models should use
the same decimal precisions
@michelletran-codecov michelletran-codecov added this pull request to the merge queue May 23, 2024
Merged via the queue into main with commit 420237c May 23, 2024
29 of 30 checks passed
@michelletran-codecov michelletran-codecov deleted the increase_report_decimal_places branch May 23, 2024 18:12
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.

2 participants