You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "procura-interna (via GitHub)" <gi...@apache.org> on 2026/01/08 16:05:01 UTC

[PR] [#9076] Improvement(cli): validation in SetModelVersionProperty.java [gravitino]

procura-interna opened a new pull request, #9656:
URL: https://github.com/apache/gravitino/pull/9656

   ### What changes were proposed in this pull request?
   
   Prevent the SetModelVersionProperty CLI command from accepting both an alias and version (or neither), ensuring it fails instead of invoking the server with invalid inputs.
   
   ### Why are the changes needed?
   
   Fix: #9076
   
   ### Does this PR introduce _any_ user-facing change?
   
   After calling the constructor of SetModelVersionProperty with either both alias and version as null or alias and version as non-null, an exception will be thrown by .validate()
   
   ### How was this patch tested?
   
   Added test class: SetModelVersionPropertyTest
   Ran tests: ./gradlew :clients: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] [#9076] Improvement(cli): validation in SetModelVersionProperty.java [gravitino]

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

   The CI is failing here because the test file is missing an ASF header @procura-interna do you still want to work 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: [PR] [#9076] Improvement(cli): validation in SetModelVersionProperty.java [gravitino]

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

   @justinmclean yes, I will look into it


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