vogievetsky commented on a change in pull request #7705: Web-Console: add go to 
editor button to tasks and supervisors view
URL: https://github.com/apache/incubator-druid/pull/7705#discussion_r287170096
 
 

 ##########
 File path: web-console/src/views/load-data-view/load-data-view.tsx
 ##########
 @@ -2348,11 +2349,27 @@ export class LoadDataView extends 
React.Component<LoadDataViewProps, LoadDataVie
   }
 
   // ==================================================================
+  private getSupervisorJson = async (): Promise<void> =>  {
+    try {
+      const resp = await 
axios.get(`/druid/indexer/v1/supervisor/${this.props.initSupervisorId}`);
+      this.updateSpec(resp.data);
+      this.updateStage('json-spec');
+    } catch (e) {
+    }
+  }
+
+  private getTaskJson = async (): Promise<void> =>  {
+    try {
+      const resp = await 
axios.get(`/druid/indexer/v1/task/${this.props.initTaskId}`);
+      this.updateSpec(resp.data.payload.spec);
+      this.updateStage('json-spec');
+    } catch (e) {
 
 Review comment:
   Please add an error state

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to