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: use proper measurement last uploaded #513

Merged
merged 4 commits into from
Apr 23, 2024
Merged

fix: use proper measurement last uploaded #513

merged 4 commits into from
Apr 23, 2024

Conversation

JerrySentry
Copy link
Contributor

Purpose/Motivation

Don't use the aggregated timestamp from the summaries table, instead use the timestamp from the measurements table, this returns the true timestamp of when the last upload was inserted into the timeseries DB.

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 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 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (84638fd) to head (6ae6ddd).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #513   +/-   ##
=======================================
  Coverage   91.44%   91.44%           
=======================================
  Files         599      599           
  Lines       16186    16198   +12     
=======================================
+ Hits        14801    14813   +12     
  Misses       1385     1385           
Flag Coverage Δ
unit 91.44% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.44% <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 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.44%. Comparing base (84638fd) to head (6ae6ddd).

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #513   +/-   ##
=======================================
  Coverage   91.44%   91.44%           
=======================================
  Files         599      599           
  Lines       16186    16198   +12     
=======================================
+ Hits        14801    14813   +12     
  Misses       1385     1385           
Flag Coverage Δ
unit 91.44% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.44% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
graphql_api/actions/components.py 100.00% <100.00%> (ø)
graphql_api/actions/measurements.py 100.00% <100.00%> (ø)
graphql_api/types/repository/repository.py 100.00% <100.00%> (ø)
services/components.py 100.00% <100.00%> (ø)

Impacted file tree graph

@JerrySentry JerrySentry marked this pull request as ready for review April 18, 2024 18:23
@JerrySentry JerrySentry requested a review from a team as a code owner April 18, 2024 18:23
@@ -23,3 +27,18 @@ def component_measurements(
before=before,
branch=branch,
)


def component_measurements_last_uploaded(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: thoughts on adding return types to these fns? would make it a little easier to review for me (as someone not super versed in python syntax lol)

ajay-sentry
ajay-sentry previously approved these changes Apr 22, 2024
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.

lgtm! Just the nit

Copy link

codecov bot commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.77%. Comparing base (84638fd) to head (6ae6ddd).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #513     +/-   ##
=======================================
+ Coverage   95.76   95.77   +0.01     
=======================================
  Files        774     774             
  Lines      17042   17054     +12     
=======================================
+ Hits       16320   16332     +12     
  Misses       722     722             
Flag Coverage Δ
unit 91.44% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 91.44% <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 requested a review from ajay-sentry April 23, 2024 13:58
@JerrySentry JerrySentry added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 2b7993c Apr 23, 2024
21 checks passed
@JerrySentry JerrySentry deleted the apr_18_cot branch April 23, 2024 17:48
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