fuweng11 commented on code in PR #8441:
URL: https://github.com/apache/inlong/pull/8441#discussion_r1253986728
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/tenant/InlongTenantService.java:
##########
@@ -59,4 +59,11 @@ public interface InlongTenantService {
*/
Boolean update(InlongTenantRequest request);
+ /**
+ * List tenant by current user
+ * @param request
+ * @return
Review Comment:
Add comment
##########
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/user/TenantRoleServiceImpl.java:
##########
@@ -116,4 +119,17 @@ public TenantRoleInfo getByUsernameAndTenant(String name,
String tenant) {
return CommonBeanUtils.copyProperties(entity, TenantRoleInfo::new);
}
+ @Override
+ public List<String> listTenantByUser(String user) {
+ TenantRolePageRequest request = new TenantRolePageRequest();
+ request.setPageSize(1);
Review Comment:
Why sizd == 1?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]