You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Abyss-lord (via GitHub)" <gi...@apache.org> on 2025/01/15 08:55:19 UTC
[PR] [#6235] fix(authorizations): fix PathBasedMetadataObject toString method [gravitino]
Abyss-lord opened a new pull request, #6252:
URL: https://github.com/apache/gravitino/pull/6252
### What changes were proposed in this pull request?
fix `PathBasedMetadataObject#toString` method.
### Why are the changes needed?
Fix: #6235
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
local ut test.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authz): fix PathBasedMetadataObject toString method [gravitino]
Posted by "tengqm (via GitHub)" <gi...@apache.org>.
tengqm commented on PR #6252:
URL: https://github.com/apache/gravitino/pull/6252#issuecomment-2594164809
LGTM
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authz): fix PathBasedMetadataObject toString method [gravitino]
Posted by "xunliu (via GitHub)" <gi...@apache.org>.
xunliu commented on code in PR #6252:
URL: https://github.com/apache/gravitino/pull/6252#discussion_r1916604700
##########
authorizations/authorization-common/src/main/java/org/apache/gravitino/authorization/common/PathBasedMetadataObject.java:
##########
@@ -122,8 +122,13 @@ public int hashCode() {
@Override
public String toString() {
- return "MetadataObject: [fullName=" + fullName() + "], [path=" + path == null
- ? "null"
- : path + "], [type=" + type + "]";
+ String pathStr = path == null ? "null" : path;
Review Comment:
I think it better change `pathStr` to `path`?
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authz): fix PathBasedMetadataObject toString method [gravitino]
Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on PR #6252:
URL: https://github.com/apache/gravitino/pull/6252#issuecomment-2594417960
> I agree with @xunliu above that `pathStr` is perhaps not the best name, as we usually don't postfix types on our variable names.
Thank you Justin, I just fix this error.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authorizations): fix PathBasedMetadataObject toString method [gravitino]
Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on PR #6252:
URL: https://github.com/apache/gravitino/pull/6252#issuecomment-2591990321
@justinmclean @tengqm could you please review this PR when you have time? I’d really appreciate your feedback.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authz): fix PathBasedMetadataObject toString method [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #6252:
URL: https://github.com/apache/gravitino/pull/6252#issuecomment-2594410505
I agree with @xunliu above that `pathStr` is not the best name, as we usually don't postfix types on our variable names.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [#6235] fix(authz): fix PathBasedMetadataObject toString method [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao merged PR #6252:
URL: https://github.com/apache/gravitino/pull/6252
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org