Skip to content

Commit

Permalink
apply PR feedback #2
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-wer committed Mar 5, 2019
1 parent a5e05de commit 970d167
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions frontend/javascripts/admin/admin_rest_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {
type ServerSkeletonTracing,
type ServerTracing,
type ServerVolumeTracing,
type wkConnectDatasetConfig,
type WkConnectDatasetConfig,
} from "admin/api_flow_types";
import type { DatasetConfiguration } from "oxalis/store";
import type { NewTask, TaskCreationResponse } from "admin/task/task_create_bulk_view";
Expand Down Expand Up @@ -781,7 +781,7 @@ export function addDataset(datasetConfig: DatasetConfig): Promise<void> {

export function addWkConnectDataset(
datastoreHost: string,
datasetConfig: wkConnectDatasetConfig,
datasetConfig: WkConnectDatasetConfig,
): Promise<void> {
return doWithToken(token =>
Request.sendJSONReceiveJSON(`/data/datasets?token=${token}`, {
Expand Down
11 changes: 6 additions & 5 deletions frontend/javascripts/admin/api_flow_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,16 +364,17 @@ export type DatasetConfig = {
+zipFile: File,
};

type wkConnectLayer = {
type WkConnectLayer = {
// This is the source URL of the layer, should start with gs://, http:// or https://
source: string,
type: "image" | "segmentation",
};

export type wkConnectDatasetConfig = {
export type WkConnectDatasetConfig = {
neuroglancer: {
[string]: {
[string]: {
layers: { [string]: wkConnectLayer },
[organizationName: string]: {
[datasetName: string]: {
layers: { [layerName: string]: WkConnectLayer },
},
},
},
Expand Down

0 comments on commit 970d167

Please sign in to comment.