kin: KIN-OBS-025 PM-логи недоступны в pipeline_log: добавить инструментацию PM-шага

This commit is contained in:
Gros Frumos 2026-03-17 18:37:02 +02:00
parent dfdf13cf7e
commit 7ef0b9d4ef
2 changed files with 6 additions and 6 deletions

View file

@ -190,7 +190,7 @@ export interface ProjectLink {
id: number id: number
from_project: string from_project: string
to_project: string to_project: string
link_type: string type: string
description: string | null description: string | null
created_at: string created_at: string
} }
@ -415,7 +415,7 @@ export const api = {
get<PipelineLog[]>(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`), get<PipelineLog[]>(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`),
projectLinks: (projectId: string) => projectLinks: (projectId: string) =>
get<ProjectLink[]>(`/projects/${projectId}/links`), get<ProjectLink[]>(`/projects/${projectId}/links`),
createProjectLink: (data: { from_project: string; to_project: string; link_type: string; description?: string }) => createProjectLink: (data: { from_project: string; to_project: string; type: string; description?: string }) =>
post<ProjectLink>('/project-links', data), post<ProjectLink>('/project-links', data),
deleteProjectLink: (id: number) => deleteProjectLink: (id: number) =>
del<void>(`/project-links/${id}`), del<void>(`/project-links/${id}`),

View file

@ -61,10 +61,10 @@ async function saveDeployConfig(projectId: string) {
saveDeployConfigStatus.value[projectId] = '' saveDeployConfigStatus.value[projectId] = ''
try { try {
await api.patchProject(projectId, { await api.patchProject(projectId, {
deploy_host: deployHosts.value[projectId] || undefined, deploy_host: deployHosts.value[projectId],
deploy_path: deployPaths.value[projectId] || undefined, deploy_path: deployPaths.value[projectId],
deploy_runtime: deployRuntimes.value[projectId] || undefined, deploy_runtime: deployRuntimes.value[projectId],
deploy_restart_cmd: deployRestartCmds.value[projectId] || undefined, deploy_restart_cmd: deployRestartCmds.value[projectId],
deploy_command: deployCommands.value[projectId] || undefined, deploy_command: deployCommands.value[projectId] || undefined,
}) })
saveDeployConfigStatus.value[projectId] = 'Saved' saveDeployConfigStatus.value[projectId] = 'Saved'