You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@submarine.apache.org by GitBox <gi...@apache.org> on 2021/07/01 07:54:57 UTC

[GitHub] [submarine] kevin85421 opened a new pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

kevin85421 opened a new pull request #630:
URL: https://github.com/apache/submarine/pull/630


   ### What is this PR for?
   * Underscore character is invalid for experiment name, and it will cause Kubernetes Java API to throw an exception "io.kubernetes.client.ApiException" with the error message "Unprocessable Entity" as shown in the attachment figure. In addition, no POD related to the experiment will be created, and users cannot get any error notification from the workbench.
   <img width="915" alt="截圖 2021-07-01 下午12 25 43" src="https://user-images.githubusercontent.com/20109646/124086289-7c8b3180-da83-11eb-9932-9cc7bb15bbc4.png">
   
   * In this PR, the valid characters for experiment name only include "a-z", "A-Z", "0-9", and "-". Hence, the ApiException can be avoided.
   
   ### What type of PR is it?
   [Bug Fix]
   
   ### Todos
   
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-886
   
   ### How should this be tested?
   * Workbench -> New Experiment -> Define your experiment -> Enter experiment name
   
   ### Screenshots (if appropriate)
   <img width="997" alt="截圖 2021-07-01 下午3 44 00" src="https://user-images.githubusercontent.com/20109646/124087097-47331380-da84-11eb-96e8-a316edf87285.png">
   <img width="994" alt="截圖 2021-07-01 下午3 44 16" src="https://user-images.githubusercontent.com/20109646/124087103-48fcd700-da84-11eb-9f93-48feda1ca600.png">
   <img width="994" alt="截圖 2021-07-01 下午3 45 04" src="https://user-images.githubusercontent.com/20109646/124087119-4bf7c780-da84-11eb-8a4b-809fc2cd4111.png">
   <img width="986" alt="截圖 2021-07-01 下午3 44 40" src="https://user-images.githubusercontent.com/20109646/124087123-4dc18b00-da84-11eb-8d38-d7abd0e242c5.png">
   
   
   ### Questions:
   * Do the license files need updating? No
   * Are there breaking changes for older versions? No
   * Does this need new documentation? No
   


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu commented on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu commented on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872030854


   LGTM. Thanks for your contribution! This is very useful for workbench users.


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu removed a comment on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu removed a comment on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872034774


   LGTM. Thanks for your contribution!


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] kevin85421 commented on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
kevin85421 commented on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872016462


   @ByronHsu Can you help me review this PR? Thanks!


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu removed a comment on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu removed a comment on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872030854


   LGTM. Thanks for your contribution! This is very useful for workbench users.


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu commented on a change in pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu commented on a change in pull request #630:
URL: https://github.com/apache/submarine/pull/630#discussion_r662084283



##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.html
##########
@@ -41,6 +41,9 @@
             formControlName="experimentName"
             placeholder="mnist-example"
           />
+          <div class="alert-message" *ngIf="experiment.get('experimentName').hasError('pattern')">
+            Invalid characters exist!

Review comment:
       Maybe we can replace the message with something like "only [a-zA-Z0-9\-] is allowed" to be more clear?




-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] asfgit closed pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
asfgit closed pull request #630:
URL: https://github.com/apache/submarine/pull/630


   


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] kevin85421 commented on a change in pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
kevin85421 commented on a change in pull request #630:
URL: https://github.com/apache/submarine/pull/630#discussion_r662176730



##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-form/experiment-customized-form/experiment-customized-form.component.html
##########
@@ -41,6 +41,9 @@
             formControlName="experimentName"
             placeholder="mnist-example"
           />
+          <div class="alert-message" *ngIf="experiment.get('experimentName').hasError('pattern')">
+            Invalid characters exist!

Review comment:
       @ByronHsu Good idea! I have fixed it with the help of Google lol.
   <img width="461" alt="截圖 2021-07-01 下午6 34 48" src="https://user-images.githubusercontent.com/20109646/124110632-05619780-da9b-11eb-8a2c-a419b775d40c.png">
   




-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu commented on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu commented on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872034774


   LGTM. Thanks for your contribution!


-- 
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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [submarine] ByronHsu commented on pull request #630: SUBMARINE-886. Underscore character is invalid for experiment name

Posted by GitBox <gi...@apache.org>.
ByronHsu commented on pull request #630:
URL: https://github.com/apache/submarine/pull/630#issuecomment-872221672


   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@submarine.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org