Skip to content

Commit

Permalink
feature: 流水线日志支持AI修复 TencentBlueKing#10913
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanxu33 committed Sep 19, 2024
1 parent 391ffd2 commit 42d9df8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/frontend/devops-pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"public:external": "cross-env NODE_ENV=external npm run public --"
},
"dependencies": {
"@blueking/log": "2.2.0-beta.10",
"@blueking/log": "2.2.0-beta.15",
"@blueking/search-select": "0.0.1-beta.2",
"@icon-cool/bk-icon-devops": "^0.2.1",
"axios": "^0.28.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,17 @@
this.praiseAi({
...this.postData,
score: true
}).then(() => {
this.$bkMessage({ theme: 'error', message: this.$t('successPraise') })
})
},
handleDownPraiseAi () {
this.praiseAi({
...this.postData,
score: false
}).then(() => {
this.$bkMessage({ theme: 'error', message: this.$t('successDownPraise') })
})
},
Expand All @@ -180,6 +184,7 @@
callBack (val) {
item.aiMessage += val
scrollRef.setSingleLogData(item)
scrollRef.scrollAILogToBottom()
}
})
},
Expand All @@ -193,6 +198,7 @@
callBack (val) {
item.aiMessage += val
scrollRef.setSingleLogData(item)
scrollRef.scrollAILogToBottom()
}
})
},
Expand Down
6 changes: 4 additions & 2 deletions src/frontend/locale/pipeline/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
"downloadLog": "Download Log",
"hideDebugLog": "Hide Debug Log",
"showDebugLog": "Show Debug Log",
"successPraise": "Like Success",
"successDownPraise": "Down Like Success",
"stageReview": {
"stageInConditions": "Stage-In conditions",
"approvalFlow": "Approval flow",
Expand Down Expand Up @@ -601,7 +603,7 @@
"downloading": "Downloading ",
"copySuc": " Copy {0} to custom artifactory successfully",
"buildMsg": "Build Message"
},
},
"preview": {
"build": "Build",
"introVersion": "Recommended Version",
Expand Down Expand Up @@ -1578,4 +1580,4 @@
"debugHint": "Debugging and execution do not share build numbers, but they share concurrency control. Debug records are only valid during the draft version debugging period and will be automatically cleared after the version is released.",
"templateRollbackBackTips": "The current pipeline is in constraint mode (template instance). You need to jump to the template to roll back the version.",
"versionNotMatch": "The current version is not the latest version and cannot be executed"
}
}
2 changes: 2 additions & 0 deletions src/frontend/locale/pipeline/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@
"downloadLog": "下载日志",
"hideDebugLog": "隐藏调试日志",
"showDebugLog": "展示调试日志",
"successPraise": "点赞成功",
"successDownPraise": "点踩成功",
"stageReview": {
"stageInConditions": "准入规则",
"approvalFlow": "审核流",
Expand Down

0 comments on commit 42d9df8

Please sign in to comment.