Skip to content

Commit

Permalink
feat: 红线检查结果增加链接,方便查看问题详情 TencentBlueKing#5763
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiKX1 committed Dec 17, 2021
1 parent 0ae4cb6 commit b02f63d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ class QualityHistoryService @Autowired constructor(
private val historyDao: HistoryDao,
private val qualityRuleBuildHisOperationService: QualityRuleBuildHisOperationService,
private val client: Client,
private val objectMapper: ObjectMapper
private val objectMapper: ObjectMapper,
private val qualityUrlUtils: QualityUrlUtils
) {

private val logger = LoggerFactory.getLogger(QualityHistoryService::class.java)
Expand Down Expand Up @@ -238,7 +239,7 @@ class QualityHistoryService @Autowired constructor(
val interceptList = objectMapper.readValue<List<QualityRuleInterceptRecord>>(it.interceptList)
interceptList.forEach { record ->
if (CodeccUtils.isCodeccAtom(record.indicatorType)) {
record.logPrompt = QualityUrlUtils.getCodeCCUrl(
record.logPrompt = qualityUrlUtils.getCodeCCUrl(
projectId = projectId,
pipelineId = pipelineId,
buildId = buildId,
Expand Down Expand Up @@ -422,7 +423,7 @@ class QualityHistoryService @Autowired constructor(
val interceptList = objectMapper.readValue<List<QualityRuleInterceptRecord>>(it.interceptList)
interceptList.forEach { record ->
if (CodeccUtils.isCodeccAtom(record.indicatorType)) {
record.logPrompt = QualityUrlUtils.getCodeCCUrl(
record.logPrompt = qualityUrlUtils.getCodeCCUrl(
projectId = projectId,
pipelineId = pipelineId ?: "",
buildId = buildId ?: "",
Expand Down

0 comments on commit b02f63d

Please sign in to comment.