Skip to content

Commit

Permalink
Revert "feat:草稿版本UI展示 TencentBlueKing#9861 控制草稿相关查询内容"
Browse files Browse the repository at this point in the history
This reverts commit 7c9dc62.
  • Loading branch information
royalhuang committed Sep 5, 2024
1 parent 7c9dc62 commit 8dc3025
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,24 +219,8 @@ class PipelineRuntimeService @Autowired constructor(
}
}

/**
* 查询BuildInfo,根据是否为runtime运行时判断是否需要排除已删除的调试构建
* @param projectId: 项目Id
* @param buildId: 构建Id
* @param queryDslContext: 事务上下文
* @param runtime: 运行时调用,默认都可以查到完整构建中的查询
*/
fun getBuildInfo(
projectId: String,
buildId: String,
queryDslContext: DSLContext? = null,
runtime: Boolean? = true
): BuildInfo? {
return if (runtime == false) {
pipelineBuildDao.getUserBuildInfo(queryDslContext ?: dslContext, projectId, buildId)
} else {
pipelineBuildDao.getBuildInfo(queryDslContext ?: dslContext, projectId, buildId)
}
fun getBuildInfo(projectId: String, buildId: String, queryDslContext: DSLContext? = null): BuildInfo? {
return pipelineBuildDao.getBuildInfo(queryDslContext ?: dslContext, projectId, buildId)
}

fun getBuildInfo(projectId: String, pipelineId: String, buildId: String): BuildInfo? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1556,8 +1556,7 @@ class PipelineBuildFacadeService(
val buildInfo = pipelineRuntimeService.getBuildInfo(
projectId = projectId,
buildId = buildId,
queryDslContext = queryDslContext,
runtime = false
queryDslContext = queryDslContext
) ?: throw ErrorCodeException(
statusCode = Response.Status.NOT_FOUND.statusCode,
errorCode = ProcessMessageCode.ERROR_NO_BUILD_EXISTS_BY_ID,
Expand Down

0 comments on commit 8dc3025

Please sign in to comment.