perf(pipeline): 将默认历史保留条数从30调整为100

统一修改所有新建流水线场景下的默认keepHistoryCount配置,提升历史记录留存数量
This commit is contained in:
xiaojunnuo
2026-07-06 19:56:54 +08:00
parent d176f9cc0e
commit d3e4677ea4
4 changed files with 4 additions and 4 deletions
@@ -207,7 +207,7 @@ export function useCertUpload() {
const { id } = await api.Save({ const { id } = await api.Save({
title: pipeline.title, title: pipeline.title,
content: JSON.stringify(pipeline), content: JSON.stringify(pipeline),
keepHistoryCount: 30, keepHistoryCount: 100,
type: "cert_upload", type: "cert_upload",
groupId: form.groupId, groupId: form.groupId,
}); });
@@ -605,7 +605,7 @@ export function useCertPipelineCreator({ formWrapperRef }: { formWrapperRef: Ref
const { id } = await api.Save({ const { id } = await api.Save({
title: pipeline.title, title: pipeline.title,
content: JSON.stringify(pipeline), content: JSON.stringify(pipeline),
keepHistoryCount: 30, keepHistoryCount: 100,
type: "cert", type: "cert",
groupId, groupId,
addToMonitorEnabled: form.addToMonitorEnabled, addToMonitorEnabled: form.addToMonitorEnabled,
@@ -160,7 +160,7 @@ export async function createPipelineByTemplate(opts: { templateId: number; title
return await templateApi.CreatePipelineByTemplate({ return await templateApi.CreatePipelineByTemplate({
title, title,
content: JSON.stringify(pipeline), content: JSON.stringify(pipeline),
keepHistoryCount: keepHistoryCount ?? 30, keepHistoryCount: keepHistoryCount ?? 100,
groupId, groupId,
templateId, templateId,
}); });
@@ -1376,7 +1376,7 @@ export class PipelineService extends BaseService<PipelineEntity> {
bean.status = "none"; bean.status = "none";
bean.type = "cert_auto"; bean.type = "cert_auto";
bean.disabled = false; bean.disabled = false;
bean.keepHistoryCount = 30; bean.keepHistoryCount = 100;
bean.projectId = req.projectId; bean.projectId = req.projectId;
await this.save(bean); await this.save(bean);