feat(ack): add one-off delivery routing
This commit is contained in:
@@ -249,7 +249,8 @@
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"developer": { "$ref": "#/definitions/modelTierAllowlist" },
|
||||
"test": { "$ref": "#/definitions/modelTierAllowlist" }
|
||||
"test": { "$ref": "#/definitions/modelTierAllowlist" },
|
||||
"operator": { "$ref": "#/definitions/modelTierAllowlist" }
|
||||
}
|
||||
},
|
||||
"modelAllowlist": {
|
||||
@@ -274,7 +275,7 @@
|
||||
"properties": {
|
||||
"role": {
|
||||
"type": "string",
|
||||
"enum": ["developer", "test"]
|
||||
"enum": ["developer", "test", "operator"]
|
||||
},
|
||||
"cli": {
|
||||
"type": "string",
|
||||
@@ -304,6 +305,7 @@
|
||||
"properties": {
|
||||
"developer": { "$ref": "#/definitions/profileId" },
|
||||
"test": { "$ref": "#/definitions/profileId" },
|
||||
"operator": { "$ref": "#/definitions/profileId" },
|
||||
"developerUpgraded": { "$ref": "#/definitions/profileId" }
|
||||
}
|
||||
},
|
||||
@@ -482,7 +484,10 @@
|
||||
},
|
||||
"environmentPolicy": {
|
||||
"type": "string",
|
||||
"const": "per-cli-allowlist-v1"
|
||||
"enum": [
|
||||
"per-cli-allowlist-v1",
|
||||
"per-cli-plus-operator-publish-v1"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -591,7 +596,7 @@
|
||||
},
|
||||
"role": {
|
||||
"type": "string",
|
||||
"enum": ["developer", "test"]
|
||||
"enum": ["developer", "test", "operator"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -954,6 +959,22 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"deliveryOperation": {
|
||||
"type": "object",
|
||||
"required": ["skill", "request"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"skill": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"manage-release",
|
||||
"deb-publisher",
|
||||
"publish-docker-image"
|
||||
]
|
||||
},
|
||||
"request": { "type": "string", "minLength": 1, "pattern": "\\S" }
|
||||
}
|
||||
},
|
||||
"task": {
|
||||
"type": "object",
|
||||
"required": ["id", "title", "status"],
|
||||
@@ -999,6 +1020,7 @@
|
||||
"stepsToReproduce": { "type": "array", "items": { "type": "string" } },
|
||||
"expected": { "type": "string" },
|
||||
"actual": { "type": "string" },
|
||||
"operation": { "$ref": "#/definitions/deliveryOperation" },
|
||||
"evidence": { "type": "object" },
|
||||
"verification": { "type": "object" },
|
||||
"dispatch": {
|
||||
@@ -1010,6 +1032,7 @@
|
||||
"worker": { "type": ["string", "null"] },
|
||||
"developer": { "$ref": "#/definitions/roleDispatch" },
|
||||
"test": { "$ref": "#/definitions/roleDispatch" },
|
||||
"operator": { "$ref": "#/definitions/roleDispatch" },
|
||||
"rounds": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "#/definitions/round" }
|
||||
@@ -1047,6 +1070,21 @@
|
||||
},
|
||||
"required": ["resolution"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"properties": { "type": { "const": "delivery-operation" } },
|
||||
"required": ["type"]
|
||||
},
|
||||
"then": {
|
||||
"required": ["operation", "dispatch"],
|
||||
"properties": {
|
||||
"dispatch": {
|
||||
"type": "object",
|
||||
"required": ["operator"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user