Skip to content

ref: have models.User extend Model instead of BaseModel - #72967

Merged
asottile-sentry merged 1 commit into
masterfrom
asottile-user-from-model-not-base-model
Jun 20, 2024
Merged

asottile-sentry merged 1 commit into
masterfrom
asottile-user-from-model-not-base-model

Conversation

@asottile-sentry

Copy link
Copy Markdown
Contributor

most of our db helpers expected .id to be a Field[int, int] and use Model as the type for that

no migration was generated so I believe this to be a fancy noop

@asottile-sentry
asottile-sentry requested review from a team June 18, 2024 20:02
@asottile-sentry
asottile-sentry requested a review from a team as a code owner June 18, 2024 20:02
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 18, 2024
most of our db helpers expected .id to be a Field[int, int] and use Model as the type for that
@codecov

codecov Bot commented Jun 18, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.05%. Comparing base (4cdd6f9) to head (b3aa840).
Report is 18 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #72967   +/-   ##
=======================================
  Coverage   78.05%   78.05%           
=======================================
  Files        6610     6610           
  Lines      294851   294866   +15     
  Branches    50811    50817    +6     
=======================================
+ Hits       230144   230159   +15     
+ Misses      58369    58367    -2     
- Partials     6338     6340    +2     
Files Coverage Δ
src/sentry/api/bases/user.py 85.39% <100.00%> (ø)
src/sentry/api/endpoints/api_tokens.py 100.00% <100.00%> (ø)
src/sentry/models/user.py 90.39% <100.00%> (-0.04%) ⬇️
src/sentry/tasks/summaries/weekly_reports.py 85.86% <100.00%> (ø)

... and 8 files with indirect coverage changes

@markstory markstory left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No migration makes sense to me as there weren't any relevant changes to django model state or the schema.

@asottile-sentry
asottile-sentry merged commit 5d711ca into master Jun 20, 2024
@asottile-sentry
asottile-sentry deleted the asottile-user-from-model-not-base-model branch June 20, 2024 13:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2024

This branch was successfully deployed

1 active deployment
Preview — b3aa8402 Deployed Jun 18, 2024 by vercel[bot]
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.

2 participants