* fix: handle calendar boundaries in date comparisons
* feat: add a single-date filter to the dashboard API
* feat: send the viewer timezone with dashboard data requests
* refactor: share dashboard filter controls and target settings
* feat: configure dashboard filter conditions on date fields
* feat: add the Date filter to the dashboard widget picker
Implement the single-date mode of #6886.
* fix: restore dragging dashboard filters by their titles
* feat: persist the dashboard date filter display format
* feat: choose how dashboard filter dates are displayed
* test: align numeric filter checks with shared dashboard controls
* style: format the dashboard date filter component test
* fix: accept fixed UTC offsets in dashboard date filters
* fix: expose dashboard filter dates as ISO strings in formulas
* fix: seed dashboard conditions with compatible operators
* feat: expose date ranges in dashboard formulas and viewer selections
* feat: configure inclusive date range conditions for dashboard targets
* feat: persist and dispatch inclusive dashboard date ranges
* docs: describe date range selections in the dashboard dispatch API
* feat: select and configure dashboard date ranges
* fix: let viewers clear each dashboard date range endpoint
* fix: preserve unfinished dashboard date range bounds on refresh
* fix: refresh public dashboards after a date filter mode change
* test: group dashboard date filter mode transitions
* fix: warn about incompatible date range formula operands
* fix: convert dashboard date defaults from the saved widget
* fix: keep dashboard filter controls aligned when a condition has a warning
* fix: clear incompatible dashboard conditions when switching date modes
* fix: show cleared date conditions without warnings or redundant saves
* fix: ignore empty dashboard date conditions after switching modes
* fix: ignore dashboard date conditions without a single date and simplify mode switch clearing
---------
Co-authored-by: peter_baserow <peter@baserow.io>
* fix: send the full workspace in the group_created event
Other tabs added the workspace without its users, so later workspace user
events failed on it.
* fix: don't add a workspace the store already has
A tab could fetch the new workspace and then get its group_created event too.
* fix: don't throw when switching from a data sync to a new table
The modal resets the form on a type change before the data sync form is
swapped out, and the data sync form had no reset method.
* fix: reset the sync options when switching data sync type
A two-way sync left on from PostgreSQL was sent for iCal, which doesn't
support it, so creating the table failed.
* fix: clear leftover data sync state when the type changes
Keeps the sync option defaults in one place, shows a failed restored sync
as an error with the form, and ignores properties for a previous type.
* test: reuse the data sync mount helper
* chore(deps): upgrade Pydantic AI to 2.77.0
* test(agent): cover updated provider error handling
* test(assistant): locate tool results alongside availability updates
* feat: keep older OpenAI and Anthropic models in the picker
* fix: use SDK retry causes in Kuma evals and clarify model discovery
* feat: preserve historical AI provider model suggestions
* fix: keep the default Sentry filters when the app config extends them
The app config replaced ignoreErrors and beforeSend instead of extending
them, so deployments that set their own dropped Baserow's silenced error
patterns, the handled API error filter and the private link redaction.
* fix: preserve Sentry redaction across app hooks
* fix: keep published webhook and email triggers working after a test run
* refactor: limit the test run copy fix to webhook and email triggers
* fix: ignore test run copies when looking up webhook and email triggers
* fix: make trigger address repair migration resumable
* refactor: mark test run copy filter as internal
* refactor: separate workflow cloning from trigger activation
* fix: copy workspace integrations into workflow execution copies
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* feat: refresh the Santa's Logistics template with a dashboard, festive automations and a new look
* feat: add two festive agents to the Santa's Logistics template
* fix: show children only the replies Santa has approved
* fix: correct Santa's Logistics parcel counts, empty workshop bars and elf guidance
* chore(dev): run one threads Celery worker with beat in dev
The Docker and native dev stacks start a single Celery worker for every
queue, with redbeat embedded, instead of a worker, an export worker and a
beat process. It uses a new ThreadsPool that sends worker_process_init, so
telemetry and the lazy import check still run under the threads pool.
* fix(ws): stop closing every event loop's Redis pools after a broadcast
send_messages_to_channel_group called channel_layer.close_pools(), which
closes the pools of every event loop, including the ones other worker
threads are still sending with. Under the threads pool about a third of
broadcasts failed with "attached to a different loop" and some hung.
channels_redis now closes a loop's pools itself when that loop closes.
* fix(telemetry): keep Celery trace context per thread on threads workers
The Celery instrumentation keys a running task's span, context token and start
time by the task's id. A task replaced with self.replace(), like every
automation node, keeps its id, and on a threads worker the replacement can
start in another thread before the original ends. The original then ended the
replacement's span and detached its context from the wrong thread, logging
"Failed to detach context" and leaving its own context on the thread. That
state is now kept per thread.
* feat(celery): enforce soft and hard time limits in ThreadsPool
Celery's own threads pool ignores soft_time_limit and time_limit, so on a
threads worker tasks that rely on them would run on. ThreadsPool now raises
the limit in the task's thread, only while that task runs, so a limit never
reaches the next task of the thread. EMAIL_TIMEOUT stops a silent SMTP server
from blocking a worker thread forever.
* fix(chat-runs): cancel a run that keeps going after its deadline
The deadline only asks a run to stop. A run whose tools or provider call
ignore that request now gets 60 more seconds, is then cancelled, and is saved
as timed out. Celery's limit moves after that, so the run's own stop always
comes first. On a threads worker this is the only way to end it, because a
time limit can't reach a thread waiting inside async_to_sync.
* fix(premium): share one capped thread pool across AI field generations
Each generation started its own pool of
BASEROW_AI_FIELD_MAX_CONCURRENT_GENERATIONS threads, so a threads worker
running several jobs multiplied the threads and model calls. All generations
in a process now share one pool of that size. A prefork process runs one job
at a time, so nothing changes there.
* feat(celery): cancel queries at the hard limit and report overdue tasks
ThreadsPool checks every running task's time limits from one watchdog thread,
like the prefork pool's timeout handler, instead of starting timer threads
for each task. At the hard limit it also cancels the query the task's thread
is running, which the limit's exception can't interrupt.
A thread can't be killed, so a task still running 60 seconds after its hard
limit is reported to Sentry instead. Every limit reached is counted in
baserow.celery.task.time_limit, per task and limit.
* fix(airtable): time out requests to Airtable
Two Airtable import requests had no timeout, so a server that stopped
answering held the import, and on a threads worker its thread, forever. All
Airtable requests now use the same 3 minute read timeout.
* fix(celery): load sentry_sdk only when reporting an overdue task
The overdue report imported sentry_sdk at the top of baserow.config.celery,
which every process imports, so it was loaded even with Sentry off.
* chore: add a changelog entry for the Celery task timeouts
* fix(celery): raise threads pool time limits at the task's next query
An exception raised into a thread from outside can land right after a lock
is taken and before the code that releases it, leaving the lock held for
every thread of the worker. The pool now marks a reached limit and the
task's own next query raises it, once, through a connection execute
wrapper. The hard limit still cancels the running query, and raises
TimeLimitExceeded whatever the soft limit is. Limits end before Celery's
success callback runs. Savepoint queries are never interrupted, through
a helper shared with the periodic field update deadline.
* fix(celery): apply the worker default time limits on the threads pool
Celery passes CELERY_TASK_SOFT_TIME_LIMIT and CELERY_TASK_TIME_LIMIT to the pool and None per task when a task sets no limit. The prefork pool falls back to the pool's values; the threads pool now does too.
* fix(celery): keep threads pool time limits until running tasks end
The watchdog stopped before on_stop waited for the running tasks, so a task passing its limit during a warm shutdown was never stopped or reported.
* chore: name the emails the SMTP timeout covers in the changelog
EMAIL_TIMEOUT applies to the instance's own emails only. Automation and builder SMTP steps already time out after 30 seconds.
* chore(dev): drop dev.sh tabs for the removed Celery workers
The export and beat services are disabled, so attaching to them made the script exit before opening the remaining tabs.
* test(celery): cover thread time limits and savepoint rollback
* fix(ai): use one generation slot for nonpositive limits
* fix(chat): warn that an action may finish after a reply times out
* docs(celery): explain which timeout guarantees require prefork
* docs(celery): record the threads pool decision and task contract
* fix(chat): keep the worker slot until started tools finish
* fix(chat): warn visitors about repeating a timed-out request
* docs(chat): clarify when the stop grace period begins
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.
* perf(database): resolve the dependencies of a field subset level by level
* chore: changelog entry for #6939Fixes#6939
* perf(database): batch selected fields and use indexed dependency lookups
* perf(database): let field types batch-load relations for model dependencies
* Return a 400 instead of crashing when a published page dispatch names a hidden element.
* Return a 400 from the editor dispatch, simulate and record names views for a forbidden element.
* Build the forbidden element tests' table in the builder's workspace so the data source is usable.
* Add the changelog entry.
* fix: ignore malformed WebSocket messages instead of closing the connection
* fix: refuse unstorable page strings and clean page ids by default
* fix: match page unsubscribes on their channel group
* feat: support numeric input in dashboard filters
* fix: show only the numeric filter error outline
* fix: recover stale filters in shared dashboards
* fix: initialize the English translation fallback
* Reject the access tokens of a login session once the user logs out.
* Reject user source access tokens once the user logs out of the published application.
* Refuse websocket connections made with the access token of a logged-out session.
* Keep a logged-out session revoked for backends running another Baserow version.
* Test that an unreadable revoked-session marker keeps a token off the websocket cached fast path.
* Revoke the session's access tokens when logging out with an expired refresh token.
* Test that logging out with an already rotated refresh token rejects the session's access tokens.
* Make the user source blacklist test show that the access token authenticates before the logout.
* Log a published application visitor out in the tabs where their login ended elsewhere.
* Add the changelog entries.
* Keep a published app login whose cookie the browser never saved, such as in a cross-site iframe.
A cell unmounted in the same render it was mounted in has no cell ref yet, and a
context can be hidden after an awaited request outlived it (Sentry FE-BX, FP, FN).
* chore: remove core and WAB feature flags shipping in v3
* docs: drop stale feature flag mentions from invitation link comments
* docs: add missing changelogs for released core features
* docs: mark identities ADR as accepted
* chore: remove the identities feature flag
* docs: add changelog for workspace identities
* test: remove obsolete identity feature flag test
* docs: remove stale identities feature flag references
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* perf(database): read the model caches of linked tables at once
Fixes#6937
* fix(database): build each linked table model from its own cache entry copy
A prefetched cache entry is now used once, so two models of the same table
no longer share field instances.
* refactor(database): share the linked table model key in link row fields
* refactor(database): build every local model cache key from one prefix
* chore: add changelog entry for the MCP shared tools
The tools PRs left it for when the milestone was done.
* feat(mcp): always turn on OAuth sign-in
BASEROW_MCP_OAUTH_ENABLED is removed before it ships, so OAuth sign-in is
on everywhere. The settings page opens the endpoint tab when the OAuth
connections fail to load.
* fix(database): run realtime refresh callbacks when no view is selected
Fixes#6943
* fix(database): add created and restored fields when no view is selected
view/getSelected is {} without a selected view, so the field_created and
field_restored handlers looked up an undefined view type and threw. Use
view/hasSelected instead, and cover both events on a table page without views.
* fix: batch formula select option dependency queries when listing fields
Each formula field ran its own recursive dependency query and select option
query, making the list fields endpoint an N+1 (Sentry BASEROW-SAAS-BACKEND-1G7).
* test: cover single formula field select options and non-select formulas
* fix: stop dashboard charts failing to save a series sent without its chart type or aggregation
* fix: report a series without an aggregation as a configuration error when loading a chart
* Answer 400 instead of crashing when a builder dispatch request body is not a JSON object.
* Add the changelog entry.
* Use existing decorator for request body validation
* Check permissions before refusing to dispatch a builder workflow action without a service
* Stop the workflow action dispatch endpoint from crashing on an action without a service
* Add the changelog entry.
* Fix type hint
* Add ADR-013 for workspace level integrations
* Add implementation
* Improve context section and remove technical points
* Move bulk replacement point to v2
* Remove workspace-level ownership on import since manual promotion should handle this.
* Add a glossary section
* Do Lazy creation + Celery migration
* Remove demotion
* Tighten the Options considered section
* Add Decision describing where the integrations are managed
* Update implementation plan after changes to ADR
* Sync plan and adr
* Rename adr and implementation
* Add the shared application that owns workspace integrations
* Create the shared application of every workspace
* Let only workspace admins manage workspace integrations
* Let applications use the integrations of their workspace.
* Trash workspace integrations in their workspace.
* Copy workspace integrations into exports and keep them in duplicates.
* Workspace admins can share integrations with every application in the workspace.
* Load the shared application of each workspace in the frontend and keep it out of application lists.
* Manage workspace integrations from an Integrations page in workspace settings.
* Offer workspace integrations in the integration dropdowns of every application.
* Move promoted integrations to the workspace list in other open tabs.
* Let admins make an app's integration available to the whole workspace from its integration settings.
* Preselect a workspace integration for new nodes and data sources when the app has none of its own.
* fix tests
* Delete implementation file
* More fixes after rebase
* Fix tests
* Let builders of an application see and use the workspace integrations from it.
* Show the workspace integrations, read-only, in the integration settings of applications.
* Keep a dashboard's integration out of promotion to the workspace.
* Leave the shared applications out of the admin dashboard's application count.
* Create the shared application of the workspaces made by the fill commands.
* Say in the promotion modal that an integration nobody authorized will run as the promoting admin.
* Say in the promotion modal that undoing it won't make the integration run as the previous person again.
* Ignore integration ids in sample data when publishing copies the workspace integrations an app uses.
* Let only undoing a promotion move an integration out of the workspace.
* Let the shared application backfill stop itself after 5 minutes and skip workspaces another transaction has locked.
* Say in the workspace integrations settings that published applications and workflows keep their own copy until they're published again.
* Leave the shared application out of the assistant evals' application counts.
* Refresh the workspace integrations when the Builder's data, events, users and integrations panels open.
* Say that anything new using a promoted integration blocks undoing the promotion, even from its own application.
* Warn when a database button sends through a workspace integration with no host or token.
* Refuse roles and invitations on the shared application.
* Fix tests
* Show an application only the workspace integrations of types it can use.
* Say in the promotion modal what builders of other applications can do as the integration.
* Leave the shared application type out of the API docs for creating and updating applications.
* Check who receives a workspace integration event in one permission call.
* Say which workspaces have a shared application and who creates it.
* Let a redone promotion record what uses the integration again.
* Update docstrings
* Stop template visitors from listing the integrations of the template's workspace.
* Let database buttons find their own copy of a workspace integration after an import.
* Say what holds the workspace row lock while a shared application is created.
* Fix tests
* Stop the workspace integration form component from being made reactive.
* Make test runs use a new copy of the workflow after an integration it uses changes.
* Hide the Members settings tab from members who can't list the workspace members.
* Add changelog
* Fix migration conflict
* Fix migration conflict
* Fix test
* Update comments and ADR number
* Link to the workspace integrations from the sidebar's Settings menu.
* fix: refresh agent action errors when workspace integrations change
* fix: move workspace integrations into workspace settings
* fix: use share icon for workspace integration promotion
* refactor: use explicit shared application relations
* feat: centralize default integration selection
* refactor: share integration change notifications
* refactor: prepare integration mappings before import
* refactor: collect integration references during export
* refactor: prepare integration ownership changes without a new hook
* test: restore registered service model after mocking
* test: cover shared integration defaults in Builder
* test: include Slack in Agent workspace integration choices
* Fix migrations
* Stop template visitors from listing the workspace integrations through an application of the template.
* Only offer integrations of the user source's integration type when updating a user source.
* Say the workspace integration copy means published Application Builder apps and automation workflows.
* Use the same spacing under both integration settings sections and enlarge their headings.
* Keep the shared application out of automatic snapshot schedules.
* Fix test after rebase
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* fix: run scripts inside the builder HTML element in preview and published apps
* fix: keep HTML element scripts off in preview on the editor hostname
* chore: add a changelog entry for scripts in the builder HTML element
* perf: stop scripts in one HTML element from delaying scripts in another
* test: remove the duplicated widget resize test
* test: drop the toSorted-free browser setup from the dashboard tests
* fix(web-frontend): build server source maps only when Sentry can upload them
Server source maps took the heap the production build needs from under 4 GB
to over 6 GB, close to the 8 GB limit, and nothing reads them without an upload.
* fix(web-frontend): match Sentry's upload rule for server source maps
Sentry's plugin also reads .env.sentry-build-plugin and needs a project and an org to upload.
* feat: show formula data as a source badge and the data it points to
* docs: add a changelog entry for the formula data redesign
* test: close the data explorer before saving a button field in e2e tests
* fix: keep long formula data inside the filter row and wrap its tooltip
* fix: show the link styling tabs for a column just changed to a link
* fix(agent): keep HTTP action requests on the builder's host
The host was checked with urlsplit while Requests sends elsewhere, so model input could send the builder's key to another host.
Model-picked hosts now refuse private addresses, and ALLOW_PRIVATE_ADDRESS=false no longer turns that protection off.
* chore: drop changelog entry
* chore: add breaking change entry for boolean env parsing
* fix(agent): read a single-input URL with the formula parser
Bracketed or uppercase spellings of one input were treated as mixed URLs and hidden from the model.
Docs now match the boolean parsing and the transport limits on model-picked hosts.