Fix: SQLAlchemy JSON mutation for identity_docs in profile edit #207
Notifications
Total Time Spent: 1 minute
kincses
1 minute
No due date set.
Dependencies
No dependencies set.
Reference: kincses/service-finder#207
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mérföldkő: Profile & Identity Management
Cél: Javítani az identity_docs JSON mező mentését a profil szerkesztésnél, ami az SQLAlchemy in-place JSON mutáció detektálási hiányossága miatt nem mentődött el.
🔗 Függőségek (Dependencies)
📝 Elemzés
A backend PUT /me/person végpontban az identity_docs JSON mező in-place mutációval frissült (dict.update()), amit az SQLAlchemy nem detektált változásként, így a commit során nem került kiírásra az adatbázisba. A javítás: copy.deepcopy() + flag_modified() használata a JSON oszlop explicit módosítás jelzésére. A frontend success üzenet is frissítve, hogy jelezze az okmányok mentését is.
▶️ Munka megkezdve: 2026-06-05 01:26:52
✅ Munka befejezve: 2026-06-05 01:28:09
Technikai Összefoglaló:
Fix: SQLAlchemy JSON mutation for identity_docs. Added copy.deepcopy() + flag_modified() to force SQLAlchemy to detect JSON column changes in PUT /me/person endpoint. Updated frontend success message to mention documents.
⏱️ Az idő rögzítve.