Skip to content

Commit

Permalink
fix: PipelineNodeServiceImpl没有添加加载条件 #2746
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoxuwan authored Nov 14, 2024
1 parent a273580 commit a7f9af1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

package com.tencent.bkrepo.common.metadata.search.packages

import com.tencent.bkrepo.common.metadata.condition.SyncCondition
import com.tencent.bkrepo.common.metadata.permission.PermissionManager
import com.tencent.bkrepo.common.query.interceptor.QueryContext
import com.tencent.bkrepo.common.query.model.QueryModel
Expand All @@ -41,11 +42,13 @@ import com.tencent.bkrepo.common.metadata.search.common.ModelValidateInterceptor
import com.tencent.bkrepo.common.metadata.search.common.RepoNameRuleInterceptor
import com.tencent.bkrepo.common.metadata.search.common.RepoTypeRuleInterceptor
import com.tencent.bkrepo.common.metadata.search.common.SelectFieldInterceptor
import org.springframework.context.annotation.Conditional
import org.springframework.data.mongodb.core.query.Query
import org.springframework.stereotype.Component
import javax.annotation.PostConstruct

@Component
@Conditional(SyncCondition::class)
class PackageSearchInterpreter(
private val permissionManager: PermissionManager,
private val repoNameRuleInterceptor: RepoNameRuleInterceptor,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ package com.tencent.bkrepo.common.metadata.service.node.impl
import com.tencent.bkrepo.auth.api.ServicePipelineClient
import com.tencent.bkrepo.common.artifact.api.DefaultArtifactInfo
import com.tencent.bkrepo.common.artifact.path.PathUtils
import com.tencent.bkrepo.common.metadata.condition.SyncCondition
import com.tencent.bkrepo.repository.pojo.node.NodeInfo
import com.tencent.bkrepo.repository.pojo.node.NodeListOption
import com.tencent.bkrepo.common.metadata.service.node.NodeService
import com.tencent.bkrepo.common.metadata.service.node.PipelineNodeService
import org.springframework.context.annotation.Conditional
import org.springframework.stereotype.Service

@Service
@Conditional(SyncCondition::class)
class PipelineNodeServiceImpl(
private val nodeService: NodeService,
private val servicePipelineClient: ServicePipelineClient
Expand Down

0 comments on commit a7f9af1

Please sign in to comment.