Skip to content

Commit

Permalink
feat:希望支持分支进行上架测试 #4780
Browse files Browse the repository at this point in the history
  • Loading branch information
yjieliang committed Nov 6, 2023
1 parent ea6fccb commit 2b595ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ data class StoreI18nConfig(
@ApiModelProperty("map字段在db中key的前缀")
val dbKeyPrefix: String? = null,
@ApiModelProperty("代码库哈希ID")
val repositoryHashId: String? = null
val repositoryHashId: String? = null,
@ApiModelProperty("代码库分支")
val branch: String? = null
)
Original file line number Diff line number Diff line change
Expand Up @@ -1406,13 +1406,15 @@ abstract class AtomReleaseServiceImpl @Autowired constructor() : AtomReleaseServ
val releaseType = convertUpdateRequest.releaseType
val taskDataMap = storeI18nMessageService.parseJsonMapI18nInfo(
userId = userId,
projectCode = projectCode,
jsonMap = getAtomConfResult.taskDataMap.toMutableMap(),
fileDir = "$atomCode/$version",
i18nDir = updateAtomPackageInfo.i18nDir,
dbKeyPrefix = StoreUtils.getStoreFieldKeyPrefix(StoreTypeEnum.ATOM, atomCode, version),
repositoryHashId = atomRecord.repositoryHashId,
branch = branch,
storeI18nConfig = StoreI18nConfig(
projectCode = projectCode,
fileDir = "$atomCode/$version",
i18nDir = updateAtomPackageInfo.i18nDir,
dbKeyPrefix = StoreUtils.getStoreFieldKeyPrefix(StoreTypeEnum.ATOM, atomCode, version),
repositoryHashId = atomRecord.repositoryHashId,
branch = branch
),
version = version
)
// 校验插件发布类型
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ abstract class StoreI18nMessageServiceImpl : StoreI18nMessageService {
i18nDir = i18nDir,
fileName = fileName,
repositoryHashId = repositoryHashId,
branch = branch
branch = storeI18nConfig.branch
)
val fieldLocaleInfos = if (jsonLocaleLanguage == devopsDefaultLocaleLanguage) {
// 如果map集合中默认字段值对应的语言和蓝盾默认语言一致,则无需替换
Expand Down Expand Up @@ -137,14 +137,7 @@ abstract class StoreI18nMessageServiceImpl : StoreI18nMessageService {
userId = userId,
version = version,
fieldLocaleInfos = fieldLocaleInfos,
storeI18nConfig = StoreI18nConfig(
projectCode = projectCode,
fileDir = fileDir,
i18nDir = i18nDir,
repositoryHashId = repositoryHashId,
dbKeyPrefix = dbKeyPrefix,
branch = branch,
)
storeI18nConfig = storeI18nConfig
)
}
return jsonMap
Expand Down

0 comments on commit 2b595ff

Please sign in to comment.