Speichere die Postfachkennung als Text, damit eine uebernommene E-Mail in der Akte ankommt.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ad6240a5da
commit
17a3b3a736
4 files changed
+13
-3
No files matched your search
@@ -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"]})
|
||||
|
||||
|
||||
@@ -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"]})
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user