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

@ -0,0 +1,25 @@
# Module imports
from .base import BaseSerializer
from plane.db.models import Estimate, EstimatePoint
class EstimateSerializer(BaseSerializer):
class Meta:
model = Estimate
fields = "__all__"
read_only_fields = [
"workspace",
"project",
]
class EstimatePointSerializer(BaseSerializer):
class Meta:
model = EstimatePoint
fields = "__all__"
read_only_fields = [
"estimate",
"workspace",
"project",
]