Визуализатор: справочник ответственных, каноническая длительность, поддержка обеих схем
All checks were successful
ci / test (push) Successful in 18s
ci / deploy (push) Successful in 1m18s

Модель читает khbuild_responsible (колонки responsible, responsible2/3 =
ключ «роль - Имя»); если справочника нет (архив khnata) - прежние
responsible_role/responsible_name и khnata_roles. Длительность: 5d - календарные
дни, 5wd - рабочие, суффикс ? игнорируется при расчёте и выводится в Ганте и
ARIS. Тесты на обе схемы и откат на прежний справочник.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 19:58:57 +03:00
parent a4f338c5d1
commit f1971b8975
6 changed files with 246 additions and 25 deletions

View File

@@ -66,7 +66,7 @@ export function buildApi(deps: ProcessVizApiDeps): FastifyInstance {
questions:
model.rows.filter((r) => r.questions).length +
model.data.filter((d) => d.comment).length +
model.roles.filter((r) => r.comment).length +
model.responsible.filter((r) => r.comment).length +
model.systems.filter((s) => s.comment).length,
}),
);