OpenSlides/openslides-backend

Create commit protection for migration connection

開放

#3,657 建立於 2026年7月8日

 (0 則留言) (0 個反應) (0 位負責人)Python (39 個分叉)auto 404
enhancementgood first issue

倉庫指標

星標
 (8 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Currently if a dev was to commit on the connection stored in the cursor it could potentially damage data. To prevent that my idea is to subclass the psycopg connection/cursor and pass this object to the migration functions. This subclassed connection/cursor could then prevent any commit or retrieval of the connection.

貢獻者指南