Speichere die Postfachkennung als Text, damit eine uebernommene E-Mail in der Akte ankommt.
Deploy Development / deploy (push) Successful in 26s
Test Suite / pytest-backend (push) Successful in 1m18s
Test Suite / smoke-dev (push) Successful in 0s
Test Suite / frontend-build (push) Successful in 8s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-10-17 18:43:51 +02:00
1 parent ad6240a5da
commit 17a3b3a736
4 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -979,7 +979,7 @@ def post_external(body: ExternalIn, principal: Principal = Depends(get_principal
body.dates.document_on,
body.dates.sent_on,
body.dates.received_on,
body.detail.model_dump(exclude_none=True) if body.detail else None,
body.detail.model_dump(mode="json", exclude_none=True) if body.detail else None,
)
return _created(f"/api/v1/elements/{element['id']}", {"id": str(element["id"]), "title": element["title"]})
+1 -1
View File
@@ -172,7 +172,7 @@ def link_source(body: ExternalIn, principal: Principal = Depends(get_principal),
body.dates.document_on,
body.dates.sent_on,
body.dates.received_on,
body.detail.model_dump(exclude_none=True) if body.detail else None,
body.detail.model_dump(mode="json", exclude_none=True) if body.detail else None,
)
return _created(f"/api/v1/elements/{element['id']}", {"id": str(element["id"]), "title": element["title"]})
+4
View File
@@ -61,6 +61,8 @@ def test_dates_do_not_invent_a_direction_and_explicit_choice_survives(client, db
"direction": "in",
"message_from": "Hausverwaltung Mueller",
"mailbox": "INBOX",
"connector_id": "6f0b6a2e-1c4d-4b8a-9e2f-0a1b2c3d4e5f",
"uid": 17,
},
},
status=201,
@@ -76,6 +78,8 @@ def test_dates_do_not_invent_a_direction_and_explicit_choice_survives(client, db
assert _binding(shown, "Scan ohne Richtung")["communication"]["direction"] is None
mail = _binding(shown, "Mail der Verwaltung")
assert mail["communication"] == {"direction": "in", "explicit": True}
assert mail["element"]["external"]["detail"]["connector_id"] == "6f0b6a2e-1c4d-4b8a-9e2f-0a1b2c3d4e5f"
assert mail["element"]["external"]["detail"]["uid"] == 17
ada.request(
"PATCH",