From 8c7f4d1ddf21dfe87e33aab9ee9adb393f48b294 Mon Sep 17 00:00:00 2001 From: Srinath Narayanan Date: Thu, 2 Sep 2021 21:31:13 +0530 Subject: [PATCH] split service changes --- src/Explorer/Explorer.tsx | 2 +- src/Explorer/Notebook/NotebookContentClient.ts | 11 +---------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Explorer/Explorer.tsx b/src/Explorer/Explorer.tsx index 362f4ff99..85ee8d6ff 100644 --- a/src/Explorer/Explorer.tsx +++ b/src/Explorer/Explorer.tsx @@ -482,7 +482,7 @@ export default class Explorer { var notebookServerInfo = await response.json(); this.notebookServerInfo({ - notebookServerEndpoint: userContext.features.notebookServerUrl || `http://localhost:443/api/containerpooling/${notebookServerInfo.forwardingId}/forward/`, + notebookServerEndpoint: userContext.features.notebookServerUrl || notebookServerInfo.notebookServerUrl, authToken: userContext.features.notebookServerToken || notebookServerInfo.notebookServerToken, }); this.notebookServerInfo.valueHasMutated(); diff --git a/src/Explorer/Notebook/NotebookContentClient.ts b/src/Explorer/Notebook/NotebookContentClient.ts index 05f31667d..89e1237b2 100644 --- a/src/Explorer/Notebook/NotebookContentClient.ts +++ b/src/Explorer/Notebook/NotebookContentClient.ts @@ -12,7 +12,7 @@ export class NotebookContentClient { private notebookServerInfo: ko.Observable, public notebookBasePath: ko.Observable, private contentProvider: IContentProvider - ) {} + ) { } /** * This updates the item and points all the children's parent to this item @@ -38,14 +38,6 @@ export class NotebookContentClient { } const type = "notebook"; - const item = NotebookUtil.createNotebookContentItem("Sample.ipynb", "notebooks/Sample.ipynb", "notebook"); - if (parent.children) { - item.parent = parent; - parent.children.push(item); - } - return this.sleep(1000).then(() => item); - - /* return this.contentProvider .create<"notebook">(this.getServerConfig(), parent.path, { type }) @@ -69,7 +61,6 @@ export class NotebookContentClient { return item; }); - */ } public deleteContentItem(item: NotebookContentItem): Promise {