feat:(REQ-2720) 去掉redis的返回日志
This commit is contained in:
parent
9dc6319aea
commit
2cee917948
@ -1504,26 +1504,24 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
|
|||||||
*/
|
*/
|
||||||
private IdentityAuthRes findIdentityAuthV2(IdentityAuthReq identityAuthReq) {
|
private IdentityAuthRes findIdentityAuthV2(IdentityAuthReq identityAuthReq) {
|
||||||
StopWatch watch = StopWatch.create("redis:");
|
StopWatch watch = StopWatch.create("redis:");
|
||||||
watch.start("query workspaceProductPermission");
|
watch.start("redis:query workspaceProductPermission");
|
||||||
Map<Long, List<WorkspaceProductService.ProductPermission>> workspaceProductPermissions = listWorkspaceProductPermission(identityAuthReq);
|
Map<Long, List<WorkspaceProductService.ProductPermission>> workspaceProductPermissions = listWorkspaceProductPermission(identityAuthReq);
|
||||||
watch.stop();
|
watch.stop();
|
||||||
log.info("redis:workspaceProductPermission:{}", JSON.toJSONString(workspaceProductPermissions));
|
|
||||||
|
|
||||||
watch.start("query userRole");
|
watch.start("redis:query userRole");
|
||||||
List<SaasRoleUserV2DTO> saasRoleUsers = listRoleUserRelationsV2(identityAuthReq);
|
List<SaasRoleUserV2DTO> saasRoleUsers = listRoleUserRelationsV2(identityAuthReq);
|
||||||
log.info("redis:saasRoleUsers:", JSON.toJSONString(saasRoleUsers));
|
log.info("redis:saasRoleUsers:", JSON.toJSONString(saasRoleUsers));
|
||||||
watch.stop();
|
watch.stop();
|
||||||
|
|
||||||
watch.start("query rolePermission");
|
watch.start("redis:query rolePermission");
|
||||||
Map<Long, List<RolePermissionCacheService.PermissionDTO>> rolePermissions = listRolePermission(identityAuthReq, saasRoleUsers);
|
Map<Long, List<RolePermissionCacheService.PermissionDTO>> rolePermissions = listRolePermission(identityAuthReq, saasRoleUsers);
|
||||||
log.info("redis:rolePermissions:{}", JSON.toJSONString(rolePermissions));
|
|
||||||
watch.stop();
|
watch.stop();
|
||||||
|
|
||||||
Map<String, List<SaasRoleUserV2DTO.SaasRole>> workspaceRoles = saasRoleUsers.stream()
|
Map<String, List<SaasRoleUserV2DTO.SaasRole>> workspaceRoles = saasRoleUsers.stream()
|
||||||
.collect(Collectors.groupingBy(e -> e.getSaasRoleUser().buildOuWorkspaceKey(),
|
.collect(Collectors.groupingBy(e -> e.getSaasRoleUser().buildOuWorkspaceKey(),
|
||||||
Collectors.mapping(SaasRoleUserV2DTO::getSaasRole, Collectors.toList())));
|
Collectors.mapping(SaasRoleUserV2DTO::getSaasRole, Collectors.toList())));
|
||||||
|
|
||||||
watch.start("resolve permission");
|
watch.start("redis:resolve permission");
|
||||||
List<IdentityAuthRes.WorkspacePermission> permissions = identityAuthReq.getWorkspaceOusPairs().stream()
|
List<IdentityAuthRes.WorkspacePermission> permissions = identityAuthReq.getWorkspaceOusPairs().stream()
|
||||||
.map(workspaceOuPair -> {
|
.map(workspaceOuPair -> {
|
||||||
List<ProductPermissionCacheService.PermissionDTO> productPermissions = Optional.ofNullable(workspaceProductPermissions.get(workspaceOuPair.getWorkspaceId()))
|
List<ProductPermissionCacheService.PermissionDTO> productPermissions = Optional.ofNullable(workspaceProductPermissions.get(workspaceOuPair.getWorkspaceId()))
|
||||||
@ -1549,8 +1547,6 @@ public class TyrSaasAuthServiceImpl implements TyrSaasAuthService {
|
|||||||
watch.stop();
|
watch.stop();
|
||||||
watch.prettyPrint(TimeUnit.MILLISECONDS);
|
watch.prettyPrint(TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
log.info("redis:Permissions:{}", JSON.toJSONString(permissions));
|
|
||||||
|
|
||||||
IdentityAuthRes result = new IdentityAuthRes();
|
IdentityAuthRes result = new IdentityAuthRes();
|
||||||
result.setIdentity(identityAuthReq.getIdentityId());
|
result.setIdentity(identityAuthReq.getIdentityId());
|
||||||
result.setIdentityType(identityAuthReq.getIdentityType());
|
result.setIdentityType(identityAuthReq.getIdentityType());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user