20 Commits
Author SHA1 Message Date
Davide Silvestri 3486ba237a feat: data sync run history - record every sync as a job and show it to users (#5706)
* fix: call JobType.on_error hook again when a job fails

The call was accidentally dropped in e0a07588a, leaving the documented
post-transaction error hook dead. Job types rely on it to persist error
details that would otherwise be lost to the rolled-back job transaction.

* feat: record data sync runs as jobs and show the sync history

Periodic data syncs now run through the job system on behalf of the
authorized user, so every sync run (manual or periodic) is recorded as a
SyncDataSyncTableJob with a triggered_by discriminator. A new JobType
scoping hook lets the generic jobs listing expose runs started by other
users after a ListDataSyncJobsOperationType permission check, on both the
type-filter and job_ids polling paths. The frontend shows a paginated run
history (state, trigger, user, time, duration, error) in the data sync
configuration modal and below the manual sync modal, live-updating
through the existing job store poller.

* fix: address feedback
2026-07-22 13:35:50 +02:00
Bram 2009deca91 feat: Adds option to keep synced rows when they are deleted in source (#5612) 2026-07-02 16:22:34 +02:00
Davide Silvestri 03ffed6dba refactor: migrate table import to centralized job store with reload restore (#5264)
* feat: add dynamic concurrency limit for file import jobs

Override can_schedule_or_raise() on FileImportJobType to enforce:
- max 1 running import per table (existing table imports)
- max 1 running new-table-creation per database
- global max_count cap

Follows the same pattern as GenerateAIValuesJobType.

* refactor: migrate table import and data sync to centralized job store

Replace the deprecated jobProgress mixin with the job mixin in
ImportFileModal, CreateTable, CreateDataSync, and the shared dataSync
mixin. This enables:

- Restore running jobs after page refresh via loadRunningJob()
- Cancel support via the job mixin's cancelJob()
- Centralized polling through the Vuex job store

Also enriches FileImportJobType with lifecycle callbacks, disables type
selectors during import/sync, and exposes table_id in DataSyncSerializer
for job matching.

* feat: store importer metadata on FileImportJob for UI restore

Add importer_type and original_file_name fields to FileImportJob so the
frontend can show which importer and file were used when restoring a
running job after page reload. Both fields are passed through from the
table create and import API endpoints.

* test: add e2e test for CSV import restore after page reload

Uploads a large CSV, starts the import, reloads the page, reopens the
modal, and verifies the file name and cancel button are visible.

* fix: defensive handling when backend job data is missing new fields (pre-deploy jobs)

* test: verify cancel button stops the running import job

* test: add e2e test for CSV import into existing table restore after reload

* fix: address PR review — filter data sync jobs by database, restore importer type, prevent chooser click during import

* fix: reset importer selection after cancelling an import job

* address copilot feedback; fix tests

* fix: address review — database=table.database, opaque importer_type docs, avoid double goto for Firefox

* fix: stabilize e2e tests for Firefox — wait for job in store, use larger CSV

* feat: add on_cancelled hook and data sync cancellation support

Add on_cancelled lifecycle hook to the job system, invoked after a job
is cancelled. The data sync job type uses it to trash the table when a
first sync is cancelled before completing. Bump max_count to 3 and add
can_schedule_or_raise for per-data-sync concurrency. Frontend gets a
cancel button, optimistic table cleanup, and store lifecycle hooks.
Rework importer metadata migration to use ZDM-safe TextField(null=True).

* address copilot feedback

* address feedback
2026-05-12 17:29:25 +02:00
Jonathan Adeline 4cc352a1be feat: Introduce syncLoading state to manage UI during table synchronization, replacing creatingJob. (#4743) 2026-02-12 20:12:18 +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
Bram Wiepjes efab3a05a8 PostgreSQL two-way data sync 2025-08-21 20:15:49 +00:00
Bram Wiepjes 35a3793dad Auto add new data sync properties 2025-06-10 11:51:34 +00:00
Bram Wiepjes c352ee138d [2/2] Update premium and enterprise paid features modal 2025-04-14 12:39:57 +00:00
Bram Wiepjes b299b94427 [1/2] Redesigned modal left sidebar 2025-04-14 11:34:35 +00:00
Jonathan Adeline abdbf94e67 Re-add blur event listeners 2025-03-04 17:47:13 +00:00
Bram Wiepjes 7747ec6fd4 Fix protected field validation of data sync forms 2025-03-03 12:27:41 +00:00
Bram Wiepjes 301d4e64d6 Periodic data sync deactivated notification 2025-02-25 14:52:20 +01:00
Jonathan Adeline a58e6a3300 Vuelidate upgrade 2025-02-17 13:17:35 +00:00
Bram Wiepjes 25378704a5 Periodic data sync 2025-01-20 12:28:14 +00:00
Bram Wiepjes 6fb9b87e63 Allow choosing view in local Baserow table data sync 2025-01-09 10:56:14 +00:00
Bram Wiepjes 7b0d889271 HubSpot contacts data sync 2024-12-11 22:54:44 +00:00
Bram Wiepjes 32d7981572 Allow changing existing data sync visible fields and settings 2024-12-10 10:13:03 +00:00
Bram Wiepjes 9fd4f23608 PostgreSQL data sync 2024-11-11 09:41:45 +00:00
Bram Wiepjes fcab618723 Local Baserow table data sync type 2024-09-27 13:53:43 +00:00
Bram Wiepjes 037124219c Data sync final branch 2024-09-24 15:06:35 +00:00