Skip to content

Conversation

@tobias-wilfert
Copy link
Member

Since there might be some credentials in the DB of orgs that don't have access ATM we need to check for that.

@tobias-wilfert tobias-wilfert self-assigned this Sep 9, 2025
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 9, 2025
@codecov
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #99101   +/-   ##
=======================================
  Coverage   81.21%   81.21%           
=======================================
  Files        8584     8584           
  Lines      380166   380169    +3     
  Branches    24106    24106           
=======================================
+ Hits       308747   308754    +7     
+ Misses      71073    71069    -4     
  Partials      346      346           

@patch("sentry.tempest.tasks.poll_tempest_crashes")
def test_poll_tempest_no_latest_id(
self, mock_poll_crashes: MagicMock, mock_fetch_latest: MagicMock
self, mock_poll_crashes: MagicMock, mock_fetch_latest: MagicMock, mock_has_access: MagicMock
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Mock Parameter Order Mismatch

The parameter order in test methods using multiple @patch decorators is reversed. Python applies patch decorators from bottom to top, so the outermost decorator's mock object (e.g., mock_has_access) should be the first parameter. This mismatch causes incorrect mock assignments and test configurations.

Additional Locations (2)

Fix in Cursor Fix in Web

@tobias-wilfert tobias-wilfert merged commit d325053 into master Sep 16, 2025
64 checks passed
@tobias-wilfert tobias-wilfert deleted the tobias-wilfert/fix/only-use-credentials-if-org-has-acess branch September 16, 2025 09:24
@github-actions github-actions bot locked and limited conversation to collaborators Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants