Skip to content

Commit

Permalink
feat: 红线支持指定到具体的步骤插件 TencentBlueKing#5405.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKX1 committed Dec 31, 2021
1 parent 302a59e commit 21d2214
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -469,10 +469,10 @@ class QualityRuleCheckService @Autowired constructor(
if (indicator.isScriptElementIndicator()) {
listOf(metadataList
.filter { it.elementType in QualityIndicator.SCRIPT_ELEMENT }
.find { indicator.enName == it.enName && indicator.taskName == it.taskName })
.find { indicator.enName == it.enName && it.taskName.startsWith(indicator.taskName ?: "") })
} else {
metadataList.filter {
it.taskName == indicator.taskName &&
it.taskName.startsWith(indicator.taskName ?: "") &&
indicator.metadataList.map { metadata -> metadata.enName }.contains(it.enName)
}
}
Expand Down

0 comments on commit 21d2214

Please sign in to comment.