Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Conversation

@RulaKhaled
Copy link
Contributor

Purpose/Motivation

What is the feature? Why is this being done?
Screenshot 2024-11-04 at 6 05 13 PM

Links to relevant tickets

https://github.com/codecov/internal-issues/issues/915

What does this PR do?

Include a brief description of the changes in this PR. Bullet points are your friend.

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.

@RulaKhaled RulaKhaled requested a review from a team as a code owner November 4, 2024 16:30
@codecov
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.24%. Comparing base (f0fcbcc) to head (b35b678).
Report is 6 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #956   +/-   ##
=======================================
  Coverage   96.24%   96.24%           
=======================================
  Files         826      826           
  Lines       19020    19023    +3     
=======================================
+ Hits        18306    18309    +3     
  Misses        714      714           
Flag Coverage Δ
unit 92.49% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 92.49% <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.

@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!

}

def error_formatter(self, error, debug=False):
user = self.request.user
Copy link
Contributor

Choose a reason for hiding this comment

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

if user is a "none" value wouldn't line 306 return a can't access on undefined error?

maybe we could do a self.request.get("user",{})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not really! request.user is automatically populated by the AuthenticationMiddleware middleware, it exists in all requests as an instance of User or AnonymousUser, and fwiw we're not checking for user anywhere else in the view

Copy link
Contributor

Choose a reason for hiding this comment

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

got it! Thanks for clarifying

@RulaKhaled RulaKhaled added this pull request to the merge queue Nov 5, 2024
Merged via the queue into main with commit e8a5caf Nov 5, 2024
18 of 19 checks passed
@RulaKhaled RulaKhaled deleted the fix-erorr-tracing branch November 5, 2024 12:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants