-
Notifications
You must be signed in to change notification settings - Fork 505
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
base: master
Are you sure you want to change the base?
Conversation
# 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 = |
There was a problem hiding this comment.
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")) { |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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这个接口就可以拿到对应数据
流水线查看和构建详情查看配置界面敏感字段展示优化
没有流水线编辑权限的用户查看的流水线编排敏感字段将会进行加密