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(
108
108
if ( parameters . sharding ) {
109
109
return downloadFragmentWithSharding ( fragmentKvStore , fragmentId , signal ) ;
110
110
} else {
111
+ // TODO, is this change safe?
111
112
return readKvStore (
112
113
fragmentKvStore . store ,
113
- `${ fragmentKvStore . path } / ${ fragmentId } ` ,
114
+ `${ fragmentKvStore . path } ${ fragmentId } ` ,
114
115
{ signal, throwIfMissing : true } ,
115
116
) ;
116
117
}
Original file line number Diff line number Diff line change @@ -63,6 +63,18 @@ export class GcsKvStore implements KvStore {
63
63
//
64
64
// 2. If the object does not prohibit caching (e.g. public bucket and default
65
65
// `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
+ }
66
78
return (
67
79
`https://storage.googleapis.com/storage/v1/b/${ this . bucket } /o/` +
68
80
`${ encodeURIComponent ( key ) } ?alt=media` +
You can’t perform that action at this time.
0 commit comments