Skip to content

Commit

Permalink
feat:用户个人视角 权限管理优化 #11138
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Dec 11, 2024
1 parent 15fa68b commit c2b641c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ data class BatchOperateGroupMemberCheckVo(
@get:Schema(title = "无效的流水线授权数量")
val invalidPipelineAuthorizationCount: Int? = 0,
@get:Schema(title = "无效的代码库授权数量")
val invalidRepositoryAuthorizationCount: Int? = 0
val invalidRepositoryAuthorizationCount: Int? = 0,
@get:Schema(title = "可交接的组数量")
val canHandoverCount: Int? = 0
)
Original file line number Diff line number Diff line change
Expand Up @@ -1590,7 +1590,8 @@ class RbacPermissionManageFacadeServiceImpl(
uniqueManagerCount = groupsOfUniqueManager.size,
invalidGroupCount = invalidGroups.size,
invalidPipelineAuthorizationCount = invalidPipelines.size,
invalidRepositoryAuthorizationCount = invalidRepositoryIds.size
invalidRepositoryAuthorizationCount = invalidRepositoryIds.size,
canHandoverCount = groupsOfUniqueManager.union(invalidGroups).size
)
}
}
Expand Down Expand Up @@ -1663,7 +1664,8 @@ class RbacPermissionManageFacadeServiceImpl(
operableCount = totalCount - inoperableCount,
inoperableCount = groupsOfTemplateOrDeptJoined.size + groupCountOfExpired,
invalidPipelineAuthorizationCount = invalidPipelines.size,
invalidRepositoryAuthorizationCount = invalidRepositoryIds.size
invalidRepositoryAuthorizationCount = invalidRepositoryIds.size,
canHandoverCount = totalCount - inoperableCount
)
}
}
Expand Down

0 comments on commit c2b641c

Please sign in to comment.