Skip to content

Conversation

@JoshFerge
Copy link
Member

Summary

Change filter to use project_id instead of project since the model has a project_id field, not a project ForeignKey field.

Changes

  • Update UserOption.unset_value() to use project_id in filter query
  • Add proper type conversion for project parameter

Test plan

  • Existing tests pass
  • Mypy type checking passes

Change filter to use project_id instead of project since the model has a
project_id field, not a project ForeignKey field.
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 10, 2025
@codecov
Copy link

codecov bot commented Nov 10, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/users/models/user_option.py 0.00% 2 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103017      +/-   ##
===========================================
- Coverage   80.75%    80.64%   -0.11%     
===========================================
  Files        9145      9140       -5     
  Lines      395020    392794    -2226     
  Branches    24968     24968              
===========================================
- Hits       319002    316778    -2224     
+ Misses      75617     75615       -2     
  Partials      401       401              

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants