Skip to content

Commit

Permalink
【PAC】feat:支持从代码库维度查看对应的代码库事件 #8122
Browse files Browse the repository at this point in the history
  • Loading branch information
mingshewhe committed Oct 27, 2023
1 parent 1dad974 commit cbf53cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ class PipelineWebhookService @Autowired constructor(
if (webhook.taskId.isNullOrBlank()) return@webhook
val element = elementMap[webhook.taskId] ?: return@webhook
val webhookElementParams = getElementRepositoryConfig(element, variable = params)
?: run{
?: run {
logger.info("webhook not find match element|${webhook.id}")
return@webhook
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class PipelineTriggerEventService @Autowired constructor(
offset = sqlLimit.offset
).map {
it.eventDesc = it.getI18nEventDesc(language)
it.reason = getI18nReason(it.reason,language)
it.reason = getI18nReason(it.reason, language)
it
}
return SQLPage(count = count, records = records)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class WebhookRequestService(
private val webhookEventFactory: WebhookEventFactory,
private val webhookTriggerService: WebhookTriggerService,
private val dslContext: DSLContext,
private val pipelineTriggerEventDao: PipelineTriggerEventDao,
private val pipelineTriggerEventDao: PipelineTriggerEventDao
) {

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class WebhookEventListener constructor(
MDC.put(TraceTag.BIZID, TraceTag.buildBiz())
}
}
logger.info("Receive ReplayWebhookEvent from MQ [replay|${replayEvent}]")
logger.info("Receive ReplayWebhookEvent from MQ [replay|$replayEvent]")
var result = false
try {
webhookRequestService.handleReplay(replayEvent = replayEvent)
Expand All @@ -262,7 +262,6 @@ class WebhookEventListener constructor(
)
)
}

}
MDC.remove(TraceTag.BIZID)
}
Expand Down

0 comments on commit cbf53cc

Please sign in to comment.