Skip to content

fix(grid): purge deleted rows and sanitize kNullSentinel on Save in staging buffer (#884) - #960

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/884-staging-purge-deleted-null-sentinel
Sep 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
issue/884-staging-purge-deleted-null-sentinel

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Описание изменений

  • Добавлен DataGridStagingBuffer.committedRows: baseline после сохранения без удалённых строк и с 'NULL' вместо kNullSentinel.
  • Все 6 мест пост-save (table view и SQL workspace для Postgres/MySQL/SQLite) переключены с effectiveRows на committedRows.
  • effectiveRows намеренно не исключает удалённые строки: индексы должны совпадать с гридом, где такие строки рисуются зачёркнутыми. Зато теперь он тоже маппит sentinel в 'NULL'.
  • Тесты: data_grid_staging_buffer_test, table_view_staging_test.

Связанные Issue

Closes #884

Тесты локально не запускались (есть CI), dart analyze чистый.

…n staging buffer (Closes #884)

After a successful Save the new baseline was built from effectiveRows, which
kept rows marked for deletion and leaked the raw NULL sentinel into cells.

Add DataGridStagingBuffer.committedRows (deleted baseline rows dropped, staged
NULLs mapped to 'NULL') and use it as the post-save baseline in the
Postgres/MySQL/SQLite table views and SQL workspaces. effectiveRows keeps row
indices aligned with the grid for struck-through rendering but now also maps
the sentinel to 'NULL'.
@github-actions github-actions Bot added bug Something isn't working frontend Theme parser epic label: frontend stability Theme parser epic label: stability labels Sep 25, 2026
@github-actions github-actions Bot added this to the 0.4.18 milestone Sep 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 20649b3 into dev Sep 25, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/884-staging-purge-deleted-null-sentinel branch September 28, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Theme parser epic label: frontend stability Theme parser epic label: stability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant