Skip to content

Commit 1297c06

Browse files
committed
feat: enlarge Observation description to 4096 characters
1 parent b5f66ba commit 1297c06

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 6.0.4 on 2026-05-06 11:50
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('core', '0084_merge_20260407_1152'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='observation',
15+
name='description',
16+
field=models.TextField(blank=True, max_length=4096),
17+
),
18+
]

backend/application/core/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ class Observation(Model):
248248
branch = ForeignKey(Branch, on_delete=CASCADE, null=True)
249249
parser = ForeignKey("import_observations.Parser", on_delete=PROTECT)
250250
title = CharField(max_length=255)
251-
description = TextField(max_length=2048, blank=True)
251+
description = TextField(max_length=4096, blank=True)
252252
recommendation = TextField(max_length=2048, blank=True)
253253

254254
current_severity = CharField(max_length=12, choices=Severity.SEVERITY_CHOICES)

frontend/src/core/observations/ObservationCreate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const ObservationCreate = ({ id, risk_acceptance_expiry_date_calculated }: Obser
155155
setValue={setDescription}
156156
label="Description"
157157
overlayContainer={dialogRef.current ?? null}
158-
maxLength={2048}
158+
maxLength={4096}
159159
/>
160160
<MarkdownEdit
161161
initialValue=""

frontend/src/core/observations/ObservationEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const ObservationEditForm = ({ setDescription, setRecommendation }: ObservationE
130130
initialValue={observation ? observation.description : ""}
131131
setValue={setDescription}
132132
label="Description"
133-
maxLength={2048}
133+
maxLength={4096}
134134
/>
135135
<MarkdownEdit
136136
initialValue={observation ? observation.recommendation : ""}

0 commit comments

Comments
 (0)