fix(isolation): distinguish accident links from same-numbered nodes
Prefer link endpoints for legacy accident IDs and allow explicit node selection. Read authoritative initial statuses and sources, verify source isolation, and separate direct isolation from newly disconnected supply nodes. Return validation errors as HTTP 422. The node-first lookup misrouted adjacent Fengyang pipes 19025 and 19026 into unrelated regions. Regression cases fail against the previous algorithm and pass after this change.
This commit is contained in:
@@ -35969,6 +35969,23 @@
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "事故要素类型;auto优先管段再节点;分析同名节点须指定node,纯管段分析可指定link",
|
||||
"in": "query",
|
||||
"name": "accident_element_type",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"default": "auto",
|
||||
"description": "事故要素类型;auto优先管段再节点;分析同名节点须指定node,纯管段分析可指定link",
|
||||
"enum": [
|
||||
"auto",
|
||||
"link",
|
||||
"node"
|
||||
],
|
||||
"title": "Accident Element Type",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "header",
|
||||
"name": "X-Project-Id",
|
||||
|
||||
Reference in New Issue
Block a user