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: Add guard when no update timestamp on pull #790

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

ajay-sentry
Copy link
Contributor

@ajay-sentry ajay-sentry commented Sep 3, 2024

Purpose/Motivation

Closes these sentry issues: https://codecov.sentry.io/issues/?environment=production&environment=dd&environment=enova&environment=epic&environment=roblox&environment=snowflake&project=5514400&project=5215654&query=is%3Aunresolved+issue.priority%3A%5Bhigh%2C+medium%5D+unsupported+operand+type%28s%29&referrer=issue-list&statsPeriod=7d

When a user doesn't have an updatedstamp on their pull being compared, we just error the page, leading to a bad experience for the users. This PR just adds a guard when that's the case so we return "false"

Closes codecov/engineering-team#2477

Notes to Reviewer

Anything to note to the team? Any tips on how to review, or where to start?

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!

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.14%. Comparing base (b08bc0c) to head (429f88e).
Report is 4 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##               main       #790   +/-   ##
===========================================
  Coverage   96.14000   96.14000           
===========================================
  Files           812        812           
  Lines         18486      18490    +4     
===========================================
+ Hits          17773      17777    +4     
  Misses          713        713           
Flag Coverage Δ
unit 91.98% <ø> (ø)
unit-latest-uploader 91.98% <ø> (ø)

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.

@ajay-sentry ajay-sentry added this pull request to the merge queue Sep 4, 2024
Merged via the queue into main with commit bb73f9f Sep 4, 2024
17 of 18 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/fix-when-fetching-pull-with-no-update branch September 4, 2024 16:14
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.

Fix unhandled case where pull has no updatestamp when fetching pulls
2 participants