Combine black and bright defect charts in analysis reports
This commit is contained in:
@@ -521,6 +521,10 @@ def tool_operation_key(tool: str, raw_input: Any, *, complete_defects: bool = Fa
|
||||
value = {"file_path": value["path"]}
|
||||
if tool == "mcp_call" and value.get("tool") == "quality_data":
|
||||
args = value.get("arguments")
|
||||
if isinstance(args,dict) and args.get("mode") == "defects" and "dimension" not in args and "defect" not in args:
|
||||
# A failed stage defect query missing the required dimension is
|
||||
# recovered only by the otherwise identical dimension=defect retry.
|
||||
args["dimension"] = "defect"
|
||||
if isinstance(args,dict) and args.get("scope")=="overall" and isinstance(args.get("filters"),dict) and args["filters"].get("group"):
|
||||
# Rejected conflicting scope is recovered only by the successful
|
||||
# same group query after the redundant overall scope is removed.
|
||||
|
||||
Reference in New Issue
Block a user