feat(core): Initial workflow history API (#7234)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Val
2023-09-27 15:22:39 +01:00
committed by GitHub
parent 5c57e2ccc3
commit 0083a9e45d
14 changed files with 474 additions and 17 deletions

View File

@@ -65,6 +65,7 @@ import { JwtService } from '@/services/jwt.service';
import { RoleService } from '@/services/role.service';
import { UserService } from '@/services/user.service';
import { executionsController } from '@/executions/executions.controller';
import { WorkflowHistoryController } from '@/workflows/workflowHistory/workflowHistory.controller.ee';
/**
* Plugin to prefix a path segment into a request URL pathname.
@@ -161,7 +162,6 @@ export const setupTestServer = ({
config.set('userManagement.jwtSecret', 'My JWT secret');
config.set('userManagement.isInstanceOwnerSetUp', true);
config.set('executions.pruneData', false);
if (enabledFeatures) {
Container.get(License).isFeatureEnabled = (feature) => enabledFeatures.includes(feature);
@@ -313,6 +313,9 @@ export const setupTestServer = ({
case 'externalSecrets':
registerController(app, config, Container.get(ExternalSecretsController));
break;
case 'workflowHistory':
registerController(app, config, Container.get(WorkflowHistoryController));
break;
}
}
}