[PR #22043] Add workflowPublishHistory #22008

Open
opened 2025-11-20 06:22:33 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/n8n-io/n8n/pull/22043
Author: @CharlieKolb
Created: 11/19/2025
Status: 🔄 Open

Base: ado-4348-add-new-internal-endpointsHead: ADO-4295_3


📝 Commits (6)

📊 Changes

18 files changed (+229 additions, -33 deletions)

View changed files

📝 packages/@n8n/config/test/config.test.ts (+1 -0)
📝 packages/@n8n/db/src/entities/index.ts (+3 -0)
packages/@n8n/db/src/entities/workflow-publish-history.ts (+37 -0)
packages/@n8n/db/src/migrations/common/1763387043735-CreateWorkflowPublishHistoryTable.ts (+37 -0)
📝 packages/@n8n/db/src/migrations/postgresdb/index.ts (+2 -0)
📝 packages/@n8n/db/src/migrations/sqlite/index.ts (+2 -0)
📝 packages/@n8n/db/src/repositories/index.ts (+1 -0)
packages/@n8n/db/src/repositories/workflow-publish-history.repository.ts (+56 -0)
📝 packages/cli/src/__tests__/active-workflow-manager.test.ts (+1 -0)
📝 packages/cli/src/active-workflow-manager.ts (+25 -4)
📝 packages/cli/src/environments.ee/source-control/source-control-import.service.ee.ts (+10 -7)
📝 packages/cli/src/public-api/v1/handlers/workflows/workflows.handler.ts (+2 -2)
📝 packages/cli/src/services/import.service.ts (+1 -1)
📝 packages/cli/src/workflows/workflow.service.ee.ts (+5 -5)
📝 packages/cli/src/workflows/workflow.service.ts (+9 -5)
📝 packages/cli/test/integration/import.service.test.ts (+5 -1)
📝 packages/cli/test/integration/workflows/workflows.controller.ee.test.ts (+2 -2)
📝 packages/cli/test/integration/workflows/workflows.controller.test.ts (+30 -6)

📄 Description

Summary

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/n8n-io/n8n/pull/22043 **Author:** [@CharlieKolb](https://github.com/CharlieKolb) **Created:** 11/19/2025 **Status:** 🔄 Open **Base:** `ado-4348-add-new-internal-endpoints` ← **Head:** `ADO-4295_3` --- ### 📝 Commits (6) - [`8c7f3e6`](https://github.com/n8n-io/n8n/commit/8c7f3e61f103988de8749b1738749e21759d7ca0) Add workflowPublishHistory - [`69d6376`](https://github.com/n8n-io/n8n/commit/69d6376df0fca500da9ed794345fa743d2d3a568) self review 1 - [`5c1c1e3`](https://github.com/n8n-io/n8n/commit/5c1c1e31d615008fe656ed268386cdfc74365e01) fix newly broken tests - [`4eb4152`](https://github.com/n8n-io/n8n/commit/4eb415282479e38ea4adf2eb221444bd2eec0fa7) Add util functions - [`100581a`](https://github.com/n8n-io/n8n/commit/100581a1d193013946aefc3ac3dca6648947e39b) typecheck - [`2363d19`](https://github.com/n8n-io/n8n/commit/2363d198ff29ad49e92e0ca11dc2966a130c1ef0) fix more tests ### 📊 Changes **18 files changed** (+229 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `packages/@n8n/config/test/config.test.ts` (+1 -0) 📝 `packages/@n8n/db/src/entities/index.ts` (+3 -0) ➕ `packages/@n8n/db/src/entities/workflow-publish-history.ts` (+37 -0) ➕ `packages/@n8n/db/src/migrations/common/1763387043735-CreateWorkflowPublishHistoryTable.ts` (+37 -0) 📝 `packages/@n8n/db/src/migrations/postgresdb/index.ts` (+2 -0) 📝 `packages/@n8n/db/src/migrations/sqlite/index.ts` (+2 -0) 📝 `packages/@n8n/db/src/repositories/index.ts` (+1 -0) ➕ `packages/@n8n/db/src/repositories/workflow-publish-history.repository.ts` (+56 -0) 📝 `packages/cli/src/__tests__/active-workflow-manager.test.ts` (+1 -0) 📝 `packages/cli/src/active-workflow-manager.ts` (+25 -4) 📝 `packages/cli/src/environments.ee/source-control/source-control-import.service.ee.ts` (+10 -7) 📝 `packages/cli/src/public-api/v1/handlers/workflows/workflows.handler.ts` (+2 -2) 📝 `packages/cli/src/services/import.service.ts` (+1 -1) 📝 `packages/cli/src/workflows/workflow.service.ee.ts` (+5 -5) 📝 `packages/cli/src/workflows/workflow.service.ts` (+9 -5) 📝 `packages/cli/test/integration/import.service.test.ts` (+5 -1) 📝 `packages/cli/test/integration/workflows/workflows.controller.ee.test.ts` (+2 -2) 📝 `packages/cli/test/integration/workflows/workflows.controller.test.ts` (+30 -6) </details> ### 📄 Description ## Summary <!-- Describe what the PR does and how to test. Photos and videos are recommended. --> ## Related Linear tickets, Github issues, and Community forum posts <!-- Include links to **Linear ticket** or Github issue or Community forum post. Important in order to close *automatically* and provide context to reviewers. https://linear.app/n8n/issue/ --> <!-- Use "closes #<issue-number>", "fixes #<issue-number>", or "resolves #<issue-number>" to automatically close issues when the PR is merged. --> ## Review / Merge checklist - [ ] PR title and summary are descriptive. ([conventions](../blob/master/.github/pull_request_title_conventions.md)) <!-- **Remember, the title automatically goes into the changelog. Use `(no-changelog)` otherwise.** --> - [ ] [Docs updated](https://github.com/n8n-io/n8n-docs) or follow-up ticket created. - [ ] Tests included. <!-- A bug is not considered fixed, unless a test is added to prevent it from happening again. A feature is not complete without tests. --> - [ ] PR Labeled with `release/backport` (if the PR is an urgent fix that needs to be backported) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the
pull-request
label 2025-11-20 06:22:33 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/n8n#22008
No description provided.