Skip to content

Commit 9faa3af

Browse files
EgorPPSEgor Yakovlev
andauthored
Support task drafts and canonical relocation (#1083)
Co-authored-by: Egor Yakovlev <egoryakovlev@Mac.home>
1 parent 79bf18e commit 9faa3af

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

services/ontology/schemas/task.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@
5252
"createdBy": { "type": "string", "description": "Reporter eName" },
5353
"assignees": { "type": "array", "items": { "type": "string" } },
5454
"status": { "type": "string", "enum": ["planned", "in_progress", "done"] },
55+
"intakeStatus": {
56+
"type": "string",
57+
"enum": ["draft", "ready"],
58+
"description": "Cross-application intake state. Missing values are treated as legacy ready tasks unless required task fields are incomplete."
59+
},
5560
"priority": { "type": "integer", "enum": [0, 1, 2, 3] },
5661
"progressPercent": { "type": "number", "minimum": 0, "maximum": 100 },
5762
"estimatedHours": { "type": ["number", "null"], "minimum": 0 },
@@ -73,7 +78,6 @@
7378
"required": [
7479
"id",
7580
"canonicalOwnerEName",
76-
"homeProjectId",
7781
"relatedProjectIds",
7882
"relatedCompanyIds",
7983
"title",

services/ontology/schemas/taskReference.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
"isReference": { "const": true },
88
"canonicalTaskId": { "type": "string", "description": "Logical ID of the canonical task" },
99
"canonicalOwnerEName": { "type": "string", "description": "eName of the eVault holding the canonical task" },
10-
"canonicalEnvelopeId": { "type": "string", "description": "MetaEnvelope ID of the canonical task" }
10+
"canonicalEnvelopeId": { "type": "string", "description": "MetaEnvelope ID of the current canonical task" },
11+
"referenceType": {
12+
"type": "string",
13+
"enum": ["canonical-relocation"],
14+
"description": "Present when a former canonical Task envelope redirects to a relocated canonical envelope"
15+
},
16+
"relocatedAt": { "type": "string", "format": "date-time" }
1117
},
1218
"required": ["isReference", "canonicalTaskId", "canonicalOwnerEName"],
1319
"additionalProperties": false

0 commit comments

Comments
 (0)