18 Commits
Author SHA1 Message Date
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
Bram 3b56679cb8 feat: Add Excel import (#5265) 2026-05-06 14:34:44 +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
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
Jrmi 1a9e073773 Additionnal import v1 2022-07-25 14:28:47 +00:00
Davide Silvestri 47d6d63044 Resolve "Duplicate database / application" 2022-07-20 15:10:55 +00:00
Jrmi bdf183facb 📄4️⃣ Async file import v4: add progress bar while importing data 2022-07-04 15:18:45 +00:00
Bram Wiepjes 20c700cb33 Resolve "Prepare for translation management tool" 2022-01-26 16:04:13 +00:00
Bram Wiepjes a6cd9e10e7 Table translations 2021-10-27 11:18:26 +00:00
Suneet Srivastava ab713d2043 fix: Remove example data when creating empty tables 2021-03-30 17:04:09 +05:30
Bram Wiepjes 3719f17042 Resolve "Import existing data from CSV, Excel etc" 2020-10-18 15:30:25 +00:00
Bram Wiepjes 91fa13c086 refactored all css classes to bem style 2020-06-22 21:22:16 +02:00
Bram Wiepjes 084124f910 Resolve "Populate a table when it's created." 2020-05-18 18:25:00 +00:00
Bram Wiepjes b27f453050 Resolve "Upgrade python and js dependencies." 2020-03-31 14:15:27 +00:00
Bram Wiepjes be2c5c4d4f Resolve "Web frontend refactor" 2020-03-27 13:19:43 +00:00
Bram Wiepjes 38c2a311f6 always raise correct error in the api and handle those error better in the frontend 2019-11-08 08:52:36 +00:00
Bram Wiepjes 497447edb8 made it possible to create, update and delete tables, but also the select a table and navigate to the route 2019-11-03 10:17:22 +00:00