split service changes

This commit is contained in:
Srinath Narayanan 2021-09-02 21:31:13 +05:30
parent 78e5c88e3c
commit 8c7f4d1ddf
2 changed files with 2 additions and 11 deletions

View File

@ -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();

View File

@ -12,7 +12,7 @@ export class NotebookContentClient {
private notebookServerInfo: ko.Observable<DataModels.NotebookWorkspaceConnectionInfo>,
public notebookBasePath: ko.Observable<string>,
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<void> {