* 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
* feat(agent): skip Agents when importing with the feature flag off
* feat(agent): use an enabled model when an imported Agent's model isn't available
* feat(agent): keep an imported Agent's tool choices until an identity is picked
* feat(agent): tell the editor an imported Agent's tools turn on with an identity
* feat(agent): let template previews read an Agent's configuration
* feat(agent): show Agents in the template preview
* fix(agent): check the configuration permission when copying an Agent into a user template
* fix(agent): let signed out visitors preview an Agent in a template
* fix(agent): sync a template again once its Agents can be imported
* fix(agent): make an installed Agent's data-changing tools ask first
* fix(agent): list only MCP servers as connected apps in the template preview
* test(agent): cover blank imported models and duplicates without their identity
* fix(agent): keep pending tools when tools are saved without an identity
Tools stay off without an identity, so a full-config save from an API client
shouldn't throw away the choices an imported Agent is waiting to apply.
* fix(agent): fail a template install when every application is left out
With the agent builder flag off, a template holding only Agents installed
nothing yet reported success and counted the install.
* fix(agent): say why a template with nothing to install fails
"The content of the template was removed" sent people looking for a broken
template when the real cause is a feature turned off on this instance.
* docs(agent): say a user template copy refuses an Agent the owner can't read
* fix(agent): import Agents for users granted the flag
Feature flags can now be granted per user, so the import checks the user it's for instead of only the instance.
* fix(agent): sign up with a template of only Agents while their flag is off
The signup install raised TemplateHasNothingToInstall and returned a 500 without creating the account.
* fix(agent): refuse a user template when none of its applications can be copied
An owner without the Agent flag got an empty template that no one could install.
* fix(agent): refuse a user template that would leave out a selected Agent
A mixed selection lost its Agents without notice, and every update lost them again.
* fix(agent): skip templates with nothing to install in fill_workspaces
* feat(agent): create a scoped identity for each Agent a template installs
An installed Agent waits for an identity before its tools work. An admin with
roles can now get one per Agent at install, with access to only the template's
databases, instead of picking a workspace-wide identity by hand.
* fix(agent): name the applications a user template can't copy
The job failed with a generic message, and checking before the copy creates nothing.
* fix(agent): don't offer hidden applications to export or save as a template
Agents without their feature flag were listed, so Select all always failed.
* chore(agent): log the templates fill_workspaces skips
* fix(agent): filter pickers by type availability, not by permissions
Permissions can load after the update form preselects, which dropped builders and automations.
* fix(agent): keep the count check after a user template copy
* fix(agent): don't count unusable applications as template content
* feat(agent): offer a scoped identity per Agent when installing a template
Only shown where the installer has roles and may create identities and assign
their roles, so the default flow stays as it was everywhere else.
* fix(agent): skip the identity when a template installs no database
An identity scoped to nothing can't run the Agent's tools, so it's left waiting for one to be picked.
* fix(agent): audit binding an installed Agent to its new identity
The Agent gets the identity's access, so the bind is recorded like one made by hand.
* fix(agent): import Agents whatever the importer's feature flags
A user's early access must not change what an import saves. Agents are
now kept by template sync, template installs, user template copies and
workspace file imports, so someone who gets the flag later finds them
with their configuration. Also moves is_template_storage after the
existing ImportExportConfig fields, so positional arguments keep their
meaning.
* fix(agent): hide Agents in template previews and install toasts without the flag
The preview opens another application when the preferred one is a hidden
Agent, and the install toast links to the first application the user can
see.
* fix(agent): hide the identity option for a template without databases
The backend skips the identity when nothing would grant it access, so the option did nothing.
* feat(agent): let builders scope template identities and keep their roles
Builders install templates but can't create identities, so a narrower permission covers one with no workspace access and a role only on what they installed.
Templates now carry the application roles of an Agent's identity, so an install recreates them.
* feat(agent): offer template identities to builders for any application
The identity now gets a role on every application of the template, not only databases.
* fix(agent): recreate only builder or viewer roles from a template identity
An exported role list is now applied exactly, so an empty one no longer falls back to access on every application, and malformed entries are skipped.
* fix(agent): only skip role permissions when scoping template identities
Licence, subject and scope checks still run, an identity that would get no
role isn't created, and expected failures are logged as warnings.
* fix(agent): keep the identity roles of a user template's Agent
The template copy of an Agent waits for an identity, so its export dropped
the roles it was imported with and installs fell back to tool-based roles.
* fix(agent): hide unreadable roles of an Agent waiting for an identity
An export by a user leaves out the carried roles they can't read, like
those of a bound Agent's identity.
* fix(agent): create no install identities while the Agent builder is off
The installer can't see the Agents or manage their identities then.
* fix(agent): recreate exact template identity roles on install
Editor and commenter roles are kept, admin only when the installer may change roles.
Agent-only templates get an identity without access; names with links get none.
Identities are created through a scoped identity action; unexpected failures reach Sentry.
* fix(agent): show the full install identity option and what it gets
The option wraps instead of being cut, explains the identity's access, and shows for Agent-only templates.
The user template form no longer says the Agent identity roles aren't copied.
* fix(agent): never export more identity access than the template had
An application with table or view roles, or roles the exporter can't read, is left out, so the install gives no access to it instead of the tools' defaults.
* chore: renumber the install template job migration to 0144
Develop added 0142 and 0143 core migrations.
* feat(agent): export the identity of an Agent as an object with a key
Other application types can refer to the same identity later, and Agents
that ran as one identity share the new one an install creates.
* feat(agent): carry identities in templates and exports as workspace objects
Identities are described beside the applications and created before them, so
rows, view owners and filters that point at an identity keep pointing at one.
Creation needs no install option, since identities take no license seat.
* fix(agent): renumber the identity definition migration to 0023
* fix(agent): make the identity definition migration follow 0022
* feat(agent): let applications report and bind the identities they refer to
An identity keeps the role it had on its workspace instead of a role guessed
from its Agent's tools, and an application can refer to several identities.
Also carries team and per-application roles, and Agents with only triggers.
* feat: introduce User-backed workspace identities
Replaces workspace core.Agent subjects with identities stored as Django
Users, so permissions, execution and attribution use the same record.
- User.objects and WorkspaceUser.objects are human-only; permission and
identity code opts in through objects_and_identities. is_human and
is_identity classify a user at runtime.
- Login, tokens, seats, notification recipients, personal views and
last-admin checks stay human-only. Roles, teams and field grants work
for identities unchanged.
- Agent applications run as an identity, never as a person. Every shared
tool rechecks the identity's authority on each call, and MCP refuses a
tool that skips that boundary.
- Migrations add the profile metadata and index, remove the Agent model
and delete or clear legacy Agent data: trash entries, role assignments,
team memberships, integration authorizations and run-as bindings.
- Rename the management API, UI, events and feature flag to identity.
Squashed and rebased onto develop; the previous history is kept on
backup/6556-before-develop-rebase.
* refactor: remove generic subject options endpoint
* refactor: simplify identity selection and Agent run-as options
* feat: distinguish identity notification senders
* fix: restrict identity bindings to identity managers
* docs: record users and identities verification
* fix: restore snapshots as the person restoring
A restore checked the snapshot creator's permission and used the creator
to decide whether an Agent keeps its identity binding. It now checks the
person restoring, passed to the import as `restored_by`. `copied_by` stays
unset on restore, so credential checks keyed on it behave as on develop.
Restoring a snapshot whose creator was deleted works again. The copy rule
for identity bindings covers Agent run-as only; a copied Local Baserow
integration keeps its authorized subject.
* fix: leave settings pages the user may not open
A settings route without a permitted tab rendered an empty page, as the
Identities page did with its feature flag off. It now opens the first
page the user may see.
* fix: renumber the legacy Agent cleanup migrations
Develop added agent 0016 and integrations 0043, so the migrations that
clear legacy Agent run-as bindings and integration authorizations move to
agent 0017 and integrations 0044.
* test(agent): run the trigger self-event test as an identity
The test added on develop created a `core.Agent`, which this branch
removes. It now uses an identity user as the Agent's run-as subject.
* perf: load user types once per batched permission check
* refactor: state the stored subjects in each subject type
* fix: give every user a profile
* fix: keep identity attribution on rows copied in their workspace
* refactor: give people and identities their own subject type
UserSubjectType stays the type both are registered and stored under. It forwards what differs to HumanSubjectType and IdentitySubjectType, so get_specific_type is the only place in subject code that inspects the user type. The registry returns the specific type on request and get_by_model keeps returning the stored type, which never reads the profile.
An identity's membership is checked in one query instead of two.
* fix: keep the roles of identities when a database is duplicated
The role import read subjects through the model's default manager, which only returns people, so duplicating or restoring a database failed when an identity held a role on it. It now resolves the subject through the subject registry.
A subject that no longer exists is skipped instead of failing the whole duplicate or restore.
* refactor: look up a subject type from its content type in one place
* fix: reload a cached token whose profile is incomplete
A token cached by the previous release has a profile without the user type, which reads as not a person, so its requests were refused until the entry expired. The token cache now treats it as a miss, with the check the user cache already used.
* refactor: check the user type once where the check was repeated
The MCP endpoint loader, the personal view permission manager and the identity trash type each asked the same question several times. The rule that an identity is never selected by email moves from the team handler to the identity subject type.
* refactor: leave trashed workspaces out of the identity membership manager
WorkspaceUser.objects_and_identities was named after objects but also returned memberships of trashed workspaces, so callers filtered them by hand. It now follows the existing pair: it leaves trashed workspaces out, and objects_and_identities_and_trash includes them, as objects_and_trash does for people.
* test: state the behaviour of every user type
The table fails when a user type is added and says what has to be decided first. An unknown type is checked to be denied.
* refactor: refuse to say whether a stored user subject is interactive
The answer differs between a person and an identity, so reading it from the stored type would be wrong for one of them. It now raises and points to the specific type.
* refactor: lock the person in membership writes instead of checking the type
Leaving a workspace, removing a member and adding a user lock the user through the people manager, which refuses an identity or an unknown type in the same query. Nothing adds an identity through add_user_to_workspace, so its branch for identities goes. The last admin check compares the membership with the people who are admin, which needs no type check.
* test: leave no rows behind in the legacy authorization migration test
The test left an integration that pointed at a user that didn't exist and a workspace, in the database the migration tests share. Tests that ran after it then failed on the foreign key or on the workspace id. It now uses a real user and empties the two tables.
* docs: describe the subject types and compare the Subject table alternative
ADR 013 is shorter and states that people and identities each have a specific subject type under the stored auth.User type. It compares shared User storage with a Subject table that users and identities would both point to.
* chore: run the legacy run-as cleanup after the agent actions migration
Develop added agent migration 0017, so the cleanup becomes 0018 and depends on it.
* test: leave no rows behind in the legacy agent migration tests
Like the legacy authorization test, these left a workspace in the database the migration tests share, which a later test that creates workspaces with fixed ids collides with.
* fix: write and read the workspace role of an identity in one place
The role assignment API wrote the role of an identity through the membership update of people, which told every member of the workspace about it and stored Builder as MEMBER, while the identities API stored BUILDER and returned the stored value. Both now write through the identity handler, which stores the role like the role of a person, and the role is read with the resolver the workspace members use.
* fix: take no row lock in the membership writes of a person
Leaving a workspace locked the user before the membership while removing or updating a member locks the membership first, so the two could deadlock. The user type never changes and these operations refuse an identity, so the lock protected nothing: they now only check that the user is a person. Leaving no longer locks the admin memberships and removing a member no longer checks for the last admin, as before identities.
* fix: find an identity by its name only in the subject options
The search also matched the email and username, which for an identity hold an internal key, so searching a part of that key returned every identity.
* chore: run the identity migrations after the new ones on develop
Develop added core 0138, integrations 0044 and enterprise 0073, so the identity migrations become core 0139 and 0140, integrations 0045 and enterprise 0074 and depend on them.
* fix: keep the identity of a copied integration only for identity managers
A duplicated application or a restored snapshot kept the identity its Local Baserow integration acts as, without checking the person who made the copy. Restoring a snapshot could so bring back a binding an admin had removed. The copy now keeps the identity only when that person may bind identities, as the Agent application already did, and is otherwise authorized as that person.
* docs: follow the renumbered migrations and the copy rule in the test plan
The test plan named the identity migrations and their tests by their old numbers and still said a copied integration keeps its subject.
* test(agent): run the row trigger tests as an identity
The row trigger tests added on develop created a `core.Agent`, which this
branch removes. They now use an identity user as the Agent's run-as
subject, and the e2e fixture creates it through the identities endpoint.
* feat: show the values of previous steps in the automation data explorer
* fix: hide placeholder sample values and hint untested current node in the data explorer
* fix: shorten the untested step hint and show it inline in the data explorer
* fix: keep the untested step hint visible next to a long node name
* fix: sign users out of existing sessions when an admin changes their password
* fix: keep admins signed in after changing their own password in the admin panel
* fix: send other tabs to the login page after a password change instead of crashing
* chore: add changelog entry for the password change tab crash fix
* fix: send users with two-factor auth to the login page after changing their own password
* feat(jobs): Opt-in lock so a job type can refuse a cancel after its commit
* feat(create-user-template): Create a user template and list it in "Your templates"
* fix(create-user-template): Address review feedback
- Only the owner can open a user template; the slug endpoint returns 404
otherwise and includes `type`.
- List templates through `/api/templates/?view=flat` instead of `/own/`.
- Rename the job's copy to `template_workspace`, renumber the migration to
0132 after develop's core migrations, guard it like 0128, and move
revision fields and metadata to the update PR.
- Clear references outside the selection instead of failing the import,
lock the owner row against a concurrent delete, and keep leftovers
tracked until they're deleted.
- Load workspace permissions only for the wizard, handle instances without
categories, restore a running job before a failed one, and open the
default template again in the template modal.
- Reuse existing export, cancel and serializer code, keep one icon list,
remove overlapping tests, and give template fixtures a unique slug.
* Add markdown to HTML renderer for runtime formulas
* Add markdown_to_html formula function
* Add markdownToHtml renderer for runtime formulas
* Add markdown_to_html runtime formula to the frontend
* Add changelog
* Enable advanced mode for smtp service's body input
* Add isValidStrictEmail which is as strict as the backend validation
* Add matching backend tests for email validation
* Add changelog
* Make frontend email validation a bit more strict to be consistent with the DB's Email field
* WIP
* Remove formula conversion related changes
* Move the file input click guard to formatted text component
* Move format types into their own components
* Use a shared markdown-it instance
* Move the formatter into data explorer
* Move minification logic into BaserowFormulaMinified
* Renderer should own the root element
* Ensure long choice names are truncated
* Ensure line height doesn't grow for paragraphs
* Add tests
* Add changelog
* Add specific tests for choice element
* fix(database): improve escaping of URLs and user input
Escape user-provided select option values and colors when building the
database API documentation, and restrict URL, link and button field cell
hrefs to a safe scheme allowlist so non-navigable values are normalised.
Add unit tests for the URL scheme helpers and the select option docs output.
* fix(database): keep url hrefs working for string and protocol-relative values
Restore hrefs for URL lookup/array cells whose value is a plain string, and
prefix protocol-relative `//` URLs with `https:` instead of `https://`.
Add changelog entry.
* fix: address feedback
* Refactor to_duration() to accept an optional format arg.
* Add tests for duration utils
* Add tests for new DurationFormation* arg type
* Expand tests for RuntimeToDuration
* Add duration_format()
* Add tests for RuntimeDurationFormat
* Add a Utility formula category, and recategorize some functions
* Allow formula validation visitor allows validating deferred args.
* Improve test coverage
* Add changelog
* Fix frontend test failure
* Remove changes around deferred arg validation
* Clean up stale logic
* Fix docstring
* Ensure tokenize_duration_format/tokenizeDurationFormat supports fractional seconds.
* Use rounding instead of truncating for fractional precision to match the existing format_duration_value()
* Add missing test coverage for duration field formatting.
* Add support to tokenizer to escape tokens.
* format_duration_value/formatDurationFalue is now just a shim that wraps a call to the unified formatValueWithDurationFormat.
* Fix to_duration() example.
* Add new skill for creating/updating runtime formulas.
* Add abs() formula function
* Add getErrorMessage() to arg type to return a human-readable error message.
* Update skill to ensure getErrorMessage() is overridden when appropriate.
* Add null() runtime formula.
* Add number_format() runtime formula.
* Fix tests
* Add changelog entry
* Add date_interval() runtime formula.
* Fix test
* Add runtime formula: to_datetime()
* Update changelog
* Fix backend test
* Fix frontend test
* Add new ensure_date_interval() ensurer.
* Update descriptions and examples.
* Remove references to Moment.js
* Refactor validate_type_of_args() to return the index of the invalid arg.
* Refactor to_datetime() to use ensure_datetime()
* Use ensure_date_interval ensurer for IntervalStringBaserowRuntimeFormulaArgumentType
* Update skill with sections on ensurers.
* Add optional strict arg to ensure_datetime()
* Fix tests
* Simplify the ensure_string() to return total seconds for timedelta.
* ensure_date_interval() should also try to convert numbers to a timedelta.
* Fix test
* Use ensure_integer() in ensure_date_interval()
* Rename DateInterval to Duration
* Return an array of all possible errors.
* Use database duration parser for consistency
* Remove contrib references in core.
* Add additional test coverage
* Rename duration to to_duration
* Attempt to fix CI
* Reverting some changes
* Ensure empty string '' isn't accepted as a datetime format.
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* fix(builder): ignore hidden form fields when validating form container submit
* Remove stale data from the store on component unmount
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>