vernedeng commented on code in PR #8441:
URL: https://github.com/apache/inlong/pull/8441#discussion_r1255138153
##########
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
+ */
+ PageResult<InlongTenantInfo> listTenantByUser(InlongTenantPageRequest
request);
Review Comment:
It's a quite complex situation.
For INLONG_ADMIN or INLONG_OPERATOR, they can aquire all tenant infomation,
just set tenant list to null.
But for other users, they can only aquire the tenant info which they belong
to, hence we should list the tenants first by
**_TenantRoleService::listTenantByUsername_**, and put the result in
InlongTenantPageRequest.
Finally, they all invoke selectByCondition to aquire target tenant infos.
--
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]