Skip to content

Commit 46039ec

Browse files
authored
Merge pull request #1496 from FZJ-INM1-BDA/staging
v2.14.21
2 parents 8b47d4d + 65e4046 commit 46039ec

File tree

12 files changed

+63
-16
lines changed

12 files changed

+63
-16
lines changed

.github/workflows/deploy-helm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
--history-max 3 \
6464
--reuse-values \
6565
--set image.tag=${{ inputs.IMAGE_TAG }} \
66+
--set envObj.OVERWRITE_API_ENDPOINT="https://siibra-api-rc.apps.ebrains.eu/v3_0" \
6667
--set podAnnotations.image-digest=${{ inputs.IMAGE_DIGEST }} \
6768
${{ inputs.DEPLOYMENT_NAME }} .helm/siibra-explorer/ \
6869
|| helm --kubeconfig=$kubecfg_path \

.helm/siibra-explorer/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.6
18+
version: 0.1.7
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "2.14.19"
24+
appVersion: "2.14.21"

.helm/siibra-explorer/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ tolerations: []
8787
affinity: {}
8888

8989
envObj:
90-
OVERWRITE_SPATIAL_ENDPOINT: https://siibra-spatial-backend.apps.tc.humanbrainproject.eu
90+
OVERWRITE_SPATIAL_ENDPOINT: https://siibra-spatial-backend.apps.ebrains.eu
9191
HOST_PATHNAME: /viewer
9292
OVERWRITE_API_ENDPOINT: https://siibra-api.apps.ebrains.eu/v3_0

backend/app/sane_url.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ def delete(self, key: str):
145145
async def get_short(short_id:str, request: Request):
146146
accept = request.headers.get("Accept", "")
147147
is_browser = "text/html" in accept
148+
headers = {
149+
"Vary": "accept"
150+
}
148151
try:
149152
existing_json: Dict[str, Any] = data_proxy_store.get(short_id)
150153
if is_browser:
@@ -157,17 +160,17 @@ async def get_short(short_id:str, request: Request):
157160

158161
extra_routes_str = "" if len(extra_routes) == 0 else ("/" + "/".join(extra_routes))
159162

160-
return RedirectResponse(f"{HOST_PATHNAME}/#{hashed_path}{extra_routes_str}")
161-
return JSONResponse(existing_json)
163+
return RedirectResponse(f"{HOST_PATHNAME}/#{hashed_path}{extra_routes_str}", headers=headers)
164+
return JSONResponse(existing_json, headers=headers)
162165
except DataproxyStore.NotFound as e:
163166
if is_browser:
164167
request.session[ERROR_KEY] = f"Short ID {short_id} not found."
165-
return RedirectResponse(HOST_PATHNAME or "/")
168+
return RedirectResponse(HOST_PATHNAME or "/", headers=headers)
166169
raise HTTPException(404, str(e))
167170
except DataproxyStore.GenericException as e:
168171
if is_browser:
169172
request.session[ERROR_KEY] = f"Error: {str(e)}"
170-
return RedirectResponse(HOST_PATHNAME or "/")
173+
return RedirectResponse(HOST_PATHNAME or "/", headers=headers)
171174
raise HTTPException(500, str(e))
172175

173176

codemeta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
],
9292
"codeRepository": "git+https://github.com/fzj-inm1-bda/siibra-explorer.git",
9393
"dateCreated": "2024-08-28",
94-
"dateModified": "2025-05-23",
94+
"dateModified": "2025-05-28",
9595
"datePublished": "2019-04-26",
9696
"description": "`siibra-explorer` is a browser based 3D viewer for exploring brain atlases that cover different spatial resolutions and modalities. It is built around an interactive 3D view of the brain displaying a unique selection of detailed templates and parcellation maps for the human, macaque, rat or mouse brain, including BigBrain as a microscopic resolution human brain model at its full resolution of 20 micrometers. ",
9797
"license": "https://spdx.org/licenses/Apache-2.0",
@@ -100,9 +100,9 @@
100100
"python 3",
101101
"typescript"
102102
],
103-
"schema:releaseNotes": "# v2.14.20\n\n## Feature\n\n- Show/Hide delineation now persist in state\n- (experimental) glass brain\n\n## Bugfix\n\n- Fixed some instability of annotation mode. \n\n## Behind the scenes\n\n- Clarified authors & contributors\n- Improve performance by batching adding & removing layers\n- Added text to reflect that annoations will also be shared\n- Enabled viewer config in experimental mode\n",
103+
"schema:releaseNotes": "# v2.14.21\n\n## Bugfix\n\n- fix the URL of older versions of explorer incorrectly showing delineation flag\n- fix annotation vary header",
104104
"runtimePlatform": "docker",
105-
"version": "2.14.20",
105+
"version": "2.14.21",
106106
"contIntegration": "https://github.com/FZJ-INM1-BDA/siibra-explorer/actions",
107107
"codemeta:continuousIntegration": {
108108
"id": "https://github.com/FZJ-INM1-BDA/siibra-explorer/actions"

docs/releases/v2.14.21.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# v2.14.21
2+
3+
## Bugfix
4+
5+
- fix the URL of older versions of explorer incorrectly showing delineation flag
6+
- fix annotation vary header

features/saneurl.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ Feature: SaneURL a.k.a. URL shortener
6262
Given <https://atlases.ebrains.eu/viewer-staging/saneUrl/stnr>
6363
Then Works
6464

65+
Scenario: Permalink works (PMAP)
66+
Given <https://atlases.ebrains.eu/viewer-staging/go/BST_r_MNI152>
67+
Then Works
68+
69+
Scenario: Permalink works (MPM)
70+
Given <https://atlases.ebrains.eu/viewer-staging/go/BST_r_MPM_MNI152>
71+
Then Works
72+
73+
Scenario: Permalink works (no delineation overlay)
74+
Given <https://atlases.ebrains.eu/viewer-staging/go/BST_BigBrain_1um>
75+
Then Works
76+
6577

6678
Scenario: VIP link works (human)
6779
Given <https://atlases.ebrains.eu/viewer-staging/human>

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ nav:
4646
- Plugin API: "advanced/api/README.md"
4747

4848
- Release notes:
49+
- v2.14.21: 'releases/v2.14.21.md'
4950
- v2.14.20: 'releases/v2.14.20.md'
5051
- v2.14.19: 'releases/v2.14.19.md'
5152
- v2.14.18: 'releases/v2.14.18.md'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "siibra-explorer",
3-
"version": "2.14.20",
3+
"version": "2.14.21",
44
"description": "siibra-explorer - explore brain atlases. Based on humanbrainproject/nehuba & google/neuroglancer. Built with angular",
55
"scripts": {
66
"lint": "eslint src --ext .ts",
@@ -11,7 +11,7 @@
1111
"watch": "ng build --watch --configuration development",
1212
"test": "ng test",
1313
"test-ci": "ng test --progress false --watch false --browsers=ChromeHeadless",
14-
"sapi-schema": "curl 'https://siibra-api-stable.apps.hbp.eu/v3_0/openapi.json' | jq > ./src/atlasComponents/sapi/openapi.json && npx openapi-typescript@6.1.0 ./src/atlasComponents/sapi/openapi.json --output ./src/atlasComponents/sapi/schemaV3.ts && eslint ./src/atlasComponents/sapi/schemaV3.ts --no-ignore --fix",
14+
"sapi-schema": "curl 'https://siibra-api.ebrains.hbp.eu/v3_0/openapi.json' | jq > ./src/atlasComponents/sapi/openapi.json && npx openapi-typescript@6.1.0 ./src/atlasComponents/sapi/openapi.json --output ./src/atlasComponents/sapi/schemaV3.ts && eslint ./src/atlasComponents/sapi/schemaV3.ts --no-ignore --fix",
1515
"api-schema": "node src/api/generateSchema.mjs",
1616
"prepare-release": "node .prepare_release.mjs"
1717
},

src/routerModule/routeStateTransform.service.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ const decodeMiscState = {
7878

7979
const [ octantRemoval, showDelineation ] = decodeBool(array[2])
8080
returnVal.octantRemoval = octantRemoval
81-
returnVal.showDelineation = showDelineation
81+
82+
// this is to fix the v1 implementation where the showdelineation is accidentally flipped
83+
// see https://github.com/FZJ-INM1-BDA/siibra-explorer/blob/b38e7948fc1c3e36f219aaa12c64726b34b5e132/src/routerModule/routeStateTransform.service.ts#L369
84+
returnVal.showDelineation = !showDelineation
8285

8386
return returnVal
8487
},
@@ -108,6 +111,9 @@ const decodeMiscState = {
108111

109112
const returnVal: ViewerCfgStateV2 = {
110113
...v1State,
114+
// this is to fix the v1 implementation where the showdelineation is accidentally flipped
115+
// see https://github.com/FZJ-INM1-BDA/siibra-explorer/blob/b38e7948fc1c3e36f219aaa12c64726b34b5e132/src/routerModule/routeStateTransform.service.ts#L369
116+
showDelineation: !v1State.showDelineation,
111117
auxMeshAlpha: meshAlpha,
112118
panelOrder: panelOrder.join(""),
113119
}
@@ -294,7 +300,6 @@ export class RouteStateTransformSvc {
294300
const { panelMode, panelOrder, showDelineation, octantRemoval, auxMeshAlpha } = !!viewerConfigState
295301
? this.decodeMiscState(viewerConfigState)
296302
: { panelMode: "FOUR_PANEL" as const, panelOrder: "0123", showDelineation: true, octantRemoval: true, auxMeshAlpha: 1.0 }
297-
298303
returnState['[state.ui]'].panelMode = panelMode
299304
returnState['[state.ui]'].panelOrder = panelOrder
300305

0 commit comments

Comments
 (0)