OpenSlides/openslides-backend

Create commit protection for migration connection

Aberta

#3.657 aberto em 8 de jul. de 2026

 (0 comentário) (0 reação) (0 responsável)Python (39 forks)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (8 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador