Commit Graph
3282 Commits
Author SHA1 Message Date
peter_baserow ca3e6e1c8c feat: store API keys for HTTP requests in an HTTP authentication integration 2026-12-04 10:31:11 +00:00
Jonathan Adelineandpeter_baserow a26c5ce6b0 feat: filter dashboard widgets by date or date range (#6954)
* 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>
2026-12-03 20:40:18 +04:00
alamin-br 8882deb350 fix: send the full workspace in the group_created event (#7028)
* 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.
2026-12-03 14:36:20 +01:00
Davide Silvestri e7fae94fa1 chore(deps): upgrade Pydantic AI to 2.77.0 and refresh the AI model picker (#7002)
* 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
2026-12-03 11:13:02 +01:00
Przemyslaw Kukulski 8af86f7e1f chore(deps): bump django from 5.2.17 to 5.2.20 (#7025) 2026-12-03 10:59:39 +01:00
Peter EvansandJeremie Pardou c804cb659b fix: keep published webhook and email triggers working after a test run (#7020)
* 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>
2026-12-03 09:47:07 +00:00
Peter Evans 63f3f4e11d feat: refresh the Santa's Logistics template with a dashboard, festive automations and a new look (#7013)
* 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
2026-12-03 09:46:32 +00:00
Davide Silvestri f5bc919473 feat(celery): make every task work on a threads worker, and use one in dev (#6926)
* 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
2026-12-03 09:39:52 +01:00
Davide Silvestri b2af957de0 feat(analytics): record where each change comes from (#6986)
* feat(analytics): record where each change comes from

Every action event sent to PostHog carries `action_source`: browser, api,
mcp, assistant, agent, automation or builder. Actions by an identity are
now sent without a person profile instead of being skipped.

* fix(analytics): report application builder changes as application

* style: format the action source test

* fix(analytics): report agent row actions as agent from their dispatch context

* fix(analytics): send no email with events of identities

* refactor(analytics): one name for the action source and no email for identities by default

* feat(analytics): keep the starting channel on jobs and label scheduled and public changes

* chore: remove the local venv link

* chore: drop the changelog entry

* fix(analytics): keep the source on exports, MCP connects and button clicks

* test(analytics): cover the dispatch context labels and public-view exports
2026-12-03 08:23:38 +00:00
Przemyslaw Kukulski 4852e32060 fix: show an error instead of an unhandled 429 when a page refresh is refused (#6982)
* fix: keep published page data when a refresh is refused

* Review feedback
2026-12-03 06:16:22 +00:00
dependabot[bot] bc0a679aa1 chore(deps): bump uvicorn[standard] from 0.52.4 to 0.55.0 in /backend (#6969)
Bumps [uvicorn[standard]](https://github.com/Kludex/uvicorn) from 0.52.4 to 0.55.0.
- [Release notes](https://github.com/Kludex/uvicorn/releases)
- [Changelog](https://github.com/Kludex/uvicorn/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Kludex/uvicorn/compare/0.52.4...0.55.0)

---
updated-dependencies:
- dependency-name: uvicorn[standard]
  dependency-version: 0.55.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:03:08 +01:00
dependabot[bot] 658d60598e chore(deps): bump faker from 40.1.0 to 40.63.0 in /backend (#6968)
Bumps [faker](https://github.com/joke2k/faker) from 40.1.0 to 40.63.0.
- [Release notes](https://github.com/joke2k/faker/releases)
- [Changelog](https://github.com/joke2k/faker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/joke2k/faker/compare/v40.1.0...v40.63.0)

---
updated-dependencies:
- dependency-name: faker
  dependency-version: 40.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:03:04 +01:00
dependabot[bot] e23f44eb12 chore(deps-dev): bump pre-commit from 4.6.2 to 4.7.0 in /backend (#6972)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.6.2 to 4.7.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v4.6.2...v4.7.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-version: 4.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-12-02 15:02:08 +01:00
Przemyslaw Kukulski a3e9dfa72d fix: viewers see footer totals when the view filters on a hidden field (#6983) 2026-12-02 14:28:17 +01:00
Davide Silvestri 0860601af4 perf(database): resolve the dependencies of a field subset level by level (#6940)
* perf(database): resolve the dependencies of a field subset level by level

* chore: changelog entry for #6939

Fixes #6939

* perf(database): batch selected fields and use indexed dependency lookups

* perf(database): let field types batch-load relations for model dependencies
2026-12-02 13:57:06 +01:00
Tsering Paljor 007b6aac46 fix: Return 400 when a data source dispatch names a hidden element (#6994)
* 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.
2026-12-02 13:55:05 +04:00
Tsering Paljor 5fd3296e16 fix: Update ADR for Workspace integrations (#6981)
* Renumber the workspace-level integrations ADR to 017 and mark it accepted

* Correct ADR 017 where the endpoint list and the promotion of Local Baserow integrations differ from the code
2026-12-02 13:54:32 +04:00
Przemyslaw Kukulski 845dd13149 feat: old user template revisions skip the hourly formula refresh (#6945) 2026-12-02 10:18:35 +01:00
Peter Evans 86168f17e3 fix: ignore malformed WebSocket messages instead of closing the connection (#6921)
* 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
2026-12-02 08:54:47 +00:00
Jonathan Adeline 63765512ac feat: support numeric input in dashboard filters (#6899)
* 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
2026-12-02 09:59:32 +04:00
Tsering Paljor 6391674129 fix: Revoke a login's access tokens on logout (#6951)
* 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.
2026-12-02 08:57:10 +04:00
Bram 59fab074b5 Updated descriptions for 3.0 (#6979) 2026-12-01 20:37:32 +00:00
Bram 9d3d657b56 Prepare for 3.0.0 (#6961) 2026-12-01 19:18:09 +00:00
Przemyslaw Kukulski f01dce307f chore: remove the agent-builder and user_templates feature flags (#6960) 2026-12-01 19:56:53 +01:00
Bram ea5eb7805e Added agent templates (#6958) 2026-12-01 16:07:59 +00:00
Bram cf0ec8e797 Latest translations for 3.0 (#6955) 2026-12-01 17:04:28 +01:00
Peter EvansandJeremie Pardou d7e2c3f635 chore: remove core and WAB feature flags shipping in v3 (#6903)
* 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>
2026-12-01 16:01:14 +00:00
Davide Silvestri 934f4e788d perf(database): read the model caches of linked tables at once (#6938)
* 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
2026-12-01 16:48:27 +01:00
alamin-br 0109a1e2a7 fix(backend): keep action fields mapped to inputs in workspace exports (#6956)
* fix(backend): keep action fields mapped to inputs in workspace exports

Export redaction emptied every sensitive formula field, including ones that only
point at an input or previous step, so imported email actions lost their mappings.

* fix(backend): keep mapped HTTP rows on export and only for known data providers

Header, query and form rows mapped to inputs were still blanked, and any get('<text>')
was kept even when the text was not a data path.
2026-12-01 16:47:34 +01:00
alamin-br e7381b5384 feat(mcp): always turn on OAuth sign-in and add the MCP tools changelog (#6930)
* 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.
2026-12-01 15:44:39 +01:00
alamin-br 8aed5fdc85 fix: read view field options once when creating missing ones (#6952)
Each missing field option re-read all the view's field options, twice for grid
views (Sentry BASEROW-SAAS-BACKEND-135).
2026-12-01 15:01:06 +01:00
Peter Evans ba7a06521e fix: stop reporting handled AI provider errors to Sentry (#6761) 2026-12-01 12:22:17 +00:00
alamin-br 897f428a8b fix: batch formula select option dependency queries when listing fields (#6949)
* 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
2026-12-01 12:01:57 +01:00
Przemyslaw Kukulski bb7ba42b90 fix: small template marketplace fixes (#6916)
* fix: small template marketplace fixes

* Review feedback
2026-11-30 21:08:04 +01:00
Davide SilvestriandPrzemyslaw Kukulski c062ba60f9 fix(core): stop MCP SSE sessions from exhausting the Redis channel layer pool (#6936)
* fix(core): stop MCP SSE sessions from exhausting the Redis channel layer pool

Fixes #6935

* Update backend/src/baserow/core/redis.py

Co-authored-by: Przemyslaw Kukulski <przemyslaw.kukulski@gmail.com>

---------

Co-authored-by: Przemyslaw Kukulski <przemyslaw.kukulski@gmail.com>
2026-11-30 17:29:48 +00:00
Davide Silvestri e824578899 fix(agent): send run ids as strings in conversation realtime updates (#6933)
Fixes #6932
2026-11-30 17:36:34 +01:00
Przemyslaw Kukulski 67101593d4 fix: apply view field visibility to ad hoc filters, sorts and aggregations (#6913) 2026-11-30 17:07:59 +01:00
Jérémie Pardouandpeter_baserow 4df2f3dcee feat(dashboard): add choice selector and field option picker (#6915)
* feat(dashboard): add choice selector and field option picker

* refactor(dashboard): import raw option paths separately

* chore(dashboard): remove redundant choice selector changelog

* fix(dashboard): open explorer when switching to formula mode

* fix: show the formula again when a reused formula input leaves raw mode

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-30 16:27:43 +01:00
Davide Silvestri 9080e662ec chore(agent): Agent Builder analytics events for PostHog (#6914)
* feat(agent): send Agent Builder analytics events to PostHog

Adds metadata-only events for the Agent Builder dashboard: agent_run_finished,
agent_trigger_skipped (one per skip episode), labelled tool lists and
waited_seconds on decide_agent_tool_approvals, and a content-free
$ai_generation per agent model request. Tool labels never carry action or
MCP tool names. Nothing is read or sent when PostHog is disabled, including
the action_done receiver, which now returns early.

* feat(agent): send create modal steps to PostHog

* refactor(agent): drop $ai_latency and merge overlapping analytics tests

* fix(agent): report every reply ending, including failures before a run
2026-11-30 15:07:35 +00:00
alamin-br 2686fb21a9 fix(agent): show held calls in full, name option renames, stop replies on trash (#6909)
* fix(agent): show held calls in full, name option renames, stop replies on trash

Approvers saw cut previews of what was sent, option renames hid the rows they
change, and trashing an agent left its running reply going.

* fix(agent): let a removed member's running reply finish

Removal now only blocks the member's next send or approval, so an accidental
removal doesn't leave a partial result that won't resume.
2026-11-30 14:24:03 +00:00
Przemyslaw Kukulski 06ba01b67a fix: user templates leave out synced table settings, shared links and mentions (#6837) 2026-11-30 13:33:30 +01:00
Tsering Paljor cfdd62eb5a fix: Return error when a builder dispatch request body is not JSON (#6918)
* 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
2026-11-30 15:38:55 +04:00
Peter Evans 8bf8456b98 Updating the Incident Management template to include a dashboard and automation. (#6908) 2026-11-30 11:19:04 +00:00
Peter Evans 72b6355bac Adding the Supplier Quality template. (#6902) 2026-11-30 11:18:41 +00:00
Peter EvansandJeremie Pardou e4b9a2615b feat: add a shared base for integrations that connect an account through OAuth (#6810)
* feat: add a shared base for integrations that connect an account through OAuth

* fix: keep OAuth account scopes current and bound provider answers

* fix: share parent registration between form APIs

* fix: preserve refreshed OAuth tokens when actions fail

* refactor: use absolute imports for parent OAuth modules

* refactor: decouple OAuth cleanup from application publication models

* refactor: use common import hooks for OAuth connections

* fix: keep OAuth account integrations out of the workspace

---------

Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
2026-11-30 08:55:52 +00:00
Peter Evans 19e7bcc696 fix: invitation link password dialog, snapshot icon, unauthorized integrations and link cookie (#6907) 2026-11-30 08:08:57 +00:00
Tsering Paljor 72a481d6f8 fix: Fix crash when dispatching a builder workflow action without a service (#6911)
* 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
2026-11-30 08:03:23 +00:00
alamin-br aed826c2bd fix(agent): encode public chat slug, linear web fetch strip, trigger reasons (#6897)
* fix(agent): encode public chat slug, linear web fetch strip, trigger reasons

Crafted public chat links could reach other API paths, and a page of unclosed
script tags took minutes to strip. Triggers without a message now say why they fired.

* fix(agent): keep custom elements in web fetch, validate public chat slug route

Address review: one list of row trigger types, <svg-icon> isn't stripped as <svg>,
and an invalid public chat slug 404s before any API call.
2026-11-27 16:14:05 +00:00
Bram 85f9e8e67d [2/2] Usage credit subscription: Measure AI usage (#6823)
* Measure AI usage

* Show the AI usage data of plugins per agent reply and AI values job

* Fixed feedback
2026-11-27 13:52:27 +00:00
Peter Evans 9f58df8706 fix: stop the Kuma filter prompt failing on workflows whose node outputs contain whole numbers (#6879) 2026-11-27 13:44:05 +00:00