EENE Dashboard upload to Gitea
This commit is contained in:
@@ -261,10 +261,9 @@ function buildMilestones(p: HrProject): MappedTask['milestones'] {
|
||||
return milestones;
|
||||
}
|
||||
|
||||
function buildDetailContent(p: HrProject): string | null {
|
||||
const content = p.progressStatus?.trim() || p.progressLog?.trim();
|
||||
if (!content || content === '이슈사항' || content === '12') return null;
|
||||
return content;
|
||||
/** @deprecated progressStatus는 milestone·periodEntries로 이관 — TaskDetail(피드백)에 넣지 않음 */
|
||||
function buildDetailContent(_p: HrProject): string | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function mapHrProjectToTask(p: HrProject, quarter = '2026-Q2'): MappedTask {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "tasks" ADD COLUMN "detailDescription" TEXT;
|
||||
|
||||
-- 기존 description(첫 줄=개요, 이후=상세) → 분리 (실행과제·프로젝트만)
|
||||
UPDATE "tasks"
|
||||
SET
|
||||
"detailDescription" = CASE
|
||||
WHEN position(E'\n' in "description") > 0
|
||||
THEN NULLIF(trim(substring("description" from position(E'\n' in "description") + 1)), '')
|
||||
ELSE NULL
|
||||
END,
|
||||
"description" = NULLIF(trim(split_part("description", E'\n', 1)), '')
|
||||
WHERE "description" IS NOT NULL
|
||||
AND trim("description") != ''
|
||||
AND ("taskType" = '실행과제' OR "taskType" = '프로젝트');
|
||||
@@ -66,6 +66,7 @@ model Task {
|
||||
id String @id @default(cuid())
|
||||
title String
|
||||
description String?
|
||||
detailDescription String?
|
||||
status TaskStatus @default(TODO)
|
||||
priority Priority @default(MEDIUM)
|
||||
quarter String // 예: "2026-Q2"
|
||||
|
||||
Reference in New Issue
Block a user