File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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` +
You can’t perform that action at this time.
0 commit comments