🐛(backend) serialize lazy title in summary payload

_generate_title returned a lazy gettext_lazy proxy in the
recording_datetime is None branch, which json.dumps cannot
serialize.

This crashed requests.post(json=payload) with "Object of type
__proxy__ is not JSON serializable" whenever the LiveKit egress
lookup failed (started_at=None).

Force evaluation with a non-lazy method.

Add a regression test asserting the v2 payload is a real str and
is JSON-serializable when timestamps are unavailable.
The existing without_metadata test missed this: mocked
requests.post never serialized, and a lazy proxy compares equal
to its string.
This commit is contained in:
lebaudantoine
2026-08-05 12:25:33 +02:00
committed by aleb_the_flash
parent bc003f928e
commit 00a2bd9558
3 changed files with 65 additions and 3 deletions
+1
View File
@@ -44,6 +44,7 @@ and this project adheres to
- 🚸(frontend) show two initials in the Avatar when possible
- 🩹(all) clear the SonarCloud reliability finding and the lint debt
- 🐛(frontend) stop the installed app reopening the room it came from
- 🐛(backend) serialize lazy title in summary payload
## [1.24.0] - 2026-07-21