mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 08:48:35 +00:00
stop-reporting-builder-custom-code-errors
173
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
cf0ec8e797 | Latest translations for 3.0 (#6955) | ||
|
|
bb7ba42b90 |
fix: small template marketplace fixes (#6916)
* fix: small template marketplace fixes * Review feedback |
||
|
|
250748c8dc |
feat: Workspace level integrations (#6547)
* 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> |
||
|
|
fa2a48b520 | feat: search shared templates by author and link to "Your templates" (#6880) | ||
|
|
17c1af4cc4 |
feat: show formula data as a source badge and the data it points to (#6857)
* 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 |
||
|
|
c152a16f92 |
feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP (#6544)
* feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP * fix: allow earlier data sources in Kuma builder filters * refactor: share targeted Kuma action endpoint * refactor: derive service filter validation from filter types * fix: reuse shared boolean values in service filters * refactor: expose filter deprecation on backend types * refactor: delegate formula examples to application types * fix: allow Kuma to edit summary widget filters * test: include summary widgets in filter tool contract * fix: allow dashboard service filter groups * test: allow dashboard filter groups in assistant prompts * feat: enable inline Kuma for summary widget filters * test: initialize roles for transactional synced table copies * fix: reject table changes during Kuma filter generation * fix: reject current node formulas in service filters * perf: batch filterable data source discovery --------- Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com> |
||
|
|
4026206617 | fix: scroll the trigger list instead of the workflow graph when picking a trigger (#6830) | ||
|
|
a8bf3b73ae |
feat: redesign app sidebar (#6798)
* feat: redesign sidebar workspace navigation * feat: redesign the sidebar footer and account menu Match the account menu to the sidebar prototype and reuse the admin navigation in a submenu. Keep Add new above the footer while the application list scrolls. * fix: show the sortable indicator only when dragging * feat: refine workspace sidebar application navigation * feat: reorganize workspace sidebar shortcuts * fix: isolate workspace sidebar menus and actions * fix: cancel sortable drops on hidden lists * fix(enterprise): allow retrying Direct support * feat: simplify the workspace overview header * fix: prevent horizontal overflow around the sidebar Constrain animated tree groups to the width of the sidebar so long labels truncate. On narrow screens, let the sidebar expand over the content instead of reducing the usable page width. * fix: fit workspace cards and creation menus on mobile * test: keep the current table selected after reload * fix: undo and redo edits across expanded sidebar applications * fix: keep sidebar groups out of the tab order * fix: highlight the active database in the tables tour * feat: label workspace integrations in the settings menu * fix: keep the workspace sidebar and guided tour usable on phones * fix: undo sidebar row imports in the destination database * fix: keep the guided tour highlight on the current step * fix: show an empty state in the workspace picker * fix: confirm workspace deletion before moving it to trash * feat: open registered workspace settings tabs from the sidebar * fix: keep the sidebar logo the same size across workspaces --------- Co-authored-by: peter_baserow <peter@baserow.io> |
||
|
|
114e0a04c8 |
feat: trigger automations and agents when a row comment is posted (#6787)
* feat: trigger automations and agents when a row comment is posted * fix: verify row comment trigger access at setup and dispatch * refactor: pass the trigger event source as a plain task argument Drop the Celery headers and the per-type flag kept for the previous release's workers: Agent Builder is behind a feature flag. A service type names what it watches through get_event_source_id. Check a table's trigger read permissions in one call, add the trigger's msgid and shorten the changelog entry. * feat: lock agent triggers the workspace's license doesn't cover The configuration lists every trigger type the instance offers, and the license is checked apart. A locked trigger shows switched off with read-only settings that open the upgrade modal; it can still be renamed, replaced by another type or deleted, and resumes once coverage returns. Menus mark paid items with the lock badge, in Agents and Automations. * address feedback * fix: address second round of row comment trigger feedback - Treat an integration the service list loads as None as trashed - Restore a locked trigger as it was; license checked on edit and fire - Drop a queued event whose trigger watches another source, no skip - Disable the mention checkbox when the host's form can't be used - Fence the comment event text as labelled JSON for agents - Mention the license in the trigger API docs and error * fix: address third round of row comment trigger feedback - pass the run identity's name to the comment form from the agent host - keep only server-decided data in service form choices - log comments a misconfigured comment trigger skips - mention the license in the remaining trigger type texts * test: serialize comment trigger nodes with the user's table access |
||
|
|
42803f23ca |
feat: record and show the identity kind in history and pickers (#6620)
* feat: record and show the identity kind in history and pickers - Snapshot the user type of the actor on row history, workflow history and audit log entries, and return it from their APIs. - Show the identity icon in row and workflow history, list identities in their own section of the audit log actor filter and count them per role in inherited access. - Load every identity in the team and access pickers through the paginated subjects endpoint, which now returns the workspace role. - Give identities premium features from the workspace or instance licence instead of a seat. * feat: record identity management in the audit log Creating, updating and deleting an identity go through registered actions, so the audit log shows who did it, with the identity's name and role before and after an update. The actions are not undoable. * fix: export an identity by its name in created by and last modified by * fix: record the values an identity update replaced from the locked row * fix: check the owner of an imported personal view without a query * fix: show an identity with the avatar and icon of its subject type * fix: audit an identity update by what it changed * feat: include the actor's user type in the audit log export and tool * test: cover a row history actor of an unregistered type * test: name the history migration test after what it checks |
||
|
|
a0e3591f9f |
feat: show the values of previous steps in the automation data explorer (#6718)
* 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 |
||
|
|
5e9dcaf00e |
feat: describe workflows and add notes to nodes with Markdown support (#6717)
* feat: describe workflows and add notes to nodes with Markdown support * fix: show one note at a time and share the note length rule |
||
|
|
3460fd301f |
feat(agent): change a trigger's type and name row trigger services (#6704)
* feat(agent): let a trigger change its type * feat(integrations): name row trigger services after their table * feat(agent): change a trigger's type from its card * chore(agent): name a read-only trigger's type box after its type * fix(agent): keep trigger type changes consistent * fix(agent): keep trigger validation and type changes consistent |
||
|
|
7ecc6f063b | fix: restore and empty trashed automations like other applications (#6603) | ||
|
|
82f9a7f9d1 |
feat: add an HTTP request data source to the application builder (#6553)
* feat: add an HTTP request data source to the application builder |
||
|
|
6d729c3b1d |
feat: Add Wait node (#6575)
* Add suspect and presume primitives for wait service. * Add the Wait service and node that pauses a workflow. * Ensure resume_at is returned in node history serializer * Add the frontend Wait node and show waiting nodes in the workflow history. * Add migrations for wait service and node * On cancellation request, ensure waiting node is cancelled immediately * Tolerate a deleted run history when the dispatch chain ends * Ensure that lost wake-up tasks are recoverable * Add changelog * Fix test * Cancel run of deleted workflow * Mark the node as error when hourly sweep finds stale waiting node that is in a loop * Show the iteration of a waiting node in the run history * Stop counting waiting runs toward the unfinished runs rate limit * Add tests that waiting runs finish after the workflow is switched off * Merge migrations * Update comment * Disable node error policy for types that don't need it * Simplify error message * Remove the skipped status, as it isn't really useful * create index concurrently |
||
|
|
7ad0e13ffe | Latest changes from Weblate (#6574) | ||
|
|
5ebc98d3c6 |
feat: block untrusted content in builder and automation imports (#6457)
Co-authored-by: peter_baserow <peter@baserow.io> |
||
|
|
356f9a9da6 |
feat: install a user template (#6460)
* feat(install-user-template): Install a user template * Review feedback * Review feedback v2 |
||
|
|
2f95f715bf |
feat: add an error style on builder/automation applications (#6377)
* Feature flagged: display an error style on a builder and automation application, and then its settings, if an integration is in error. * Show the error message in a tooltip * fix: merge duplicate integration error methods after rebase on develop * Tweak the error message * test: give the live integration fixture an authorized subject |
||
|
|
410e545dc4 |
chore: Standardize Automation class names (#6356)
* Rename backend node types * Rename backend trigger service types * Rename frontend node types * Rename frontend service types * Rename CorePeriodicServiceForm to match the service type * Rename node test fixtures method names * Update skill and document naming convention * Rename some imports after rebase |
||
|
|
c95046c2f9 |
feat: Add Automation recipes for For and While loops (#6338)
* Add recipies for For and While loops * Add tests * Add changelog * Fix the clean-up when rolling back |
||
|
|
da02417ba0 |
feat: Node error policy (#6315)
* Ensure that on failure, iterations are stopped * Add new exception handling for retryable errors * Model changes to store retry settings and counts * Add retry policy fields to serializers * Ensure node dispatch retries failures * Add error handling form in node side panel * Show retries in node history * Add current node data provider * Show retry condition * Update existing tests with error policy fields * Force advanced mode for error condition formula input * Add changelog * Add tests * Fix test * Update phrasing in changelog * Shorten the retry intervals * Improve UX and simplify failure condition * Move advanced mode fallback logic into formula input field |
||
|
|
a84819bed2 | feat: paginate workflow history (#6140) | ||
|
|
e214acfa6c |
chore: add immediate node store update argument. (#6178)
Co-authored-by: Jonathan Adeline <jonathan@baserow.io> |
||
|
|
feeed5044f | Latest translations for 2.4 part 2 (#6202) | ||
|
|
4716fc7561 | Latest translations for 2.4 (#6185) | ||
|
|
6e5680264c |
All workspaces homepage [6/7]: Added recently viewed page (#6107)
* Added recently viewed page and show that on workspace homepage * Fixed undo redo * Fixed feedback |
||
|
|
e83d592353 |
feat: add response node (#5595)
Co-authored-by: Tsering Paljor <tsering@baserow.io> |
||
|
|
35866e79de |
All workspaces homepage [2/7] Added all workspaces page and sidebar (#5980)
* Added all workspaces page and sidebar * Show error if workspace is not found * Fixed feedback * Fixed feedback * Fix test |
||
|
|
620fcc9a56 |
feature: inbound email trigger (#5730)
Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com> |
||
|
|
ad80341c03 |
feat: add Agent subject type (#5851)
* Add workspace Agents and permission management * fix: remove all duplicate team subject memberships * fix: align agent team role inheritance with users * fix: delegate workspace role storage to subject types * fix: preserve agent team memberships through trash * Fix migration conflict * fix: save agent settings pages independently * fix: preserve agent roles across license changes * fix: stabilize agent list pagination * fix: filter agent websocket events by list permission * fix: authorize agent team membership changes * fix: serialize concurrent agent team updates * fix: refresh agent teams through realtime events * fix: restrict personal views to user subjects * fix: deny agents with unavailable roles * fix: exclude agents in trashed workspaces * test: cover permanent agent access cleanup * fix: gate agents in team selectors * fix: accept trash option for preview actors * fix: set native agent form button types * fix: ignore stale agent modal saves * fix: show permitted agent management actions * fix: validate subject lookup fields * perf: optimize batched user membership checks * perf: cache agent team feature per list * fix: map agent nonmember API errors * fix: document paginated agent API schema * fix: stabilize agent API schema operations * fix: show agent name validation errors * fix: show total agent count * test: cover agent creation submissions * test: cover agent and subject UI behavior * docs: define direct subject role contracts * fix: clarify team access management * fix: use standard empty agents table * fix: align agent name column styling * refactor: move agent trash import * refactor: align agent extension registry naming * fix: recover agent team selector loading * fix: validate every subject in role batches * fix: ignore stale agent list responses * perf: index recent team subjects * fix: restore role handler imports * Fix lint * fix: reuse prefetched user memberships * fix: preserve low priority role fallback * fix: preserve trashed field permission subjects * fix: open team picker when agent loading fails * Fix tests |
||
|
|
16ddb0918f |
feat: Stop a running workflow (#5924)
* Allow stopping a running workflow. * Show ID of user that cancelled the workflow * Use yellow color on Cancel link * Add context around cancellation. * Mention cancellation in the workflow history guided tour step * Remove ERROR_USER_NOT_IN_GROUP because permissions errors are already handled by the map_exceptions decorator. * Add tests for workflow history store and component * Added frontend tests for cancelling workflow run * Add realtime event for workflow cancellation request * Improve marking timed out history * Added a counter to ensure only the latest history fetched is used to replace the workflow history * Fix migrations after merge conflict/rebase * Return 400 if the cancellation was already requested * Failure when refetching history shouldn't replace the history item |
||
|
|
9d5261de66 |
fix: Ensure formula field handles existing null value (#5948)
* Fixed a crash when clicking in a formula field that has a null value. * Revert changes around default mode value |
||
|
|
6c1e3e45e8 |
feat(database): Button field: record who started a workflow run (#6068)
* feat: record who triggered an automation workflow run * feat: name the clicker on a workflow a button started * feat: carry the trigger user on the automation dispatch context * feat: expose who triggered a run on the workflow history API * feat: audit log a button field click * feat: show who started a run in the workflow history * docs: say a periodic trigger can be started and how a click is recorded * fix: give the history actor label room for a full name * fix: keep the trigger user off the dispatch context actor A Local Baserow node with no integration acts as the context actor, so a run would act as whoever clicked. * fix: audit a click only once it holds the lock * feat: record who started a test run * fix: honour is_test_run in the workflow history fixture * refactor: resolve who started a run through the workspace user store * test: drop a start workflow test whose deny patch never fires * test: e2e for who started a workflow a button or a test run began * test: e2e for picking a workflow in the button field editor * refactor: read the trigger user lazily from the run's history No per-node user join; the context exposes history.triggered_by on demand. * refactor: plain serializer for who triggered a run * test: forward history fixture kwargs and hoist imports * fix: put the run's starter on its own line in the history panel The header row is 327px wide; a name beside the title wrapped it. Name resolution reuses the collaborator mixin. * docs: say exactly when a click is audited and what a nested run records * test: share e2e job polling and AI panel suppression * fix: annotate the automation dispatch context's history as a workflow history * fix: cap the button action form so a helper sentence cannot stretch the editor * fix: keep the automation dispatch context's history required The simulation's history=None is a sample-data-only exception, not the norm. * refactor: carry the dispatch context actor through own_properties Contexts that take an actor list it like any other property; the rest keep the base None. * refactor: record who started a workflow run as a subject Stores id, type and name instead of a user foreign key, so an agent can start a run without a data migration and the name survives the user being deleted. * fix: record who started a test run that waits for its event The starter is kept on the workflow with the other test state, so the event that starts the run later can still name them. * fix: forget a test run's starter when its window closes Opening or closing the test run window through a workflow update left the earlier starter in place, so a later run could name the wrong person. * fix: keep a test run's starter when undo restores an unchanged window Undo and redo send every workflow field back, so only a real change to the test run window may replace who started it. * fix: reset a test run's starter type along with its id * fix: return None from get_subject for subject types without a table anonymous, user_source.user and builder_preview_actor have no manager, so the lookup raised AttributeError. * refactor: resolve collaborator names through a core util The history panel called a mixin method without its component, which only worked while the method ignored this. * refactor: name the history's started-by line after what it shows * docs: note that a button with no actions logs no click * refactor: drop the unused triggered_by from the automation dispatch context Left over from when the clicker was the context's actor; the history already records who started the run. |
||
|
|
581917f842 |
feat [5/8]: use database-backed providers for AI Agent services (#5976)
* feat: register ai_agent AI provider model feature type * feat: expose integration-only AI provider settings lookup * feat: validate AI agent models against the ai_agent provider feature * feat: resolve AI agent dispatch settings from database-backed providers * feat: list database-backed AI providers in the AI agent node form * chore: add changelog entry for ai agent database-backed providers * fix: close dispatch feature-gate bypass for partial AI integration settings An integration-level ai_settings blob that omits credentials (e.g. only a models list) skipped the ai_agent feature membership check at dispatch, letting a restricted model run on the admin's DB credentials. Only a complete blob (its own connection) now bypasses the check; a partial one is validated the same way prepare_values already does. Also share one ScopedAIProviderState across the publish materialization loop instead of reloading it per model, and fully annotate AIAgentAIProviderModelFeatureType.get_workspace_availability. * fix: harden AI agent provider resolution * fix: preserve AI agent model inheritance during provider migration * fix: harden AI agent provider validation and document contracts * refactor: declare built-in AI provider types on the type itself The AI Agent model resolver duplicated the backend AI_PROVIDER_TYPES keys in a frontend Set, so a provider added there without updating the Set would silently lose model inheritance. Provider types now report it through isBuiltInProviderType(), inherited from BuiltInGenerativeAIModelType, with a test asserting every registered provider declares it. |
||
|
|
8471137a23 |
feat: allow raw formula mode in any formula fields (#5643)
* Allow raw formula mode * Fix formula mode toggle * Ignore formulas that are already in raw mode * Simplify filter normalisation |
||
|
|
42371d6beb | feat: Add skeleton loading animation and make pages load instantly (#6023) | ||
|
|
00dc3ad544 | feature: introduce further undo/redo support in builder (#5691) | ||
|
|
5459f9ecb5 |
feat[4c/6] Button field: send a Slack message (#6005)
* feat: let a database carry integrations, and take them along in an export
* feat: let a button field post to Slack through a bot of its own database
* feat: offer the Slack action in the button field editor, with the bots of its database
* docs: record where a button's external integrations live, and what an import drops
* fix: draw the button's action list the way the design does
* fix: put a Slack message's answer where its schema says it is
* test: drive the Slack action end to end, and send for real when a bot token is given
* test: let the e2e stack answer for Slack, so a click is proven in CI
* fix: charge a click for a Slack post its API refused
The refusal is raised once the post has been made, so treating it as
'nothing left the instance' handed the outbound slot back and let one row
drive unbounded requests at Slack.
* fix: read one rule for the integration a button may carry
Saving, importing and dispatching each spelled the rule out again, and
dispatch had lost the half about the field's own database. The refusal is
one answer now: three different ones let a caller walk the ids and learn
what the installation holds.
* fix: keep the Slack action standing on an answer that is not Slack's
The endpoint is configurable now, so a refusal need not carry an error
code, and a blocked address reads like the HTTP service's. The channel is
held to its column, and a half-filled form is described rather than
thrown over.
* fix: forget a database's integrations when its application is replaced
Remembering the fetch in a module-level map outlived the object it
described, so after any refetch the bot dropdown stayed empty and the only
thing offered was creating a second bot. A failed fetch is now reported
rather than left as an unhandled rejection.
* test: point the e2e suites at the renamed label and the stub's real path
The email spec picks its action by exact label, which this branch renamed,
and the stub was mounted from a path that does not exist once the recipe
has moved to the repo root.
* test: let the API guard for an unsupported application keep a type to refuse
A database accepts integrations now, so the endpoint test that used one to
prove the guard was asserting the opposite of what ships.
* fix: hold a database to the integrations its buttons can actually carry
Opening a database to integrations opened it to every type, so a Local
Baserow one, carrying an authorized_user, could be created on it and ride
along in every duplicate and snapshot. Refusing it on the action was not
enough. The list is read from the action types themselves, so the two
cannot drift.
* fix: answer a refused address and a stranger's JSON the way the HTTP action does
An address Advocate blocked was charged to the click although nothing was
sent, an answer that is not an object raised out of the service, and the
frame holding the bot token was logged with its locals. The channel form
also refused a length the API accepts.
* fix: check the integration an action carries on every save, not just the first
An edit that resent only the channel and the message skipped the read
check, so someone who may edit the field but not read the bot could
retarget it.
* fix: check who is copying an action against the integration it carries
Duplicating a field and changing a field's type both recreate the actions
without passing through the endpoint that checks the credential, so a copy
kept a bot the person asking for it may not read. The duplication hook now
carries the acting user, and a copy it cannot account for comes back
unconfigured.
* fix: hold a Slack answer to a size and a deadline, the way an HTTP one is held
The endpoint is configurable now, so its answer is not bounded by Slack's
own limits, and the request timeout restarts on every byte. A body that
drips could outlive the lock its dispatch time sizes, letting a second
click post against the same row. The reader the HTTP service already had
now lives beside the request function both of them use.
* fix: read the clicked field once, and survive an id an export made up
The dispatch guard read the field back through every action, two cold
queries apiece inside the lock, when the context already holds it. And an
integration id from an import file is not the validated integer the
endpoint's serializer produces, so a hand-edited export failed the job
with a database error.
* test: land a second click while a Slack post is still in flight
The lock that keeps two clicks off one row had no Slack coverage, which is
what the size and deadline on the answer are there to protect. The stub
holds one channel open long enough for the second click to arrive.
* docs: say what an empty integration list means, and what an authorized user does
It read as though only the row and frontend-only actions carried nothing,
when HTTP and email carry nothing either, for reasons of their own. And an
integration's authorized user does not outrank the clicker, it replaces
them: the dispatch never compares the two.
* fix: check what a duplicating user may read on every path that copies an action
The permission check only ran where a person copies an action in place, since
that was the only path carrying an actor. Duplicating a table or a database
goes through the serialized import instead, which had nobody to check, so the
copy kept a bot its owner may not read.
`ImportExportConfig` now carries who asked for the copy. An import from a file
and a template install still carry nobody, and keep what they came with.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: refuse an imported integration the application would not accept
The endpoint refuses a Local Baserow integration on a database, because its
authorized user would replace the clicker (ADR 006 section 5). The import path
never asked, so a hand written export placed one anyway, and it rode into
every duplicate and snapshot from there.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: read an integration id out of an export before keying the mapping with it
A list or a dict is not hashable, so looking one up aborted the whole import
job with a `TypeError`. `true` hashes equal to 1 and quietly picked up
whatever integration 1 was remapped to. A numeric string missed the mapping
and then resolved the id the export was written with, which is another
database's.
Coerced before the lookup rather than after, and booleans, containers and
floats refused outright.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* perf: read the bot once however many actions of a click share it
`select_related` only saves the base row. The token lives on the subtype, and
resolving that row by row cost a query per action, inside the lock that guards
the row. Three actions sharing one bot read it three times.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: hold a Slack post to the time its lock was sized for
The timeout Requests applies is per socket operation, not for the call as a
whole, and redirects were followed, thirty of them if offered. A configured
endpoint could spend a fresh timeout on every hop and outlive the lock that
guards the row, letting a second click through.
Redirects refused, since `chat.postMessage` answers directly, and the lock
sized off the socket operations the way the email service already does.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: remove only the containers the local e2e run started
A trap replaces the one before it rather than adding to it, so the Slack stub's
had to name httpbin too. It named it whether or not this run started one: point
E2E_HTTP_STUB_URL at your own stub and the block that starts httpbin never
runs, but the exit still removed whatever was using that name.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: let a fetched integration list land on the application still on screen
The fetch mutated the object it was handed, so a `forceSetAll` in flight left
the bots on an object nobody renders while the one on screen stayed empty. And
it cleared and repopulated with no ordering guard, so a bot created while the
request was open was wiped when the answer landed, with nothing to fetch it
again.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: ask again for a bot list the editor failed to fetch
The action cards are hidden rather than unmounted, so a fetch tied to a form's
own `created` ran once for the life of the editor. After a network blip the
dropdown read as a database with no bot, and the only thing offered was
creating a second one. Every form also reported the same failure, so three
Slack actions raised three toasts for one request.
The list owns the fetch now: it knows when a card opens, so reopening one asks
again, and there is one place to report from.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: make the integration dropdown selectable, editable and reachable
Every parent binds it with `v-model`, which listens for `update:modelValue`.
Creating an integration from the footer emitted `input` instead, so the bot was
created and then not selected. The auto select of a lone integration went the
same way.
The footer was an anchor with no href, so tab skipped it and no key opened it,
which left creating a first bot unreachable without a mouse.
And the footer only ever opened the modal to create. A database has no
integration settings page of its own, so an imported bot, whose token the
export stripped, could not be repaired from anywhere.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: say when a Slack action carries a bot with no token
An export strips the credential, so an imported bot arrives named and unusable
while the action still looks configured. Every click was then an outbound
request that was never going to work, and the reason only arrived after it.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* test: cover the Slack request deadline and its refused redirects
The tests for these were written with the fix and then left out of it, so the
lock sizing and the refused redirects went in uncovered.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: report a failed integrations fetch once for the request, not once per waiter
Moving the fetch to the list left the reporting with the caller, and a list can
be asked for the same request more than once. Each caller then caught the same
rejection and raised its own toast. Reported from inside the shared request
instead, so one failure is one message however many are waiting on it.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: describe the Slack answer where the dispatch actually puts it
`generate_schema` advertised `ok`, `channel` and `ts` at the root while the
dispatch kept them under `data`, so every path the data explorer offered for a
Slack node resolved to nothing. Chaining off one has never worked.
The schema describes the wrapper now, rather than the dispatch dropping it.
That leaves every sample an earlier version stored exactly as it is, so no
migration is needed. The cost is that this service describes its answer one
level deeper than the HTTP and email ones, which unwrap theirs instead.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* feat: say who else can use a Slack bot when its token is entered
A database's integrations are shared by everyone who can build in it, and nothing said
so at the moment that matters. The warning goes where the decision is made, and is
worded around reuse rather than exposure, since the token is never shown back.
It comes out again once ownership or private integrations land.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* docs: keep the integration rule in one place, and say what the new methods take
The comment on `allowed_integration_types` listed every action type's reason, which goes
stale the first time someone adds one. It now says what an empty list means and points
at the ADR, which carries the reasoning.
The methods this branch added or changed say what they take and what they answer with.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* docs: bring ADR 006 up to what phase 4c actually built
Section 5 said databases carry integrations while later sections still read as though
external actions were unbuilt: nothing to strip, nothing to reconfigure, no integrations
on a database at all.
Now recorded: which integration types an action may carry and why the list is empty for
most of them, that the database derives what it holds from those lists rather than
keeping a second one, which copy paths carry the requesting user and which deliberately
do not, what happens to a stripped token on import, and the Slack action's own
lifecycle.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* test: prove a Slack answer reaches the paths its schema offers
Three gaps found reviewing the fixes against what was asked for.
The e2e still reopened the dropdown to pick the bot it had just created, which
was the manual step the Vue 3 event was meant to remove. The dropdown now says
so on its own, and a form test covers it, asserting the selected value rather
than the item list, which holds the name either way.
And nothing exercised an automation node reading a Slack result, which is what
the shape question was really about. The new test builds the stored result with
`dispatch_transform` and walks the paths out of `generate_schema`, so moving
either side without the other fails it.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* refactor: cut the comments back to what is not already in the code
Roughly half of what this branch added restated the line below it or explained
at paragraph length what a sentence covers. Kept the ones that say why, dropped
the rest, and fixed a stale reference to an exception this service no longer
raises.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: keep the integration dropdown reaching its parent
Declaring `update:modelValue` in `emits` was half a fix. Vue keeps a declared
event's listener out of `$attrs`, so the parent's `onUpdate:modelValue` stopped
falling through to the dropdown below, which was the only thing carrying a
list selection back. Creating a bot worked; picking an existing one silently
did nothing, for the builder's data sources and user sources as much as for a
button field.
Everything now goes through `select`, and `autoSelectFirst` reads what the
parent actually bound rather than the `value` prop nobody passes.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: do not remember a load that backed off, or share one across requests
A fetch that backed off returned the list it declined to fill, which read as
success: the caller marked the database loaded, so bots that existed before
the request never appeared and nothing asked again. It answers null now, and
only a fetch that committed marks the load.
The in-flight map was also module scope, which one server process shares
across every request it renders. Keyed by store instead.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: let an action's bot be cleared without permission to read it
`get` cannot tell a key the request never sent from one sent as null, so
clearing the integration resolved to the one already carried and was refused
to anyone who could not read it. Removing a credential takes nothing away
from anyone, so it needs no such permission. An absent key still keeps and
checks what the action carries.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: stop a failed Slack request repeating the message back in its error
`except ConnectionError` caught the builtin, which requests' own
ConnectionError does not inherit from, so that branch never ran and the
failure fell through to a clause that raised `str(e)`. Requests builds that
message out of the whole URL, and this one's query string carries the channel
and the resolved message text.
`response.json()` sat in the same block, so a proxy's HTML or a redirect body,
which `allow_redirects=False` now stops following, surfaced as an opaque parse
error. Read outside it, and reported as an answer that is not Slack's.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: let a database still turn integrations off entirely
The override answered from the action types alone, so `supports_integrations`
was dead for databases. The two tests that turn it off to exercise the guard
were passing on the allow-list instead, and would have passed with the guard
deleted. Both now name a type the allow-list accepts, so only the flag can
refuse it.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* docs: say that a bot's token can be read, because it can
The warning claimed the token stays hidden. The integrations endpoint
serializes it in the clear, as it does for every other type, and this branch
is what exposes that endpoint on databases. Reworded, and the ADR with it,
noting that masking it on read is worth doing and is not scoped here.
Also finishes the comment trim, which a script gave up on halfway through, and
sources the Slack logo from the integration type that already owns it.
Claude-Session: https://claude.ai/code/session_0125wkP6wPcyQ3MZwtbDawhr
* fix: send the Slack channel and message in the body, not the query string
Both are row data. A query string is what a proxy writes to its access log, and
this PR makes the destination host configurable, so the message travelled
further than it needed to. The error path already worked around this by
refusing to repeat `str(e)`; sending the payload as form data removes the
reason for that.
* fix: keep a bot out of a duplicate made by someone who may not read it
A duplicate is taken with `exclude_sensitive_data=False`, so the bot was cloned
into the new database with its token. The action's `ReadIntegration` check then
ran against that clone, which lives in an application the duplicator owns and
can read, so it always passed. Denying read on a bot and duplicating the
database was a way to obtain its token.
The credential is left out of the export instead, and the copied action drops it
for want of one it may carry. One `check_multiple_permissions` call for the
whole list rather than one per integration.
The existing test passed only because it denied the operation by name, which
denied the clone too. The new one denies a single object, the way a per-object
role assignment does.
* perf: stop reading the same integration row three times on every save
The check resolves the integration to check it, then hands the id on and the
service type reads the same row twice more, base and subtype. It passes the
instance it already has instead. Its own checks are looser than the ones that
have just run.
The click path resolved integrations with `specific_iterator` directly, which
skips each type's `enhance_queryset`, trading one query per action for one per
related row. It goes through `IntegrationHandler.get_integrations` now.
Also says in the comment why an edit that does not resend the id is still
checked: the channel and the message are the whole of what a bot does.
* fix: skip an integration an application will not take, rather than fail the import
The gate refused the whole job. No export this instance writes can fail it
today, but a release that stops registering an action type would turn every
snapshot holding that integration into one that cannot be restored, and a
restore is the one path a user cannot work around.
The row still does not land, which is what the gate is for. An action naming a
skipped integration imports unconfigured, the same as for any integration it may
not carry. Only the database type narrows what it accepts, so nothing else can
see the None this now returns.
* refactor: tidy what the database does with its integrations
Share one cache across the integrations it exports and imports, the way builder,
automation and dashboard already do, so a type that serializes a file writes it
once. Count them in the import progress, which reported 100% before they were
done.
Keep `supports_integration_type` out of the middle of the class attributes and
read the accepted types once per call instead of scanning the registry inside a
generator. Not cached across calls: a test can register an action type.
Drop `_read_response_within_limit`, which had become a one-line pass-through to
the util the module already imports.
* fix: do not let a delayed integrations fetch undo a change made while it ran
Only a create or a delete bumped the generation the fetch reads, so an edit or a
reorder landing mid-request was overwritten by an answer written before it. For
a bot's token that reads as a missing credential on a bot that has one.
The fetch also restored the counter to what it found after writing its answer,
which dropped a bump a create had committed in the meantime and let a second
fetch write a list without the new bot. It commits the rows directly instead:
its own writes were never a change to back off from.
* fix: say when a Slack action points at a bot that is not there
An empty list read as healthy, so a bot deleted since, or one named by an import
made elsewhere, left the action looking configured until the click failed. It
now waits for the list to have been fetched rather than for it to be non-empty,
and reports a bot it cannot find.
A fetch that failed stays quiet: the list is unknown then, not empty, and the
failure already raises its own message.
* fix: offer to edit an integration only where there is nowhere else to
The edit button went into the shared dropdown, so it appeared in the builder
data source and user source forms, automation, dashboard, the AI agent form and
the SMTP form. All of those have an integration settings page; a database does
not, which is the reason the button exists.
It is behind a prop now, and the Slack form passes it only for a database.
* fix: match the slow Slack stub on the body the request now sends
Moving the payload out of the query string left this stub matching on a
`channel` query parameter that is no longer there, so it never matched and the
catch-all answered at once. The concurrent-click test lost the delay its lock
assertion depends on, and would have passed without ever holding a lock.
* fix: ask again for an integrations list that changed, rather than dropping it
Bumping the generation on an edit or a reorder made the back-off common, and
only the button field caller reads the null it returns. The builder awaits this
inside `loadExtraData` and then marks itself loaded either way, so renaming an
integration while that fetch was open left every data source and user source
dropdown empty until a reload.
It asks again instead, up to three times, and answers null only when the list
will not settle. The tests give the retry the answer a server would have by
then.
* fix: do not call a bot missing when it may only be hidden
`get_integrations` filters the list by what the caller may list, so a bot absent
from it is either deleted or invisible to this user and there is no telling
which. Someone with no list access to a colleague's bot was told a working
action was broken, and following the message would have overwritten it.
* refactor: read the accepted integration types without building a set
One membership test does not need a frozenset of every type: the generator it
replaced short-circuited and allocated nothing. Not keeping the answer was the
right call; building the set was not.
Also `or []` for the imported integrations, since a hand-edited export can name
the key with an explicit null, and two test names and a docstring that still
described the behaviour before this branch changed it.
* test: open the Slack answer's data node before reading its fields
The schema describes the wrapper the dispatch actually writes, so `ok`,
`Channel` and `Message timestamp` sit one level in. The test still expected
them beside the action, and had been failing since the schema was corrected.
Opening the node is what a user does to reach them.
* fix: mount the Slack stub from the directory the recipe actually runs in
`just --justfile e2e-tests/justfile` runs recipes from that file's own
directory, so `$(pwd)/e2e-tests/stubs/slack` pointed a level too deep. Docker
created the missing path and mounted it empty, WireMock started with no
mappings, and every Slack call answered 404. CI was unaffected: it mounts the
stub by workspace path.
* docs: say why the application type is compared as a literal here
`integrations` must not import from `database`, and the sibling forms compare
`application.type === 'automation'` the same way.
* Revert "fix: mount the Slack stub from the directory the recipe actually runs in"
This reverts commit
|
||
|
|
1cdb8fd9cd |
feat[2/6]: Run configured actions when a button is clicked (#1722) (#5786)
* feat: add an optional actor to the service dispatch context (#1722) * feat: add a context manager to run actions outside the undo stack (#1722) * feat: resolve the acting user and permission workspace for local baserow services (#1722) * feat: dispatch local baserow services without an integration (#1722) * fix: assert actor strictly and cover the integration-less read path (#1722) * chore: add changelog entry for actor-based local baserow dispatch (#1722) * fix: carry the dispatch actor through clone explicitly (#1722) Subclasses replace `own_properties` rather than extend it, so listing `actor` there only worked for contexts that repeated the entry. Carry it over in `clone()` instead, popping it before construction so no subclass constructor ever sees an unexpected `actor` kwarg. * test: cover an unauthorised actor on the local baserow read path (#1722) The existing negative test is on the create-rows path, where the rejection comes from the action itself. This one exercises the `build_queryset` permission check, the only place the branch feeds a resolved actor straight into `check_permissions`. * fix: resolve the delete row acting user before the row ids guard (#1722) The delete path resolved its user inside `if row_ids:`, so an empty id list skipped the check the other paths make up front. * feat: add the database workflow action models (#1722) * feat: register the database workflow action types (#1722) * fix: mix in CustomFieldsInstanceMixin for database workflow action queryset enhancement (#1722) DatabaseWorkflowActionType only extended WorkflowActionType, which does not provide enhance_queryset. DatabaseWorkflowServiceActionType's enhance_queryset override calls super().enhance_queryset(), which raised AttributeError once anything iterated a field's workflow actions. The builder's equivalent type mixes in PublicCustomFieldsInstanceMixin for the same reason. * feat: add the database workflow action handler (#1722) * feat: add the database workflow action service layer (#1722) * fix: capture the workflow action id before deleting it (#1722) * feat: add the database workflow action API (#1722) * fix: put ERROR_USER_NOT_IN_GROUP in the 400 schema bucket (#1722) * feat: add the workflow action ordering endpoint (#1722) * feat: export, import and duplicate button field workflow actions (#1722) * chore: add changelog entry for button field workflow actions (#1722) * fix: remove the unused database workflow action object scope (#1722) DatabaseWorkflowActionObjectScopeType was registered in the object_scope_type_registry but referenced by no OperationType and no queryset filter. Permission checks for workflow actions run against the parent field's own ReadFieldOperationType / UpdateFieldOperationType by design, so the scope had no consumer. test_all_scope_types_referenced_by_operations_are_registered asserts a strict equality between registered scope types and operation context scope names, and correctly failed on the orphaned registration. Deleting the scope (rather than adding a matching operation type) keeps the phase's permission design intact. A later phase adding a dispatch operation can reintroduce the scope legitimately once something references it. * fix: create a matching service when a workflow action type changes (#1722) PATCHing an action's type reached the service with the old type, so the new action was built from the old type's service and blew up on a missing field. Mirror the builder: resolve the new type, prepare values without an instance so a fresh service is created, and carry field and order over. Also covers cross-workspace PATCH and DELETE on the item endpoints, the only routes with no field-scoped path parameter. * test: back each workflow action fixture with its own service type (#1722) The fixture hardcoded an upsert row service for every action type, so a delete_row action wrapped a local_baserow_upsert_row service, a state prepare_values can never produce. Resolve the action type and build the service its service_type names instead. * test: assert the service is deleted when a button field converts away (#1722) The test used plain django_db, so the on_commit receiver that deletes the service never ran and ADR 006 section 8 was only half verified. * fix: gate the workflow action endpoints behind FF_BUTTON_FIELD (#1722) Button field creation is already gated, but the action config API stayed open once the flag was turned off. * docs: correct the import cycle comments and flag the unwired formula generator (#1722) The cycle runs field_types to workflow_action_types to local_baserow service_types and back, not through fields/models. Also record that formula_generator has no consumer yet and what wiring it needs. * docs: record the export path constraint and track the field duplication gap (#1722) ADR 006 section 6 gains the constraint that FieldType.export_serialized carries no files_zip, storage or import_export_config, so the action export path cannot strip credentials once external integrations arrive. Single field duplication drops workflow actions, contradicting section 8. Track it with a strict xfail so it fails the moment the missing FieldType duplication hook lands. * refactor: hoist the workflow action imports in ButtonFieldType (#1722) The local imports carried a comment claiming they broke an import cycle. There is no cycle: neither workflow_actions.handler nor workflow_actions.registries reaches fields.field_types. Only workflow_action_types does, via integrations/local_baserow/service_types, and neither local import touched it. Verified by hoisting both to module scope: manage.py check passes and the field, workflow action, core, integrations and builder suites are green. * docs: record that url_formula retires into an open_url action (#1722) Phase 1 shipped the button with a `url_formula` because it landed before the action layer. The ADR never said whether that attribute was permanent, which left the phase 2 click behaviour undefined and would have got more expensive to settle once real data existed. It is scaffolding. Opening a URL becomes an `open_url` action and the attribute retires under the zero-downtime rules, so a button never carries both. Because that type is frontend-only the client runs it without the dispatch endpoint, which is what keeps a URL-only button working in public views under section 7. * docs: correct the public view reasoning for frontend-only actions (#1722) The open_url section justified the client-side execution path by saying it kept a URL-only button working in public views. Phase 1 review concluded the opposite: button fields should not appear in public views at all, and ButtonFieldType now sets can_be_in_public_view = False. The conclusion stands on its own merits, but the reason was wrong, and leaving it would have had phase 2c design around a constraint that no longer exists. * feat: add the database dispatch context for button clicks (#1722) * fix: guard DatabaseDispatchContext against a missing field or row (#1722) field and row default to None only so clone() can reconstruct the context without passing actor. A real dispatch never has either as None, so raise early instead of surfacing an opaque AttributeError deeper in a data provider. * feat: add the raw row data provider for button dispatch (#1722) * test: exercise both row data providers against the same row (#1722) * feat: dispatch a single database workflow action (#1722) * test: cover the base database workflow action type's dispatch refusal (#1722) * feat: add the dispatch operation and restore the workflow action scope (#1722) * feat: run a button field's actions in order on click (#1722) * fix: authorise an actionless button click and prove the click lock holds * feat: add the button field dispatch endpoint * fix: pair each dispatch result with its action inside the service * test: pin the row snapshot semantics for button dispatch and add a changelog entry * fix: ignore a supplied integration on a button action's service integration_id is writable on the service request serializer and the handler that resolves it does no permission check, so a create or update could point a button action at any integration in the instance. At dispatch the service then acts as that integration's authorized_user instead of as the person who clicked, which inverts ADR 006 section 5 and misattributes every row the click writes. Drop the id in prepare_values, the way deserialize_property already hardcodes None on import. Also adds a dispatch endpoint test that a database token cannot authenticate there. * fix: make the row data providers safe against each other's context Both providers share one registry, so get('row.…') now validates inside an AI field's prompt and resolves against a HumanReadableRowContext, which has no row. That raised an AttributeError the caller saw as a 500. The mirror case, get('fields.…') in a button action argument, had the same problem. Both now return None instead. Also resolves row.id, since row_id on the update and delete services is a formula and this is the only way an action can name the clicked row. * fix: harden the button dispatch error path and its click lock Two problems in the dispatch loop. The catch wrapped every exception into WorkflowActionDispatchError, whose error template renders the message verbatim, so a DatabaseError or an internal ValueError put its text in the API response. Only the dispatch exceptions written for the clicker are wrapped now; everything else is logged and left to the normal 500 handler. The lock was deleted unconditionally, so a sequence that outlived the TTL deleted the lock of the click that took the key after it. The value is now a token this click checks before deleting. The TTL moves to BASEROW_BUTTON_DISPATCH_LOCK_TTL_SECONDS, alongside the builder's dispatch cache TTL. Adds an end to end test that an update action can target the clicked row through get('row.id'). * test: resolve the button dispatch role rule through RBAC The existing test only asserted the operation is listed in default_roles, which passes even when RBAC cannot resolve the workflow action scope. Its parent chain runs workspace, database, table, field, workflow action, and the scope itself was deleted in phase 2b and restored for this operation, so it is worth exercising. A viewer is refused, an editor clicks. * feat: add the database workflow action api client * feat: register the database workflow action types on the frontend * test: pin the create/update/delete row action-to-service wiring * feat: add workflow action reconciliation for the button field editor * fix: treat unknown local ids as new actions and document the type-diff boundary * feat: add the button field action list editor * fix: namespace the sortable id fallback so it cannot collide with a real action id * feat: save a button field's actions when the field form is submitted * fix: re-sync workflow actions after save and guard the mount fetch by field type * feat: report whether a button field has workflow actions * feat: dispatch a button field's actions when its cell is clicked * fix: keep a button field's actions when the field is duplicated * chore: add changelog entry for the button field action editor * fix: let local baserow service forms pick a table without an integration * fix: send the service type when a new button action is first saved A buffered action's service has no `type` until the server makes one, so the follow-up update after the create sent a service payload the API's polymorphic serializer could not type and answered with a 500. The table a user picked on a brand new action was therefore never persisted, while the same edit on an already-saved action worked because its service carries the type the server assigned. Take the type from the service the create just returned. * fix: correct the upsert row form on the integration-less path Two defects the button field's action editor exposed in the shared form. The table loading spinner is only lowered again by the `loading` prop going false, which the builder toggles around the save it makes when the table changes. The button field buffers its edits instead, so nothing ever lowered the spinner and the field mappings form, hidden behind it, never came back. Raising it is now opt-out via `savesOnTableChange`. The "choose a table" hint tested `values.table_id`, which this form never populates: `allowedValues` is `['field_mappings']`. It was dead code until the `databases` prop widened the condition, and then showed permanently. Test the service, which actually carries the table. * fix: render the field mapping formula inputs in the button field editor A "create a row" action's field mappings render their formula input through the shared InjectedFormulaInput, which resolves the component to render from an injected formulaComponent. The builder and automation editors provide one; nothing in the database module did, so the injection was undefined and Vue rendered a bare comment node where the input should be. FieldButtonSubForm now provides a DatabaseFormulaInput, plus the row data provider a button action's arguments actually resolve against. Additive: InViewport, FieldMappingForm and FieldMappingsForm are untouched, so the builder, automation and dashboard callers are unaffected. * test: cover the button dispatch operation reaching existing roles RBAC reads a role's operations from the core_operation table, so an instance whose table predates the dispatch operation denies the click to every role. Only the post_migrate receivers write that row, so a test database never shows it while a long lived one refuses until migrated again. Pins both halves: the deny without the row, and the repair after the sync. * fix: discard the buffered action list when the field editor is cancelled UpdateFieldContext keeps one sub-form per field alive across opens, so cancelling only reset the form values and left the action buffer intact. The discarded action was still listed on the next open, and a later save created it for real. Rebuild the buffer from the last server response in reset(). * fix: refresh a button field's has_workflow_actions after saving its actions The flag is derived server side and returned by the field create/update response, which is built before the workflow actions are saved. The store committed that stale value, so a freshly configured button field kept rendering the url link branch until the page was reloaded, and a field that lost its last action kept a dispatch button that did nothing. * fix: disable the button field dispatch until the row exists The row create modal renders every visible field, so the dispatch button was clickable there and posted a request without a row id, which the API rejects with a generic error. Gate it on rowIsCreated like the AI field does. * fix: keep the button action editor out of the field form payload The nested action and service forms register up the form chain, so the field create/update body carried their service config too. Return only the field's own values from the sub-form. * test: drive the buffered action list through the real editor The test assigned localActions directly, so it never exercised addAction and would still have passed if adding an action had called the API. * test: restore the role cache after the dispatch operation test The test deletes the operation rows and resets the handler's process wide role cache. Without teardown a failure between the delete and the re-sync would leave later tests in the same worker with a cache missing it. * feat: add the open url button field workflow action * fix: give workflow action formulas their application type context * feat: return frontend only actions to the browser instead of dispatching them * test: prove the open-url lock skip and the client_actions wire shape * fix: remap field references inside an open url action on import * feat: add the open url action type to the field editor * test: pin the segmented control to the 36px small size * feat: choose and change a button action type from a dropdown * fix: type a service payload when a button action changes type Changing an action's type into a service-backed type sent `{ type, service: {} }` in one PATCH. The empty service carries no nested `type`, so the polymorphic service serializer fails with an AssertionError and the API answers 500. The type change now goes on its own and the config follows against the recreated action, typed from the service that PATCH returned, exactly as a create already did. Also remount the per-row form on a type change: `create_row` and `update_row` resolve to the same component and the row key does not change, so Vue reused the instance and could show the old config. * fix: type a button action's service on a plain config update too A type round trip inside one editing session (create_row to update_row and back) leaves the type matching the server's, so the payload carries no top-level `type` and the deferral guard does not fire. Its service is still brand new, because picking a type resets the config and the remounted form re-seeds it, so it reached the API untyped and hit the same polymorphic serializer 500. The service fixup now lives in `withTypedService`, shared by the create follow-up and the plain update. An empty service is dropped rather than sent, a configured one takes its type from the action the server already has, and an update left with nothing to say makes no call. The server response is read with the same optional chaining the surrounding id guards already use. * fix: run a button's browser side actions after the dispatch response * test: prove a button's client actions run one after another * feat: retire the button field url attribute into an open url action * fix: keep the merged button field migration untouched * chore: add changelog entry for the open url button action * fix: decide a button url's protocol with the browser's url parser A leading C0 control character made the scheme regex read a `javascript:` url as relative, so it passed through untouched and was assigned to window.location, where the parser stripped the control character and ran it. Parse with new URL() instead, which is the same parse the browser performs. * docs: correct adr 006 on how open_url actually reaches the browser Section 2 still said a frontend-only action skips the dispatch endpoint and that url_formula is still read. Both are now wrong: the client always dispatches and the server returns the frontend-only actions under client_actions, and url_formula is a deprecated column nothing reads. * test: record that clicking an existing button needs the flag on The registration comment claimed existing button fields keep working with the flag off, but only reading does: has_workflow_actions is serialized either way, so the cell renders an enabled button whose click the gated dispatch endpoint refuses. State the real boundary and assert it. * test: assert the open url formula reference the frontend actually uses The formula lacked the field_ prefix, so it was not the reference form the migration writes or the data provider resolves, and the assertion only checked the id appeared somewhere in an echoed string. * fail a button click that would write an unwritable field ADR 006 section 5 requires a click to fail when an action would write a field the clicker cannot write, rather than skipping it the way the builder's upsert does. The upsert service type is shared, so the rule is carried on the dispatch context: DatabaseDispatchContext turns on requires_writable_fields, and only then does the upsert raise instead of filtering. The builder, automation and dashboards inherit the default and keep skipping. The refusal is a PermissionDeniedDispatchException, listed in USER_FACING_DISPATCH_EXCEPTIONS so it reaches the clicker's error toast as ERROR_WORKFLOW_ACTION_DISPATCH_FAILED rather than a 500. It is raised before any row is written, so nothing lands. * remap a button action's service formulas on import A create or update row action can map a field to a formula such as get('row.field_25'). Only the field mapping's field_id was remapped on import, so a duplicated table or an imported database kept a formula naming the source table's field and silently wrote the wrong value. Wires the formula generator that was already there to a database-side import_formula, and gives the row data provider the import_path it needs to remap a field reference. * cover the button dispatch failure toast ERROR_WORKFLOW_ACTION_DISPATCH_FAILED is the only failure surface a clicker gets until a later phase, and nothing tested it. Adds the API side (400, the error code, and a body naming the action that failed, with the earlier action's row still standing) and the cell side (both branches of the catch: a handled API error goes through notifyIf, anything else raises the toast itself). * correct adr 006 on the button loading state Section 3 described broadcasting the loading state to every open view over the row realtime channel. That was descoped to phase 4 on 2026-07-28: local dispatch is synchronous, so the clicker gets the result in the response and other viewers see the rows change through the normal signals. The clicking user's own loading state does exist, so the section now describes that and records the deferral. * log skipped formula remapping and correct import docs The formula importer swallowed parse and unknown-provider errors without a trace. The swallow stays, but a genuine failure now logs a warning, and the comment says a partial remap is possible. Two import/export tests claimed the formula came back untouched. It is re-rendered from its parse tree, so casing and spacing may change; the wording now says what actually holds. The ADR 006 sequence diagram returned results after the failure branch with no else, contradicting section 2. Added the success branch. * refresh the clicker's grid after a button dispatch A dispatch changes rows server side, so the client applies nothing itself, but the WebSocketId header still left it out of the realtime broadcast its own request triggered. The clicker's grid stayed stale until a reload while every other viewer saw the change. Requests can now opt out of the header. * offer field mappings on an unsaved button action The upsert form derives its mappings from the service schema, which only a saved service carries. The button editor buffers its changes, so a newly added create or update row action had none and the form reported that the table held no writable fields. Nothing could be mapped until the field was saved and reopened. The editor now fetches the target table's fields itself, which also keeps the list right when a table other than the saved one is picked. * keep the add button out of the action list's sortable container The sortable directive builds the new order from every element child of the dragged item's parent. The add button sat alongside the action rows, so its missing sortable id arrived as undefined, the id-to-action lookup missed, and an undefined entry landed in the list. The next render then threw on action.id and took the whole editor down, which is why adding and deleting stopped working after a drag as well. The rows get a container of their own, as every other sortable list in the codebase already does, and an unresolvable id no longer reorders anything. * name the row provider after the row it exposes The picker group was labelled just "Row", directly under the action's own table picker, which reads as a row of that table. It is the clicked row, and there is no row of the target table to reference: a delete or update action chooses rows by id. Also covers deleting several rows in one click, which the service's own tests only exercised with an integration behind them. * match the action editor to the figma Four gaps against the design: The actions section had no heading. The design puts "Actions" and "Add action" on one row above the cards, under a divider; the add button sat below the list instead, with no label and no rule. The empty state invented copy the design does not have. It now shows the heading and nothing else. The drag handle was an icon glyph. The design draws two columns of three dots, which is how the builder draws its own handles, so it is drawn the same way here. The 10px handle plus its 10px gap keeps the 20px slot the icon had, so the dropdown width above is unchanged. The type dropdown searched with the generic "Search" placeholder rather than "Search actions". * annotate whether a button field has actions when fields are listed has_workflow_actions is serialized for every button field, so the property's own exists() cost one query per button on every table load. Annotate it in enhance_field_queryset, which the bulk field fetches already run, and keep the query as a fallback for a field fetched alone. * refuse a dispatch whose integration has no authorized user authorized_user is nullable, and an import nulls it when the exported username is not in the target workspace. get_acting_user returned that None, which reached a permission check as an anonymous user. Raise the same exception it already raises when no actor supplies a user. * stop a re-picked table hiding the field mappings behind a spinner The action editor saves nothing when the table changes, but the upsert form still raised its own tableLoading, which only the loading prop can lower. The table dropdown is not clearable, so re-picking the selected table re-emits the same id: table_id never changes, nothing refetches, loading never moves and the spinner covers the mappings for good. Opt the editor out with savesOnTableChange, and let loading raise the spinner as well as lower it for a caller that has opted out. * discard a field fetch overtaken by a newer one Picking two tables in quick succession left whichever response arrived last describing the mappings, which can be the table no longer selected. Take a token before the fetch and drop a response whose token is stale. Only the newest fetch lowers the spinner too, so an overtaken one cannot uncover the previous table's mappings mid flight. Clearing the table lowers it directly, since the fetch it supersedes no longer will. * name the failed action by its position, not its id The toast read "The workflow action 62 failed". That id is a primary key the clicker never sees anywhere in the UI, so it identified the action without telling them which one it was. The editor shows an ordered list, so report the position instead. Counted over the whole list, frontend-only actions included, so it matches what the editor shows. * add a deferred callback context for imports Some import work can only be done once everything has been imported. This lets an importer register that work instead of doing it, and runs it when the entry point that opened the context exits. * import a button field's actions once every application is in An action can target a table, and name fields, of another database. The field hook that imported them runs at the end of one database's import, so a reference into another one was read as trashed: the target table came out null and the field mappings were dropped, leaving a button that looked configured and did nothing. The action import is now deferred until every application has been imported, and the formula remapping it registers waits until every action has been imported. Every path that reaches the action import opens a callback context. * let the service decide how it acts, not the dispatch context A Local Baserow service already knows how it runs: with an integration it acts as that integration's authorized user on someone else's behalf, and without one it acts as the person in front of the screen. Two flags were telling it the same thing from the outside. `requires_writable_fields` is gone; the upsert service reads `service.integration_id` instead. `requires_integration` no longer takes a dispatch context and is False for every Local Baserow service, so a missing integration is refused by `get_acting_user` rather than one step earlier. The message a dispatch source sees is unchanged. * remap an open url through the shared formula import The url had its own `deserialize_property` calling `replace_field_id_references` by hand, because the `fields` data provider had no `import_path` and so the shared importer could not remap a `get('fields.field_25')`. The provider has one now, next to the one `row` already had, and the url is declared as a `simple_formula_fields` entry. The deferred import pass moved up to `DatabaseWorkflowActionType` so an action without a service reaches it too, which is what `open_url` needed. * let each application type say where the tables come from The shared Local Baserow service form carried its own integration dropdown and worked out the databases from whatever was picked. That only suits an application type that has an integration, and a button field has none, so it had grown a second way in through a `databases` prop. The form now only picks a table, from the databases it is handed. Supplying them belongs to the wrapper of the application type it is rendered in: the builder and automation offer the dropdown, a button field passes its own workspace. Both dropdowns are the same `LocalBaserowIntegrationPicker`. The builder's workflow actions were relying on the shared form's dropdown without ever asking for it, so they get `picksIntegration` and keep it. * chore: simplify code comments (#1722) Second pass over the comments this branch adds: cut the ones that restate the code, and rewrite the over-compressed ones to say why rather than what. * refactor: use the WithRegistry get_type shortcut in the action serializer (#1722) * fix: hand relational row values to actions as ids (#1722) A link row, select or collaborator field held a manager or a model instance, which reached the row API as something it could not write. The field type's internal value is used instead, and read-only fields fall back to their computed value. * fix: keep the target table's field names out of the dispatch error (#1722) The message reaches the clicker, who may have no access to that table at all. Roles are not field scoped, so the list could only ever name every mapped field, which says nothing the table name doesn't. * chore: clarify the is_frontend_only comment (#1722) * fix: keep the picked integration when the builder service form emits The form no longer emits integration_id, so rebuilding the service from the server's copy dropped a freshly picked one and saved the action without it. * fix: trash the imported applications when a deferred callback fails The callbacks run once the import loop is over, so a failure there raised past the cleanup and left a partial import visible. * fix: give client actions the row as it was at click time The dispatch takes its own realtime broadcast, so an earlier row action could update the cell's row before open_url resolved its formula. * test: assert the dispatch refusal names no fields * test: cover the button field click path end to end * test: cover realtime, reorder, save failure and public views end to end * fix: keep a button's loading state when the grid swaps the cell * test: cover unmount during dispatch, two buttons on a row and a re-picked table * test: cover an action type change, a reorder alongside it and a self deleting row * fix: refuse a database dispatch carrying an integration (#1722) An integration's authorized_user outranks the dispatch actor, so a service that carries one would run every click as that user. prepare_values already strips integration_id on the way in; guard the dispatch too, and cover both with regression tests. * feat: expose the clicked row id to a button's url formula (#1722) A url resolves through the fields provider only, which is built from the table's fields, so the row id was unreachable from an open_url action. The row provider carries it but is deliberately kept out of urls, since it returns raw types. Add the id to the fields provider on both sides instead. * fix: keep a duplicated action's target table outside the copied scope (#1722) Duplicating a table maps only that table, so an action pointing anywhere else found no mapping and had its target nulled. A duplicate stays in the same workspace, so the original table is still right; an import can land elsewhere, so that case still nulls. The button field also has to pass the import config down, or the service type cannot tell the two apart. * refactor: namespace the button dispatch lock setting under DATABASE_ (#1722) Matches BUILDER_DISPATCH_ACTION_CACHE_TTL_SECONDS ten lines above it, so the module a setting belongs to is readable from its name. Also documents it in configuration.md, which it was missing from. Not added to env-remap.mjs: the frontend never reads it. * refactor: namespace the row workflow actions as local_baserow (#1722) The create, update and delete row actions are Local Baserow specific today but will not always be, so name them for it now rather than carry a compat_type forever. Renames the three models, their types and the type strings; open_url is frontend-only and keeps its name. The builder already has models of these exact names pointing at Service, so the abstract base sets an explicit related_name to keep the reverse accessors apart. The migration is edited in place since it was created on this branch. * test: cover the button field's remaining basics end to end (#1722) Four gaps the unit and backend tests cannot reach on their own: - a click runs as the user who clicked, proven with two real users in two browsers rather than a mocked request - a duplicated table keeps its actions pointing somewhere resolvable, including a target outside the copied scope, which is the case that emptied the form's dropdowns - creating the field through the UI, the only coverage of the feature flag gating the type dropdown - a create row action, whose new row reaches the grid by a different broadcast to the other action types Removing an action joins add, reorder and retype in the editor save test. The suite gains three columns, so the viewport widens to fit them, and opening a field's editor now retries because the context self-hides when it does not fit. * chore: drop the button field changelog entries until the flag is lifted (#1722) The button field is behind FF_BUTTON_FIELD, so a single entry when the flag is removed says more than eight spread across the phases. The encode_uri entry goes with them and needs folding into that final entry: those formula functions ship ungated. * fix: read the clicked row again as each button action starts (#1722) The row provider held the row from click time, so an action saw what the actions before it did only for values behind a related manager: link row, multiple select and multiple collaborators query when they are read, and were never part of the snapshot the rest of the row was. A sequence mixed snapshotted and live values with nothing to say which was which. Every field now reads at the same moment, once per action. Reading the row after an earlier action deleted it fails that action rather than resolving to nothing, which would have written blanks over the deleted values. Reverses the snapshot decision in ADR 006 section 4, which leaned on the previous-action provider for fresher values. That provider is not built yet, and reads a named action's result rather than the row. * fix: keep a duplicated action's field mappings for a kept table (#1722) A duplicate keeps a target table that falls outside the copied scope, but that table's fields are outside it too, so nothing mapped them and every mapping was dropped. The action landed on the right table with nothing to write to it. An unmapped field is now kept when it still exists, which is what tells a field outside the copied scope apart from a trashed one. Trashed fields are still dropped, or they would come back pointing at the source table. * fix: restore the row id input on the get row data source (#1722) The service form stopped carrying an integration when the table picker moved to a `databases` prop, so the guard on this block never passed again and the data source could no longer be given a row to fetch. The upsert form was moved off the same guard, this one was missed. The table is what the row id depends on, so it is what the block asks for. * fix: apply a mapping edit when the field is left, not on its timer (#1722) A mapping formula is only applied 500ms after the last keystroke, so a save in that window read the buffer before the edit reached it and kept the old formula, with nothing to say the edit was dropped. The button field's editor makes this easy to hit: clicking Save is what ends the typing. The formula input now says when it loses focus, and a pending edit is applied there instead of waiting. Clicking Save takes the focus, so the edit lands first. Builder and automation stop waiting on the timer too. * fix: refuse to read a password field into a button action (#1722) The row provider handed back whatever the column stores, and for a password field that is the hash. Mapping it into a text field copied the hash somewhere readable, which every other surface prevents: the response serializer, exports and row history all mask it. A field type can now say its stored value must never be handed back, and the provider refuses to read one. The editor leaves such a field out of the data explorer, so it cannot be picked in the first place. * fix: identify an unsaved button action by more than its place (#1722) An action with no id yet was keyed by its position, so deleting one handed its key, and with it the form Vue had already built, to the action below. Two unsaved actions of the same type left the survivor showing the deleted action's configuration. Each action the editor makes now carries a client id, which identifies its row until the server gives it a real one. It is stripped from what is sent and from what is diffed, so nothing reaches the API. * fix: wait for the saved actions before the list can be edited (#1722) The editor started empty and filled itself when the fetch returned, so an edit made in between was replaced by the response. Keeping the edit instead would have been worse: the buffer would be missing the actions the user never saw, and saving would delete them. The list is only rendered once the fetch is in, with a spinner until then, so neither is reachable. * feat: tell the table when a button field's actions change (#1722) A cell renders a working button or an inert one from `has_workflow_actions`, and nothing told anyone else when that changed. Adding the first action, or removing the last, left every other session showing the button the wrong way round until a refresh. The action signals now send the button field out again, so the flag everyone holds matches what the field has. The field is all that is broadcast: an action's configuration is of no use outside the editor. * fix: keep a half saved action list open on its edits (#1722) A save that failed part way still closed the editor and replaced the buffer with the server's list, so whatever had not saved was gone with only a toast to say so. Keeping the buffer as it was is not enough either: the actions the attempt did create would be created a second time on the retry. The buffer now takes on the ids the server handed out before it is kept, so a retry updates what exists and creates only what does not. The server list is refreshed either way, so the retry diffs against what is really there, and the editor stays open on the edits rather than closing over them. * fix: stop the field watcher discarding kept action edits (#1722) The editor stayed open on a half saved list, then emptied itself anyway: the field's own update reaches the `field` watcher, which rebuilds the form from the server's list and throws the kept edits away. The watcher now leaves the form alone while a failed save is holding edits for a retry. Cancelling drops them, as it always did. * fix: require update rights to read a button field's actions (#1722) An action is serialized with the schema and select options of the table it writes to, and reading the field was enough to be handed them. A viewer with no access to that table could read it through a button pointed at it. Reading the actions now asks for the same right as changing them, which is what the rest of the editor already asks for. Clicking a button is unaffected: the dispatch reads the actions through the handler and keeps its own checks. * fix: hide the schema of a target table the reader cannot see (#1722) Requiring update rights to read a button's actions narrowed who is handed the target table's schema, but not to people who may see that table. An editor of one table could still read the fields and select options of another through a button pointed at it. A service now says whether the reader may see the table it writes to, and carries no schema when they may not. The editor says so in place of the field mappings rather than showing an empty list. The masking is a database only serializer, so the builder and automation are untouched. * refactor: drop the unused formula field error helper (#1722) `get_formula_field_error` lost its last caller and only its own tests still reached it. Premium's `get_ai_prompt_error` does the same job for the one field that needs it, on the same shared helpers. Two of its tests were really covering `get_table_field_ids` caching and its invalidation, which premium still relies on, so they now call that directly rather than going through the helper being removed. * test: cover removing an action, and drop the unused e2e helpers (#1722) `deleteWorkflowAction` and `orderWorkflowActions` were never called, and `updateWorkflowAction` only ever by this module. Reordering is already covered by dragging in the editor, but nothing covered removing an action, which is the path that deletes it server side on save. That test now exists and the two unused helpers are gone, with the third no longer exported. The suite needs every column on screen at once, so the viewport grew with the field the new test needs. * fix: refuse a click whose mapping points at a trashed field (#1722) A mapping whose field had been trashed was dropped at dispatch, so the click wrote the row without it and reported success. A create row action configured with one mapping made an empty row. It now fails the way an unwritable field already does, so the clicker is told rather than left with a row that quietly lost a value. The mapping itself is untouched, so restoring the field from trash heals it (ADR 006 section 8). A disabled mapping writes nothing, so a trashed field behind one is ignored. * docs: say that a button's actions are not undoable yet (#1722) ADR 006 section 8 claimed configuration changes were undoable like other field updates. Nothing makes them so: the service has no undoable action type, and the only undo related code keeps clicks out of the stack. The field update around a save is undoable, so undo leaves the label reverted and the actions as they were saved. A test pins that half state, so the deferral lives in code rather than only in prose, and fails when undo is implemented and the ADR needs revisiting. * refactor: move the service action base in with the types (#1722) `DatabaseWorkflowServiceActionType` sat beside the registry while every type extending it lived in `workflow_action_types.py`. The builder splits the same two files the other way round, with only its base type and registry in `registries.py`. A move, no behaviour change. It also takes the API serializer import out of the registry module, which now reaches no further than core and contrib. * refactor: keep the button field out of the generic field form (#1722) * chore: annotate the button field's workflow action types (#1722) * chore: annotate the rest of the button field's new backend code (#1722) * fix: release the button dispatch lock atomically (#1722) * fix: create a workflow action with its config in one call (#1722) * refactor: drop the unread integration assignments in upsert dispatch (#1722) * refactor: return the button dispatch result as a dataclass (#1722) * fix: keep a button field's actions when a type change is undone (#1722) * refactor: swap a workflow action's type in place instead of recreating it (#1722) |
||
|
|
c28849462a | Translations update from Hosted Weblate (#5884) | ||
|
|
622758343d | feat: Added videos to the guided tour (#5875) | ||
|
|
4feb259e10 | chore(deps): upgrade Nuxt to 4.5.0 and Vue ecosystem (#5763) | ||
|
|
3fb5c3c78b |
feat: improve action selection with searchable grouped menus (#5720)
--------- Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com> |
||
|
|
429847210a |
feat: Add Go to node type (#5582)
* Add Go to node * Remove goto_ prefix from destination_node_* * Move max dispatches check into _before_node_dispatch() * Remove translations from backend errors * move validate_goto_destination to a static method in the node type * Move clearing goto links to node type * Refactor cleared_goto_links to a more generic post_move_modifications * Remove automation concepts from integration land * Fix flakey service test * Remove 'node' mentions in CoreGotoServiceType * Implement new import_references() hook to avoid overriding import_formulas() * Fix forward-jumps * Fix test * Rename goto_node to just goto * Update comment * Clean up old references to connectors (we now use badge) * Refactor history handler's get_destination_labels() to get the destination from node type. * Handle max dispatch error in the dispatch_node() * Rename output_service_id to destination_service_id * Remove simulate check from goto node type. * Rename post_move_modifications to move_extra_data * Rename revert_move_in_workflow and after_move_in_workflow to revert_move and after_move respectively. * Rename import_references to post_import * Make _condition_is_set more consistent * Move CoreGottoServiceForm to integrations and refactor logic/imports. * Make node history label more generic. * Add afterMove() hook * Max dispatch check should happen for simulations too * Move _before_node_dispatch() error handling into the main try/except * Move post_import() into EasyImportExportMixin * Add a generic getDestinations() method to node types * Simplify setting destination_service_id * Use existing convention to inject registry * Set limit to 2000 for max dispatch * Add new skipped history status * Dedupe queries for destination labels * Ensure destination node validation considered deleted nodes. * Ensure destination nodes are ordered per graph * Set max dispatches default limit to 1000 * Only allow backward jumps. * Fix ordering bug that caused non-default router branch nodes to not appear as a destination target. * Fix migration * Re-add lost commit from Jeremie - rename to after_import() |
||
|
|
38b23b0298 | Latest translations for 2.3.2 (#5724) | ||
|
|
8db8947efd | Latest translations for 2.3.0 part 2 (#5677) | ||
|
|
7b7876aa7a | chore: remove automation beta flag (#5669) | ||
|
|
a1618b0a13 | Latest translations for 2.3.0 (#5665) |