fix(iace): boost robot cell priorities 96-99, remove debug code
Robot cell patterns now fire BEFORE generic patterns (Priority 96-99 vs generic 85-95). This ensures pattern-specific SuggestedMeasureIDs (M420 for KSS, M410 for Potentialausgleich) reach the hazard. Removed debug fmt.Println statements. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -262,11 +262,6 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
|
||||
|
||||
created := 0
|
||||
const maxMitigationsPerHazard = 5
|
||||
if _, ok := measureByID["M420"]; ok {
|
||||
fmt.Println("DEBUG: M420 found in measureByID")
|
||||
} else {
|
||||
fmt.Println("DEBUG: M420 NOT in measureByID, total:", len(measureByID))
|
||||
}
|
||||
|
||||
// Build a flat list of all hazard IDs for iteration
|
||||
var allHazardIDs []uuid.UUID
|
||||
@@ -295,12 +290,9 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
|
||||
}
|
||||
entry, ok := measureByID[mid]
|
||||
if !ok {
|
||||
fmt.Printf("DEBUG: MID %s NOT FOUND in measureByID for hazard %s\n", mid, hazID)
|
||||
continue
|
||||
}
|
||||
if mid == "M420" {
|
||||
fmt.Printf("DEBUG: Creating M420 for hazard %s (cat=%s)\n", hazID, hazCat)
|
||||
}
|
||||
|
||||
rt := iace.ReductionType(entry.ReductionType)
|
||||
if rt == "" {
|
||||
rt = iace.ReductionTypeInformation
|
||||
|
||||
Reference in New Issue
Block a user