Skip to content

Conversation

@JoshFerge
Copy link
Member

Summary

Remove unnecessary select_related("detector") and add type: ignore for detector_id annotation which collides with the existing model field name but is needed for the grouped query result.

Changes

  • Remove .select_related("detector") which is not needed after .values()
  • Add # type: ignore[no-redef] for unavoidable annotation name collision

Test plan

  • Existing tests pass
  • Mypy type checking passes

Remove unnecessary select_related("detector") and add type: ignore for
detector_id annotation which collides with the existing model field name
but is needed for the grouped query result.
@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

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

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #103020      +/-   ##
===========================================
- Coverage   80.75%    80.64%   -0.11%     
===========================================
  Files        9145      9140       -5     
  Lines      395020    392793    -2227     
  Branches    24968     24968              
===========================================
- Hits       319002    316785    -2217     
+ Misses      75617     75607      -10     
  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