You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "Sujal2114 (via GitHub)" <gi...@apache.org> on 2025/08/09 10:31:48 UTC

[PR] fix: trim trailing spaces in removeIdFromComment [gravitino]

Sujal2114 opened a new pull request, #7996:
URL: https://github.com/apache/gravitino/pull/7996

   What changes were proposed in this pull request?
   Updated the removeIdFromComment method in StringIdentifier to trim the resulting comment after removing the identifier. This ensures that any trailing spaces left behind are removed, resulting in a clean comment string.
   
   Why are the changes needed?
   Previously, when removing an identifier from a comment, the method sometimes left an extra space at the end.
   Example:
   "This is a comment  (From Gravitino, DO NOT EDIT: gravitino.v1.uid42)"
   would become:
   
   "This is a comment " // trailing space remains
   This caused unit test failures and returned inconsistent results. The change fixes this by trimming the comment.
   
   Does this PR introduce any user-facing change?
   Yes.
   removeIdFromComment will now always return a trimmed comment string, with no leading or trailing whitespace.
   
   How was this patch tested?
   Verified with the unit test testRemoveIdFromCommentTrimsTrailingSpaces that the comment is properly trimmed after identifier removal.
   
   Ran the full test suite to confirm no regressions.
   


-- 
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] fix: trim trailing spaces in removeIdFromComment [gravitino]

Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao closed pull request #7996: fix: trim trailing spaces in removeIdFromComment
URL: https://github.com/apache/gravitino/pull/7996


-- 
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] fix: trim trailing spaces in removeIdFromComment [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #7996:
URL: https://github.com/apache/gravitino/pull/7996#issuecomment-3173074216

   I'm not sure why the CI is failing, but given there's no changes, I guess we'll wait until you add those changes again?


-- 
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