* fix: keep public and restricted views in sync when linked-table changes move rows (#6339)
- Dependency cascades now send rows_deleted / rows_created to publicly shared
and restricted views when a row leaves or enters their filters. The decision
is made inside the transaction, from a before snapshot read under the row lock.
- Only tables with such a view filtering on a field the cascade changes pay for
this. The check is an EXISTS inside the existing snapshot read, so other tables
run the same queries as before and take no extra lock.
- Snapshot reads match ids read from the link tables with id = ANY(ARRAY(...)),
which avoids a full primary key walk. A row the cascade updated before
snapshotting it never gets an enter/leave decision.
- Fields a cascade changes without an UPDATE (link values) are tracked across
the transaction. Views filtering on them are skipped, and those values are
left out of rows_deleted. This replaces the cell_values_come_from_other_tables
field type flag.
- Cascades over the realtime limit also refresh publicly shared and restricted
views (force_view_rows_refresh), not only workspace members.
- On realtime deletes, the client removes rows it already holds by id. When the
payload lacks a value it needs to place an unheld row, it leaves counts as
they are.
- Creating a linked row from a link cell no longer sends a redundant PATCH,
which failed in restricted views.
* test: keep only the essential #6339 tests and trim docstrings
Merge overlapping tests into shared builders and parametrized cases. Keep one
test per behaviour, and keep the exact security assertions. Cut new docstrings
and comments down to the non-obvious why.
* fix: keep a link created from the link-cell modal in the cell (#6339)
Skipping the redundant PATCH also skipped the only local write of the
new link, so a later pick or remove PATCHed a stale list and unlinked
the created row. The link is now applied locally through the same store
path realtime uses; only the PATCH is skipped.
* fix: let a cascade decide only rows nothing else wrote in the transaction (#6339)
A broadcast decided enter and leave from its first snapshot of a row
and cached the result, so another write in the same transaction made
it send rows or values a public or restricted view never showed: a
direct edit after the cascade, a row created or edited before it, the
other rows after close() split the broadcast, or a cascade inside a
savepoint.
The transaction's writes are now tracked per table. At commit, a
broadcast drops every row something else wrote: rows written directly
keep develop's direct-path events, and rows of a savepoint split or of
a bulk write get none. close() is gone.
Also pins the no-lock gate's filters_disabled and changed-link cases.
* chore: shorten the #6339 changelog entry