feat: issue estimations (#696)

* dev: initialize estimation

* dev: issue estimation field in issues and project settings

* dev: update issue estimation logic
This commit is contained in:
pablohashescobar 2023-04-05 00:19:53 +05:30 committed by GitHub
parent 97386e9d07
commit cc07e2790d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 282 additions and 0 deletions

View file

@ -8,6 +8,7 @@ from django.conf import settings
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.utils import timezone
from django.core.validators import MinValueValidator, MaxValueValidator
from django.core.exceptions import ValidationError
# Module imports
@ -37,6 +38,9 @@ class Issue(ProjectBaseModel):
blank=True,
related_name="state_issue",
)
estimate_point = models.IntegerField(
default=0, validators=[MinValueValidator(0), MaxValueValidator(7)]
)
name = models.CharField(max_length=255, verbose_name="Issue Name")
description = models.JSONField(blank=True, default=dict)
description_html = models.TextField(blank=True, default="<p></p>")