Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:流水线查看和构建详情查看配置界面敏感字段展示优化 #11399

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Conversation

yjieliang
Copy link
Collaborator

@yjieliang yjieliang commented Jan 9, 2025

流水线查看和构建详情查看配置界面敏感字段展示优化
没有流水线编辑权限的用户查看的流水线编排敏感字段将会进行加密

yjieliang and others added 28 commits December 5, 2024 10:29
# Conflicts:
#	src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/atom/service/impl/OpAtomServiceImpl.kt
#	src/backend/ci/core/store/biz-store/src/main/kotlin/com/tencent/devops/store/common/service/impl/StoreReleaseServiceImpl.kt
val version = element.version
val hashKey = if (version.contains(".*")) {
var latestVersion: String? = null
val atomVersionTestFlag =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

store的逻辑挪到store去实现,通过service接口调用,另外redis的key值以后避免跨微服务使用,这样以后利于redis拆分

val atomVersionTestFlag =
redisOperation.hget("$ATOM_POST_VERSION_TEST_FLAG_KEY_PREFIX:$atomCode", version)
// 项目下调试插件处理
if (projectTestAtomCodes.contains(atomCode) && (atomVersionTestFlag == "true")) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

atomVersionTestFlag转成布尔值再使用比atomVersionTestFlag == "true"可读性更好

} else {
version
}
val param = redisOperation.hget(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

调试项目下的插件版本(可能有测试版本)和一般的项目不一样,你这样缓存到redis有问题,这个逻辑根本不需要写,你通过com.tencent.devops.store.atom.service.impl.MarketAtomEnvServiceImpl#batchGetAtomRunInfos这个接口就可以拿到对应数据

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants