Make DB→Sheets mirror atomic (avoid brief empty-sheet window) #5

Closed
opened 2026-07-16 10:37:37 +02:00 by mivanchenko · 1 comment
Owner

The one-way DB→Sheets mirror currently clears then re-writes each tab, so a reader hitting mid-write can catch a cleared sheet. Harmless for a human overview but worth fixing.

Options: write to a temp/staging range then swap, or use a batch update that replaces values in one call. See backoffice/app/sheets.py / mirror_entity in app.py.

The one-way DB→Sheets mirror currently clears then re-writes each tab, so a reader hitting mid-write can catch a cleared sheet. Harmless for a human overview but worth fixing. **Options:** write to a temp/staging range then swap, or use a batch update that replaces values in one call. See `backoffice/app/sheets.py` / `mirror_entity` in `app.py`.
mivanchenko added the tech-debtcrm labels 2026-07-16 10:37:37 +02:00
mivanchenko added the needs-triage label 2026-07-23 10:31:46 +02:00
mivanchenko added the enhancement label 2026-07-23 10:48:02 +02:00
Author
Owner

This was generated by AI during triage.

Superseded — Google Sheets is being removed entirely to cut the Google dependency, so there is no mirror left to make atomic. See the Sheets-removal issue. Closing.

> *This was generated by AI during triage.* Superseded — Google Sheets is being removed entirely to cut the Google dependency, so there is no mirror left to make atomic. See the Sheets-removal issue. Closing.
Sign in to join this conversation.