Skip to content

Commit

Permalink
feat:流水线选择插件页面,研发商店入口,插件列表优化 Tencent#1268
Browse files Browse the repository at this point in the history
(cherry picked from commit 412a128)
  • Loading branch information
carlyin0801 authored and mingshewhe committed Jun 28, 2024
1 parent d088089 commit b4f69f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import com.tencent.devops.store.pojo.atom.AtomResp
import com.tencent.devops.store.pojo.atom.AtomRespItem
import com.tencent.devops.store.pojo.atom.InstalledAtom
import com.tencent.devops.store.pojo.atom.PipelineAtom
import com.tencent.devops.store.pojo.atom.enums.AtomCategoryEnum
import com.tencent.devops.store.pojo.common.UnInstallReq
import com.tencent.devops.store.pojo.common.VersionInfo
import io.swagger.annotations.Api
Expand Down Expand Up @@ -86,7 +87,7 @@ interface UserAtomResource {
projectCode: String,
@ApiParam("插件所属范畴,TRIGGER:触发器类插件 TASK:任务类插件", required = false)
@QueryParam("category")
category: String?,
category: String? = AtomCategoryEnum.TASK.name,
@ApiParam("插件分类id", required = false)
@QueryParam("classifyId")
classifyId: String?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,8 @@ class AtomDao : AtomBaseDao() {
conditions.add(ta.JOB_TYPE.eq(jobType).or(ta.BUILD_LESS_RUN_FLAG.eq(true)))
} else {
conditions.add(ta.JOB_TYPE.eq(jobType))
if (queryFitAgentBuildLessAtomFlag == false && category == null) {
conditions.add(ta.CATEGROY.eq(AtomCategoryEnum.TASK.category.toByte()))
if (queryFitAgentBuildLessAtomFlag == false) {
conditions.add(ta.BUILD_LESS_RUN_FLAG.ne(true))
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import com.tencent.devops.store.pojo.atom.AtomRespItem
import com.tencent.devops.store.pojo.atom.AtomUpdateRequest
import com.tencent.devops.store.pojo.atom.InstalledAtom
import com.tencent.devops.store.pojo.atom.PipelineAtom
import com.tencent.devops.store.pojo.atom.enums.AtomCategoryEnum
import com.tencent.devops.store.pojo.common.VersionInfo
import com.tencent.devops.store.pojo.common.UnInstallReq

Expand All @@ -57,7 +58,7 @@ interface AtomService {
jobType: String?,
os: String?,
projectCode: String,
category: String?,
category: String? = AtomCategoryEnum.TASK.name,
classifyId: String?,
recommendFlag: Boolean?,
keyword: String?,
Expand All @@ -77,7 +78,7 @@ interface AtomService {
jobType: String?,
os: String?,
projectCode: String,
category: String?,
category: String? = AtomCategoryEnum.TASK.name,
classifyId: String?,
recommendFlag: Boolean?,
keyword: String?,
Expand Down

0 comments on commit b4f69f1

Please sign in to comment.