Commit Graph
45 Commits
Author SHA1 Message Date
Davide Silvestri 2052bcf176 fix: don't report a row fetch cancelled by a gallery or timeline refresh (#7016)
A search or filter change refreshes the view and cancels the pending
fetch of newly visible rows. The fetch threw RefreshCancelledError, but
the gallery and timeline views dispatch it without awaiting, so it was
reported as an unhandled rejection (BASEROW-SAAS-WEB-FRONTEND-7T). The
refresh loads the visible rows itself, so the cancelled fetch now just
returns.
2026-12-02 16:18:53 +01:00
alamin-br e53694bfec fix: cap the page size of view row listings (#6489)
* fix(backend): cap page size on view row listings and the agents list

Grid, gallery and timeline row listings (including public views) and the agents
list accepted any page size, so one request could serialize a whole table.
Kanban limit/offset now reject negative values instead of erroring.

* fix(frontend): keep view row requests within the row page size limit

Grouped grid ranges can span collapsed groups and exceed the limit the backend
now enforces, so grid requests are split into chunks and merged. Gallery and
timeline request sizes are capped to the configured limit.

* fix(backend): cap kanban limits and keep default page sizes within the limit

Kanban limits were unbounded, and a default page size above a lowered
BASEROW_ROW_PAGE_SIZE_LIMIT made requests without a size fail.

* chore: add changelog entry

* fix(frontend): fetch grouped grid rows per visible section

One range from the first to the last visible section also fetched every row
of the collapsed groups in between, split into thousands of capped requests.

* fix(frontend): fill the visible gallery and timeline range under a small page size limit

Capping the request size left visible rows as placeholders when the limit was
smaller than the visible range.

* fix(frontend): keep kanban row requests within the page size limit

The kanban store always asked for 24 rows, so it stopped loading when the limit
was set lower.

* fix(premium): return no rows when kanban or calendar grouping has no group to fetch

With no matching select option or an empty date range, the empty filter selected
every row of the queryset without the view filters applied.

* fix(frontend): refresh grouped grid rows per visible section

The refresh fetched one range across all visible sections, so a large
collapsed group in between turned into thousands of capped requests.

* chore: mark the page size limit changelog entry as a breaking change

Requests above the limit now return a 400 instead of rows.
2026-10-28 15:00:55 +00:00
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
Davide Silvestri 89184e9b27 fix: stop editing rows hidden by restricted view filters (#6217)
* fix: stop editing rows hidden by restricted view filters

Cancel edits still queued for a row that the backend reported as hidden,
including pasted values, in grid, gallery, timeline, kanban and calendar,
so they are neither sent nor put back on screen. Close the row modal when
its row gets hidden in a restricted view; other views keep it open.

* test: cover builders and ignore broadcast order in restricted view tests

* test: add e2e tests for restricted view row visibility

Cover creating, editing, pasting and dragging rows in a restricted view
while the HTTP response is held after the server commits, the row modal
closing only in restricted views, and view default values.

* fix: hide rows created with the grid's floating add button when filtered out

createNewRowConfirmed used the single-row endpoint, which doesn't return
hidden_row_ids, so a restricted editor kept a row the view's filters
exclude. Create it through the batch endpoint and report hidden rows like
the other create paths.

* test: expect the batch endpoint for the grid's floating add button

* fix: cancel queued kanban edits when a drag hides the card
2026-10-08 09:23:06 +02:00
Davide SilvestriandBram Wiepjes 8b84fdd02c fix: prevent duplicate rows in restricted views (#6199)
* fix: report rows hidden by restricted view filters in batch responses

Compute row_ids_not_visible_in_view with one filter query in the API instead
of reusing visibility stashed by the realtime receivers, so dependent formula
and lookup filters are evaluated after the update. Ignore views of another
table.

Move kanban drag and grid cross-group drag to the batch update, so a row
dragged out of a restricted view is hidden and the move call is skipped.
Merge the frontend helpers into reportRowsNotVisibleInView and remove hidden
rows even when they don't match the active grid search.

* refactor: rename row_ids_not_visible_in_view to hidden_row_ids

---------

Co-authored-by: Bram Wiepjes <bramw@protonmail.com>
2026-09-29 18:03:05 +02:00
Davide Silvestri 76301dc892 feat: send realtime updates for rows changed by dependency cascades (#5642)
* feat: send realtime updates for rows changed by dependency cascades (#595)

Rows whose values change as a consequence of a change in another (or the
same) table - formulas, lookups and link row display values - are now
broadcast to the subscribers of the affected tables, bounded by a
configurable limit with a debounced whole-table refresh fallback.

Also fixes formulas and lookups through a self-referencing link row field
never recalculating the rows that link to the changed rows (#4541).

* fix: broken test; minor fixes

* refactor: simplify dependant-rows realtime broadcast after review

Address maintainer feedback on #5642: remove the exact-broadcast rate cap,
the force-refresh debounce, per-field serialization and payload chunking.
The background task now serializes the full row (required by the frontend
realtime collaboration to resolve view membership) and over-limit tables
refresh immediately instead of being debounced.

* fix: remove bad optimizations; address feedback

* fix: add rows_before_update for every change

* fix: add dependant_fields to update_field_ids
2026-07-06 10:02:40 +00:00
dimmur-brw 1d1e992b21 Improve websocket management when the connection is lost (#5355) 2026-06-23 22:25:52 +02:00
dimmur-brw 3a431d246c fix (nuxt): instance unavailable errors (#5064) 2026-04-07 07:18:29 +02: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
Cezary c9677626be Timeline view - fetch all rows when filters are disabled #4136 (#4418)
Timeline view - fetch all rows when filters are disabled #4136
2025-12-15 12:30:56 +01:00
Bram 1a5fe5e78c [3/6] View level permissions - Rows (#4072) 2025-12-03 20:54:40 +01:00
BramandCezary Statkiewicz eeb9a5fbc7 Date dependencies - timeline presentation #3829 (#4078)
* show date dependencies on timeline view

---------

Co-authored-by: Cezary Statkiewicz <cezary@baserow.io>
2025-11-12 10:24:29 +01:00
Cezary Statkiewicz 6cb54ec32f Date dependency between rows #3735 2025-09-29 16:34:19 +02:00
Cezary Statkiewicz 37ddb0f7d5 Date dependency #3735 2025-09-12 15:11:29 +02:00
Bram Wiepjes efab3a05a8 PostgreSQL two-way data sync 2025-08-21 20:15:49 +00:00
Davide Silvestri 6e5337c728 Resolve "Limit the number of relations returned in link row fields" 2025-06-10 16:51:33 +02:00
Bram Wiepjes e3f6a57044 Prevent view from updated state with data from wrong view when pending request completes 2025-02-18 23:19:38 +01:00
Davide Silvestri bdf7d3e8c7 Resolve "The notification mode settings is not shown correctly if the row is not in the view" 2025-02-10 16:49:10 +00:00
Davide Silvestri 6e99985da5 Resolve "Fields cannot be hidden directly after creation of a Timeline view" 2025-01-21 14:03:31 +00:00
Bram Wiepjes 1806e4b509 Fix row update metadata reactivity bug 2024-10-15 10:34:43 +00:00
Davide Silvestri 1cb0a538b1 ⏳ [3/4] Timeline view: fetch, create, edit, filters, sort, colors and public sharing 2024-10-01 09:18:17 +00:00
Davide Silvestri d6e0d3cf69 ⏳ [2/4] Timeline view: Frontend view type and grid view (without rows) 2024-09-30 12:50:45 +00:00
Petr Stribny 9fe15ded17 Resolve "Support ad hoc sorting in grid view and gallery view for editor roles and lower" 2024-03-05 14:16:55 +00:00
Petr Stribny bbaca8e381 Resolve "Support ad hoc filtering in grid view for editor roles and lower" 2024-02-29 07:42:55 +00:00
Bram Wiepjes 049c6a425d Improve row update and create UX 2024-01-09 22:41:00 +00:00
Bram Wiepjes 08b4a21a65 Resolve "Single/Multiple select fields do not update in the row edit modal when the row is not in buffer" 2023-12-19 12:33:19 +00:00
Davide Silvestri d5fba29edd Resolve "Allow follow/unfollowing comments on a specific row" 2023-12-05 14:47:32 +00:00
Eimantas Stonys 30719efa8e Make it possible to edit values in the row edit modal of a relationship 2023-10-23 09:51:08 +00:00
Davide Silvestri d55ac7ccd4 🔍 2️⃣ - UI for advanced filtering 2023-10-19 11:09:25 +00:00
Bram Wiepjes 067b44a18b Fix row edit modal gallery view bug 2023-09-19 22:50:12 +02:00
Jonathan Adeline 0af095785c Use runtime config 2023-08-07 11:29:29 +00:00
Peter Evans 75316a4a6e Resolve "Implement Postgres full-text search" 2023-07-05 16:01:03 +00:00
Nigel Gott 8ca5148175 Resolve "Fix webfrontend crashes due to null rows in bufferedRow store" 2022-08-31 13:20:39 +00:00
Alexander Haller 289139083c Resolve "Create new row via the row select modal" 2022-08-27 12:41:40 +00:00
Alexander Haller 81dde0acce Resolve "Publicly shared Gallery View" 2022-07-27 11:19:29 +00:00
Alexander Haller aae90f477f Remove primary from table 2022-07-20 18:07:00 +00:00
Jrmi 8219a4a641 Merge branch '908-replace-cancel-token' into 'develop'
Replace CancelToken by AbortController

Closes #908

See merge request bramw/baserow!704
2022-05-10 11:09:11 +00:00
Zuhair Rayyes 22ee2f79a5 Multi-Cell Paste 2022-05-05 07:42:53 +00:00
Jeremie Pardou-Piquemal 57c5c361be Replace CancelToken by AbortController 2022-05-03 16:48:20 +02:00
Davide Silvestri 070f6ed455 Resolve "Upgrade Node.js runtime" 2022-04-14 10:02:23 +00:00
Bram Wiepjes b541cdb850 Fixed reactivity when a new field is created 2022-03-10 20:54:29 +00:00
Petr Stribny b96371a7ad Resolve "Make it possible to search in the gallery view" 2022-02-21 18:33:27 +00:00
Bram Wiepjes bde310c02b Resolve "Order cards via drag and drop in the gallery view" 2022-01-06 11:09:28 +00:00
Bram Wiepjes 3581250cb0 Resolve "Edit row when clicking on the card in the gallery view" 2022-01-04 08:56:44 +00:00
Bram Wiepjes d884cbab98 Resolve "Gallery view" 2021-12-17 14:02:54 +00:00