* 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>
* feat: add permanent workspace invite links behind the rbac_improvements feature flag
* feat: ask logged-in users to confirm before joining a workspace through an invite link
* feat: make the invite link code length configurable with a default of 12 and a minimum of 7
* feat: let admins name invite links so they remember what each one is for
* feat: show only the invite path in the link column to make room for the name
* fix: harden invite links and let people sign up through them with single sign-on
* fix: ask people who sign up through an invite link with single sign-on to confirm joining
* feat: let invite links raise a member's role after they confirm, without ever lowering it
* fix: move shared clipboard helper into core
* fix: validate workspace invitation link roles
* refactor: share confirmation modal across core features
* refactor: use literal frontend translation keys
* fix: label invitation route Invite links
* fix: copy invitation links when clicking their paths
* fix: align invitation migration with latest develop
---------
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com>
* feat: retire AI provider flag and add rollout audit
* test: remove obsolete AI provider flag setup and docs
* chore: clean up AI provider configuration and tests
* feat: deprecate legacy AI provider environment configuration
* docs: explain AI provider migration sizing and timing
* docs: mark AI provider migration audit for removal
* docs: explain AI provider migration audit usage
* fix: log AI provider env deprecations after logging setup
log_ai_provider_env_deprecations() ran at the tail of _setup_health_checks(),
which ready() calls before setup_logging(). The notice went out through
loguru's default sink and missed BASEROW_BACKEND_LOG_LEVEL, the Baserow
format, and the OpenTelemetry log exporter, so operators shipping logs to a
collector never saw it.
Also drop two references the flag removal invalidated: the getEffectiveAIAgentModels
JSDoc still described filtering as conditional on the removed provider flag, and
the AI field architecture doc still pointed provider authors at the deleted
legacy workspace-setting hook. That doc now names BuiltInGenerativeAIModelType,
which is what grants an integration override model inheritance.
* fix: reuse environment AI settings in generation workers
* feat: import legacy AI provider settings on upgrade
Removing the ai-providers flag makes database-backed providers the default, which
would leave every existing installation on an empty AI providers page with a
management command as the only way to populate it. A data migration imports the
environment and each workspace's stored settings instead, so a standard upgrade
needs no commands.
Both scopes are imported in one migration. Legacy workspace settings replaced the
instance ones entirely, while database providers inherit, so each imported workspace
is also switched off the instance provider of the same type. Without that a workspace
would silently gain models billed to the instance account.
Settings that cannot fit their columns are skipped and logged rather than raising
DataError and rolling back the whole upgrade. The migration reverses as a no-op
because the previous version does not read these tables, so deleting rows would only
discard edits made during a rollback window.
migrate_ai_provider_settings stays as the recovery path and now shares its planning
logic with the migration, so both agree on which legacy settings are complete. It
deliberately does not switch workspaces off inherited providers, and warns instead.
* chore: remove the temporary AI provider audit command
audit_ai_provider_settings existed to inventory legacy configuration before a manual
import. The upgrade now imports automatically, so the command has no remaining step
to support. Removal was already tracked in #5749.
* docs: reduce AI provider docs to lasting behaviour
The upgrade procedure, rehearsal plan and sizing query described a one-time
transition and do not help anyone after the release; they live in the pull request
instead. What remains explains how providers work: the two scopes, how they combine,
the inheritance switch, what the deprecated environment variables still do, and how
integration overrides and published applications behave.
Also corrects claims that no longer hold: published applications keep materialised
credentials only when they were published before the upgrade, the import is no longer
optional, and a workspace-owned provider suppresses the environment fallback too.
* docs: shorten the AI provider changelog entries
Bullet points render as single list items under the entry. The released entries
average around twenty characters; these ran to four hundred, so the detail belongs
in the AI providers guide rather than the changelog.
* docs: clarify where imported AI credentials are stored
The previous wording implied Baserow's own exports carry provider credentials.
They do not: AIIntegrationType lists ai_settings as a sensitive field and
ImportExportConfig excludes those by default, and AIProviderConfig is not part of
any export path.
* docs: explain the AI provider upgrade and where to configure providers
State that the upgrade imports the BASEROW_* provider variables once and no longer
reads them, list the exceptions, and give the exact navigation for instance admins
(Admin tools -> AI providers) and workspace admins (workspace Settings -> AI
providers). Map each deprecated variable to the field that replaces it.
* fix: renumber the legacy AI provider import after 0121_agent
Develop's core 0121_agent and this branch's import migration both depended on
0120, leaving two leaf nodes, so migrate refused to run and the startup check and
E2E shards failed. The import is now 0122 and depends on 0121_agent.
* feat: remove the legacy workspace generative AI settings endpoint
GET/PATCH /api/workspaces/{id}/settings/generative-ai/ had no caller left, yet a
PATCH was still honoured for any provider type without a workspace provider and
never shown in the AI providers UI. Remove it with the handler parameter,
receivers and frontend handler that only it could trigger.
* fix: stop instance AI provider changes from fanning out per workspace
An instance-level change queued one Celery task per 25 workspaces behind a global
blocking lock, sent a payload to every connected user, and made the premium receiver
serialize every AI field on the instance. Instance changes now notify staff only;
other users see them after a reload. The render lock is per scope, and the in-use
guards no longer read one row per workspace.
* fix: keep inherited Kuma when a workspace switches off the instance provider
The upgrade switches imported workspaces off the same-type instance provider, which
made an inherited instance Kuma model invalid there, so Kuma fell back to the
deprecated env model or turned off. Inheriting the instance Kuma selection now
ignores workspace switch-offs; explicit workspace selections stay strict and are
the only ones that block a switch-off.
* fix: skip malformed Ollama URLs during AI provider migration
* fix: preserve skipped legacy AI provider connections
* test: cover independent legacy AI workspace connections
* fix: skip malformed legacy AI provider settings
* fix: move legacy AI import after current core migrations
The linear rebase omitted the migration renumbering from the previous merge commit, while develop advanced through core 0124. Rename the existing AI import to 0125, depend on 0124, and update its historical migration test so core has a single leaf.
* feat: report AI provider model usage per feature type
Feature types now count the rows they store referencing a provider model,
so the admin can be warned before disabling, deleting or narrowing one
instead of being blocked. Counting is by provider type and model
identifier because consumers do not store the provider row id, which
makes the result an upper bound: fit to warn, never to block.
Default-model features are excluded, their RESTRICT foreign key already
blocks the change.
* feat: count AI field and AI Agent references to a provider model
Both features store a provider type and model identifier per row rather
than a reference to the model, so nothing told an administrator what a
model change would break. They now count their own rows, skipping every
consumer whose owner is trashed: a field's table, database or workspace,
and an agent service's automation node, builder workflow action,
integration or application.
* feat: expose AI provider model usage over the API
GET /ai-providers/models/<id>/usage/ reports the per-consumer counts to
warn about and, separately, the default-model features that refuse the
change outright. Kuma holds a restricted foreign key, so naming it up
front lets the client say which selection to repoint instead of letting
the admin discover it through a generic error.
Permissions and scoping mirror the sibling model endpoints, so a
workspace-scoped caller cannot read an instance model's usage.
* feat: warn before an AI model change breaks its consumers
Disabling, deleting, renaming or narrowing a model now names what
depends on it and proceeds on confirmation. Disabling was entirely
unguarded before, and a rename orphans consumers just as thoroughly as
a delete because they persist the identifier string.
The counts are an upper bound: an instance model and a workspace model
sharing an identifier are indistinguishable to a consumer, so the copy
says a feature uses the model rather than claiming it will break. A
failed lookup degrades to the plain confirmation instead of trapping
the administrator.
* fix: keep an unavailable AI model visible in the AI field form
The form dropped a saved provider or model as soon as it stopped being
available, leaving empty dropdowns that hid what the field had been
configured with. It now retains the saved selection, disabled and marked
unavailable, the way the AI Agent node form already does, while the
validator keeps reading the genuine list so the field cannot be saved
until a real model is picked.
* docs: describe the AI provider model usage warning
* refactor: drop redundant blocking feature types from model usage
The usage endpoint pre-announced the features whose selection refuses a
change, but ERROR_AI_PROVIDER_MODEL_IN_USE already names them and the
frontend already renders that detail. Worse, the modal applied the list
only on rename, the one path that is never refused: Kuma holds a foreign
key to the model row, so the selection follows the rename instead of
breaking. The same claim was in the installation docs; both are corrected
to say what actually happens.
Also drop the `trashed=False` filters from both model reference counts.
AIAgentService.objects and AIField.objects are no-trash managers, so the
generated SQL already excludes trashed rows.
Rename the endpoint's operation id to get_ai_provider_model_usage: the
documented response is an object, not a list.
* fix: address Qodo review of the model usage warning
Count a service only while a live owner still reaches it. The previous
exclusion dropped the whole service as soon as any related builder action
was trashed, so a service shared by a live and a trashed action vanished
from the warning. Both owner managers already encode which ancestors count
as trashed, so the check reuses them through EXISTS instead of restating
the rules.
Treat a failed usage lookup as unknown rather than zero. Returning empty
counts made every caller skip its confirmation, letting a rename orphan
consumers with no warning at all; the dialog now says the check failed and
still lets the admin proceed.
Cover fetchModelUsage directly: payload forms, workspace scoping and the
snake_case to camelCase mapping had no store test.
* feat: per-feature and workspace-level AI model settings
Baserow could only point every AI feature at one instance-wide model. An
administrator can now register provider models, declare which AI features each
model may serve, and pick the default model per feature; a workspace admin can
inherit that choice, override it, or disable the feature locally.
The assistant resolves its model once per logical request and threads that
snapshot through its nested agents and tools, so a single run can no longer
re-read settings repeatedly or pick a model other than the one it validated.
The scoped provider state is memoized for the duration of a request, keeping
workspace serialization from loading it once per workspace.
Also:
- add Google and Groq provider types, and keep these database-only providers
out of the legacy workspace settings they cannot round-trip through;
- prune orphaned feature selections so an unloaded feature type's RESTRICT FK
no longer blocks provider and model deletion;
- record whether a configured model answers text and tool-calling probes, and
invalidate that result when its credentials or identifier change;
- broadcast provider and availability changes over the existing realtime
channel so open clients update without reloading;
- read the assistant model from the shared configmap, so frontend pods no
longer miss it on Helm installs.
Manual test instructions live in docs/testing/kuma-model-settings-test-plan.md.
* fix: address AI provider settings review feedback
* feat: add workspace AI providers for AI fields
* fix: address workspace AI provider review feedback
* fix: address remaining AI provider review feedback
* fix: resolve core migration conflict
* fix: stabilize premium AI provider tests
* address feedback for local imports
* feat: add instance AI provider management
* fix: simplify AI provider testing
* fix: remove extra model list spacing
* fix: show AI provider form errors inline
* fix: use icons for AI provider row actions
* fix: place model errors before help text
* chore: polish code
* fix: address feedback
* fix: address remaining frontend CI failures