n8n/packages/cli/test/integration/public-api
Uddish Verma 94046cfb83
refactor(API): Migrate workflow update and delete to the decorator pattern
Moves `PUT /workflows/{id}` and `DELETE /workflows/{id}` onto
`@PublicApiController` and removes the legacy handlers, their hand-written spec
file and the now-unused request types. `workflows.id.yml` held only these two
operations, so the file and its `openapi.yml` entry go with them.

One behaviour change, deliberate: the update response now includes `shared`.
`WorkflowService.update` re-fetches with only the `tags` and `activeVersion`
relations, so `shared` came back undefined and the response mapper threw on
`workflow.shared.map(...)`. The update now re-fetches through
`findWorkflowForUser` for its response, as `getWorkflow` does and as
`createWorkflow` already does internally. The response gains a field; nothing is
removed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-13 15:10:18 +01:00
..
community-packages.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
credentials.test.ts feat(core): Limit end-user credential creation to owner, admin and project admin roles (#34064) 2026-07-13 16:12:56 +00:00
data-tables.test.ts fix(core): Require row read scope when data table writes return rows (#35651) 2026-08-10 15:28:41 +00:00
discover.test.ts feat(API): Add GET /api/v1/discover endpoint for capability discovery (#27014) 2026-03-20 08:31:55 +00:00
endpoints-with-scopes-enabled.test.ts chore: Migrate packages/cli to Typescript 7 (#34159) 2026-07-15 11:49:51 +00:00
evaluations.test.ts feat(API): Add public API endpoints to trigger and cancel evaluation test runs (#33979) 2026-07-14 09:03:36 +00:00
executions.test.ts feat(API): Migrate workflow tags endpoints to decorator pattern (#35829) 2026-08-13 10:44:28 +00:00
folders.test.ts feat(API): Allow creating a folder in the calling user's personal project (#34091) 2026-07-16 09:31:42 +00:00
insights.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
ldap.test.ts feat(API): Add public API endpoints for OIDC SSO configuration (#34313) 2026-07-28 10:58:55 +00:00
log-streaming.test.ts feat(API): Add public API endpoints for log streaming destinations (#34251) 2026-07-16 08:41:28 +00:00
n8n-packages-export.test.ts feat(core): Include workflow tags in exported packages (#34892) 2026-07-29 07:45:13 +00:00
n8n-packages-import.test.ts feat(core): Add variable conflict policy for package import (no-changelog) (#35265) 2026-08-05 12:20:51 +00:00
otel-settings.test.ts feat(API): Add public API endpoints for OpenTelemetry configuration (#34429) 2026-07-22 09:28:47 +00:00
projects.test.ts fix: Block manual project member changes when project roles are managed (#33270) 2026-07-03 07:34:14 +00:00
role-mapping-rules.test.ts feat(API): Add endpoint to create role-mapping rules (#36032) 2026-08-13 09:42:15 +00:00
roles.test.ts feat(API): Add endpoint to list all roles (#35609) 2026-08-11 09:10:36 +00:00
security-policy.test.ts feat(API): Add endpoint to set the SAML SSO configuration (#34224) 2026-07-20 10:15:32 +00:00
source-control.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
sso-oidc.test.ts chore: Bundle/2.x (#35563) 2026-08-05 08:29:40 +03:00
sso-saml.test.ts feat(API): Add endpoint to set the SAML SSO configuration (#34224) 2026-07-20 10:15:32 +00:00
tags.test.ts refactor(core): Move integration test utils for insights (#16693) 2025-06-25 17:32:54 +02:00
users.ee.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
users.test.ts feat(API): List members of a global instance role (#32836) 2026-06-24 13:11:53 +00:00
variables.test.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
workflows.test.ts refactor(API): Migrate workflow update and delete to the decorator pattern 2026-08-13 15:10:18 +01:00