yuqi1129 commented on code in PR #15122:
URL: https://github.com/apache/gravitino/pull/15122#discussion_r4639474100
##########
core/src/main/java/org/apache/gravitino/glossary/GlossaryManager.java:
##########
@@ -54,11 +72,103 @@ public GlossaryManager(IdGenerator ids, boolean
authorizationEnabled) {
}
GlossaryManager(IdGenerator ids, boolean authorizationEnabled,
TermChangeHandler handler) {
+ this(ids, authorizationEnabled, handler, term -> !authorizationEnabled,
MAX_HIERARCHY_DEPTH);
Review Comment:
Yes, this default is intentional. With authorization enabled, a caller must
supply its term visibility policy through `withTermVisibility`. Until then,
relation reads and edits report hidden terms as missing. #15111 tracks glossary
authorization, and #15116 tracks the REST endpoints that will need to supply
the caller’s policy. `testVisibilityAtEveryFrontier` covers the filtering of
roots, intermediate terms, and edit targets.
--
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]