Skip to content

Commit

Permalink
fix: removed requirement to specify a comment in assessments
Browse files Browse the repository at this point in the history
  • Loading branch information
dervoeti committed Nov 26, 2024
1 parent ee0b42d commit 27bee3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/application/core/api/serializers_observation.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ class ObservationAssessmentSerializer(Serializer):


class ObservationRemoveAssessmentSerializer(Serializer):
comment = CharField(max_length=4096, required=True)
comment = CharField(max_length=4096, required=False)


class ObservationBulkDeleteSerializer(Serializer):
Expand All @@ -519,7 +519,7 @@ class ObservationBulkDeleteSerializer(Serializer):
class ObservationBulkAssessmentSerializer(Serializer):
severity = ChoiceField(choices=Severity.SEVERITY_CHOICES, required=False)
status = ChoiceField(choices=Status.STATUS_CHOICES, required=False)
comment = CharField(max_length=4096, required=True)
comment = CharField(max_length=4096, required=False)
observations = ListField(
child=IntegerField(min_value=1), min_length=0, max_length=10000, required=True
)
Expand Down

0 comments on commit 27bee3d

Please sign in to comment.