-
Notifications
You must be signed in to change notification settings - Fork 3.5k
AAP-46087 Adjust the default capacity_adjustment to 0.75 #15989
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
base: devel
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
@@ -160,7 +160,7 @@ def __str__(self): | |||
default=100, | |||
editable=False, | |||
) | |||
capacity_adjustment = models.DecimalField(default=Decimal(1.0), max_digits=3, decimal_places=2, validators=[MinValueValidator(Decimal(0.0))]) | |||
capacity_adjustment = models.DecimalField(default=Decimal(0.75), max_digits=3, decimal_places=2, validators=[MinValueValidator(Decimal(0.0))]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is tracked in migrations
field=models.DecimalField(decimal_places=2, default=Decimal('1'), max_digits=3, validators=[django.core.validators.MinValueValidator(0)]), |
So your change would require adding a new migration file. For temporary administrative reasons you are sure to be unaware of, this is going to be harder than you're thinking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlanCoding thanks for the pointer Alan, let me see if I can create a migration for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AlanCoding I have added a migration file for it.
|
SUMMARY
It basically changes the default capacity_adjustment from 1.0 to 0.75
ISSUE TYPE
COMPONENT NAME