Commit Graph
39 Commits
Author SHA1 Message Date
Davide Silvestri ca2f3e1115 fix: keep public and restricted views in sync when linked-table changes move rows (#6339) (#6378)
* 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
2026-10-19 09:39:10 +02:00
dimmur-brw 384aeac0aa fix: prevent link row modal from unlinking newly created rows (#5736) 2026-07-20 12:59:26 +02:00
alamin-br 636691c4d5 fix(web-frontend): correct link row "Add new" create modal behavior (#5481)
* fix(web-frontend): correct link row "Add new" create modal behavior

* chore: add changelog entry for link row create modal fix and simplify logic

* refactor(web-frontend): make null case explicit in URL formula toHumanReadableString

Replace scattered optional chaining with an explicit early return for
null/undefined values, per review feedback on #5481.
2026-06-15 12:57:11 +02:00
Jonathan Adeline 56a4d7f3a1 chore: replace moveToBody with <Teleport /> built-in vue3 component (#4872) 2026-05-19 15:05:00 +04:00
Petr Stříbný 47e71b193a Fix linked row modal checkbox (#5148) 2026-04-08 13:21:26 +02:00
Bram c264f91085 feat (View level permissions): Default view values (#5058) 2026-04-03 12:15:26 +02:00
dimmur-brw 5902f37478 Fix field options on select related row modal (#4755) 2026-02-15 19:18:42 +01:00
716d43a9a8 Nuxt 3 migration (#4342)
Update the nuxt3 version.

Co-authored-by: Jonathan Adeline <jonathan@baserow.io>
Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
Co-authored-by: Cezary <cezary@baserow.io>
Co-authored-by: Tsering Paljor <tsering@baserow.io>
Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io>
Co-authored-by: Bram <bram2w@users.noreply.github.com>
2026-01-22 10:27:19 +01:00
Tsering Paljor b72005ccde Fix crash when creating a new row in Data Source modal 2024-12-12 11:28:48 +00:00
Bram Wiepjes 63ed4edd88 Select row modal field width, order, and visibility configuration 2024-11-28 09:02:24 +00:00
Davide Silvestri 544e2e78c4 Resolve "Use full text search when searching for related rows" 2024-11-13 11:33:14 +00:00
Petr Stribny 9b55869285 Fix displaying newly created linked row 2024-09-02 11:50:36 +00:00
Petr Stribny 3839bcd5d6 Automatically prefill reverse relationship when creating new related row 2024-08-21 15:37:01 +00:00
Bram Wiepjes 265ea68472 Fix pagination loading animation in the row select modal. 2024-08-07 13:59:51 +02:00
Bram Wiepjes 792e9d031d Arrow key navigation in row select modal 2024-07-25 13:14:50 +00:00
Bram Wiepjes 7028fa24cc Resolve "Allow selecting multiple rows via the row select modal" 2024-07-19 11:27:52 +00:00
Bram Wiepjes c0b5feeee2 Resolve "Type-to-complete / enter-to-select value in Link to table fields" 2024-07-17 18:24:35 +00:00
Bram Wiepjes dfc5000045 Filter on link row selection 2024-07-09 15:05:11 +00:00
Bram Wiepjes 1298aa7eec AI field 2024-04-02 19:50:44 +00:00
Jonathan Adeline 0d68d7891e Minor UI fixings 2024-01-10 05:31:37 +00:00
Jonathan Adeline 98f14aae60 Refactor pagination 2024-01-08 06:53:42 +00:00
Jonathan Adeline 4321aaea9a Replace icons 2023-09-28 13:39:41 +00:00
Bram Wiepjes 3e1affb8f6 Resolve "Traditional (non-native) CMD/CTRL + F search doesn't work on dashboard" 2023-09-25 12:10:21 +00:00
Nigel Gott 5e8121fac9 1️⃣🪣 Final Group By metadata MR 2023-09-21 14:03:57 +00:00
Petr Stribny 9f93f4183e Implement Ctrl+F search for table views 2023-07-26 09:19:16 +00:00
Bram Wiepjes ef78dbc587 Moved the permissions and roles store to the groups store 2022-11-02 11:55:27 +00:00
Jrmi 3c16f5a582 Refactor simple grid component to make it fit to the selectRowModal uses 2022-09-21 12:02:51 +00:00
Bram Wiepjes 9ecff6566a Made some minor changes and bug fixes to the row select modal 2022-09-06 13:14:06 +00:00
Alexander Haller 2439a5c0df Resolve "Use the field ordering of the first view in the row select modal" 2022-08-30 13:24:17 +00:00
Alexander Haller 289139083c Resolve "Create new row via the row select modal" 2022-08-27 12:41:40 +00:00
Alexander Haller 601b1ddce7 Resolve "Searching for linked rows in the SelectRowModal should be instant instead of needing Enter to be pressed" 2022-08-24 17:09:28 +00:00
Josh Soref 02ab31c8aa Spelling 2022-07-29 09:12:43 +00:00
davide adf13295c4 Resolve #781: Web frontend fails when clicking add button too fast 2022-02-23 13:10:48 +00:00
Bram Wiepjes 20c700cb33 Resolve "Prepare for translation management tool" 2022-01-26 16:04:13 +00:00
Ricky Romero 218a2a48c2 Focus search when linking a table row 2022-01-10 21:42:02 +00:00
Bram Wiepjes 4a21f4c846 Row and field translations 2021-10-27 11:00:57 +00:00
Nigel Gott 06bc49f142 Resolve "Admin user management" 2021-05-10 17:23:55 +00:00
Bram Wiepjes 4a47f21551 Resolve "User reports that a table is slow having 21 columns" 2021-03-09 20:53:39 +00:00
Bram Wiepjes fe31605fef Resolve "Foreignkey field / connecting rows" 2020-08-28 09:48:37 +00:00