Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TP2000-1259 Fix field overflow error #1186

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

paulpepper-trade
Copy link
Collaborator

@paulpepper-trade paulpepper-trade commented Mar 21, 2024

TP2000-1259 Fix field overflow error

Why

An attempt to apply a value of 113.900 to TrackedModelCheck.processing_time defined as DecimalField(null=True, decimal_places=4, max_digits=6) is causing a database field overflow error.

Credit to @dalecannon for identifying the cause of this issue.

What

Alter TrackedModelCheck.processing_time from a DecimalField to FloatField.

Checklist

  • Requires migrations? Yes
  • Requires dependency updates? No

@paulpepper-trade paulpepper-trade force-pushed the TP2000-1259--field-overflow-error branch from 23d6e1a to 31b12e3 Compare March 21, 2024 18:30
@paulpepper-trade paulpepper-trade force-pushed the TP2000-1259--field-overflow-error branch from 31b12e3 to e540137 Compare March 21, 2024 18:36
@paulpepper-trade paulpepper-trade marked this pull request as ready for review March 21, 2024 18:37
@paulpepper-trade paulpepper-trade requested a review from a team as a code owner March 21, 2024 18:37
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.11%. Comparing base (91275a4) to head (e540137).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1186      +/-   ##
==========================================
- Coverage   93.11%   93.11%   -0.01%     
==========================================
  Files         582      582              
  Lines       44041    44041              
  Branches     3181     3181              
==========================================
- Hits        41009    41007       -2     
- Misses       2415     2416       +1     
- Partials      617      618       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@paulpepper-trade paulpepper-trade merged commit 7ca6977 into master Mar 22, 2024
7 checks passed
@paulpepper-trade paulpepper-trade deleted the TP2000-1259--field-overflow-error branch March 22, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants