mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-22 12:19:09 +00:00
feat(core): Add production root executions (#14845)
Co-authored-by: Guillaume Jacquart <jacquart.guillaume@gmail.com> Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
@@ -60,6 +60,11 @@ describe('LicenseMetricsRepository', () => {
|
||||
StatisticsNames.manualError,
|
||||
secondWorkflow.id,
|
||||
),
|
||||
workflowStatisticsRepository.upsertWorkflowStatistics(
|
||||
StatisticsNames.productionSuccess,
|
||||
secondWorkflow.id,
|
||||
true,
|
||||
),
|
||||
]);
|
||||
|
||||
const metrics = await licenseMetricsRepository.getLicenseRenewalMetrics();
|
||||
@@ -70,7 +75,8 @@ describe('LicenseMetricsRepository', () => {
|
||||
totalCredentials: 2,
|
||||
totalWorkflows: 5,
|
||||
activeWorkflows: 3,
|
||||
productionExecutions: 2,
|
||||
productionExecutions: 3,
|
||||
productionRootExecutions: 3,
|
||||
manualExecutions: 2,
|
||||
});
|
||||
});
|
||||
@@ -87,6 +93,7 @@ describe('LicenseMetricsRepository', () => {
|
||||
totalWorkflows: 3,
|
||||
activeWorkflows: 3,
|
||||
productionExecutions: 0, // not NaN
|
||||
productionRootExecutions: 0, // not NaN
|
||||
manualExecutions: 0, // not NaN
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user