Skip to content

Commit ad6a4c8

Browse files
committed
fly_v31 temp fix
1 parent 1a817ab commit ad6a4c8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/datasource/graphene/backend.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ function downloadFragment(
108108
if (parameters.sharding) {
109109
return downloadFragmentWithSharding(fragmentKvStore, fragmentId, signal);
110110
} else {
111+
// TODO, is this change safe?
111112
return readKvStore(
112113
fragmentKvStore.store,
113-
`${fragmentKvStore.path}/${fragmentId}`,
114+
`${fragmentKvStore.path}${fragmentId}`,
114115
{ signal, throwIfMissing: true },
115116
);
116117
}

src/kvstore/gcs/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ export class GcsKvStore implements KvStore {
6363
//
6464
// 2. If the object does not prohibit caching (e.g. public bucket and default
6565
// `cache-control` metadata value), GCS may return stale responses.
66+
// parseSpecialUrl("foo");
67+
if (
68+
this.bucket === "seunglab2" &&
69+
key.includes("ws_190410_FAFB_v02_ws_size_threshold_200")
70+
) {
71+
console.log("we are doing this!");
72+
return (
73+
`https://storage.googleapis.com/${this.bucket}/` +
74+
`${key}?alt=media` +
75+
`&neuroglancer=${getRandomHexString()}`
76+
);
77+
}
6678
return (
6779
`https://storage.googleapis.com/storage/v1/b/${this.bucket}/o/` +
6880
`${encodeURIComponent(key)}?alt=media` +

0 commit comments

Comments
 (0)