You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/08 04:55:30 UTC
[I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
justinmclean opened a new issue, #7974:
URL: https://github.com/apache/gravitino/issues/7974
### What would you like to be improved?
In removeIdFromComment in core/src/main/java/org/apache/gravitino/StringIdentifier.java.
This test shows the issue:
```
@Test
public void testRemoveIdFromCommentTrimsTrailingSpaces() {
StringIdentifier identifier = StringIdentifier.fromId(42L);
String commentWithSpace = "This is a comment ";
String commentWithId = StringIdentifier.addToComment(identifier, commentWithSpace);
Assertions.assertEquals(
commentWithSpace.trim(), StringIdentifier.removeIdFromComment(commentWithId));
}
```
### How should we improve?
Trim the comment.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #7974: [Improvement] Removing an id from a comment can leave trailing whitespace
URL: https://github.com/apache/gravitino/issues/7974
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Auxilus08 (via GitHub)" <gi...@apache.org>.
Auxilus08 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3193427132
I will begin working on the issue again shortly.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3173089428
@Auxilus08 Thanks for the PR, but it’s best to check in before starting work on an issue, and to avoid working on issues that are already assigned to someone else.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Sujal2114 (via GitHub)" <gi...@apache.org>.
Sujal2114 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3166851984
Please assign this to me
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3193359946
No problem @Sujal2114 thanks for that, I've assigned it to @Auxilus08.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3166937038
Done. If you have any questions, just ask.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Auxilus08 (via GitHub)" <gi...@apache.org>.
Auxilus08 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3167305876
Hi! I'd like to work on this issue. I've already identified the problem and have a fix ready.
The issue is in the `removeIdFromComment` method where the fallback case doesn't trim the comment. The fix is simple - change `return comment;` to `return comment.trim();` on line 226.
Can this issue be assigned to me? I can submit a PR with the fix and test case.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Sujal2114 (via GitHub)" <gi...@apache.org>.
Sujal2114 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3191529473
I am Sorry for not completing the assigned issue as I was busy with some other work. You can assign this issue to @Auxilus08 as he has already worked on this.
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Sushant0412 (via GitHub)" <gi...@apache.org>.
Sushant0412 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3166838015
please assign this to me
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "Auxilus08 (via GitHub)" <gi...@apache.org>.
Auxilus08 commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3174327476
@justinmclean Got it, thanks for the feedback! I’ll make sure to check in before picking up an issue next time and avoid ones that are already assigned
--
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: [I] [Improvement] Removing an id from a comment can leave trailing whitespace [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #7974:
URL: https://github.com/apache/gravitino/issues/7974#issuecomment-3190544316
@Sujal2114 Are you still working on this?
--
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