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/01/14 13:12:17 UTC

[GitHub] [submarine] ByronHsu opened a new pull request #492: SUBMARINE-710. Frontend support for tensorboard

ByronHsu opened a new pull request #492:
URL: https://github.com/apache/submarine/pull/492


   ### What is this PR for?
   I added a "tensorboard" button on the experiment page in the workbench. 
   It will show as loading when 
   1. the api-client is still fetching the tensorboard meta-data
   2. tensorboard pod is not ready
   
   After the fetching succeeds, users can click the button and link to the tensorboard page.
   
   ### What type of PR is it?
   [Feature]
   
   ### Todos
   * [ ] - Task
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/projects/SUBMARINE/issues/SUBMARINE-710
   
   ### How should this be tested?
   
   
   ### Screenshots (if appropriate)
   
   ![Kapture 2021-01-14 at 20 52 31](https://user-images.githubusercontent.com/24364830/104594689-7a3b4380-56ac-11eb-869d-adf2f102f114.gif)
   
   
   ### Questions:
   * Does the licenses files need update? No
   * Is there breaking changes for older versions? No
   * Does this needs 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.

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



[GitHub] [submarine] pingsutw commented on a change in pull request #492: SUBMARINE-710. Frontend support for tensorboard

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



##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-home.component.ts
##########
@@ -114,4 +121,28 @@ export class ExperimentHomeComponent implements OnInit {
   onInitModal(obj) {
     this.form.initModal(obj.initMode, obj.initFormType, obj.id, obj.spec);
   }
+
+  getTensorboardInfo(period: number, due: number) {

Review comment:
       Okay, got 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.

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



[GitHub] [submarine] ByronHsu commented on pull request #492: SUBMARINE-710. Frontend support for tensorboard

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


   @kevin85421 @pingsutw 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.

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



[GitHub] [submarine] ByronHsu commented on a change in pull request #492: SUBMARINE-710. Frontend support for tensorboard

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



##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-home.component.ts
##########
@@ -114,4 +121,28 @@ export class ExperimentHomeComponent implements OnInit {
   onInitModal(obj) {
     this.form.initModal(obj.initMode, obj.initFormType, obj.id, obj.spec);
   }
+
+  getTensorboardInfo(period: number, due: number) {

Review comment:
       The limit time is named `due` in timeout() function in rxjs as the following:
   `timeout<T>(due: number | Date, scheduler: SchedulerLike = async): MonoTypeOperatorFunction<T>`
   So I think it kind of makes sense.




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

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



[GitHub] [submarine] asfgit closed pull request #492: SUBMARINE-710. Frontend support for tensorboard

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


   


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

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



[GitHub] [submarine] pingsutw commented on a change in pull request #492: SUBMARINE-710. Frontend support for tensorboard

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



##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-home.component.html
##########
@@ -24,11 +24,18 @@
       <label nz-radio-button nzValue="Own">Owned By Me</label>
       <label nz-radio-button nzValue="Access">Accessible By Me</label>
     </nz-radio-group>
-    <nz-input-group
-      nzSearch
-      style="width: 300px; margin-top: 15px; margin-left: 10px; margin-right: 5px"
-      [nzAddOnAfter]="suffixIconButton"
+    <a
+      nz-button
+      nzType="primary"
+      style="margin: 0px 4px 0px 4px"
+      [nzLoading]="isTensorboardLoading"
+      [href]="tensorboardUrl"
     >
+      <i nz-icon nzType="area-chart"></i>
+      Tensorboard

Review comment:
       ```suggestion
         TensorBoard
   ```

##########
File path: submarine-workbench/workbench-web/src/app/pages/workbench/experiment/experiment-home/experiment-home.component.ts
##########
@@ -114,4 +121,28 @@ export class ExperimentHomeComponent implements OnInit {
   onInitModal(obj) {
     this.form.initModal(obj.initMode, obj.initFormType, obj.id, obj.spec);
   }
+
+  getTensorboardInfo(period: number, due: number) {

Review comment:
       it would be better to use `timeout` instead of `due`




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

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