Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
siibra-explorer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Gui
siibra-explorer
Commits
67a391e8
Unverified
Commit
67a391e8
authored
4 years ago
by
xgui3783
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge branch 'staging' into hotfix_bkwdCmpatNiftiLayers
parents
81dff43a
770fb21c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deploy/datasets/query.js
+6
-3
6 additions, 3 deletions
deploy/datasets/query.js
deploy/datasets/util.js
+2
-1
2 additions, 1 deletion
deploy/datasets/util.js
docs/releases/v2.3.3.md
+1
-0
1 addition, 0 deletions
docs/releases/v2.3.3.md
with
9 additions
and
4 deletions
deploy/datasets/query.js
+
6
−
3
View file @
67a391e8
...
...
@@ -59,7 +59,7 @@ const fetchDatasetFromKg = async ({ user } = {}) => {
const
{
releasedOnly
,
option
}
=
await
getUserKGRequestParam
({
user
})
return
await
new
Promise
((
resolve
,
reject
)
=>
{
request
(
`
${
KG_QUERY_DATASETS_URL
}${
releasedOnly
?
'
&databaseScope=RELEASED
'
:
''
}
`
,
option
,
(
err
,
resp
,
body
)
=>
{
request
(
`
${
KG_QUERY_DATASETS_URL
}${
releasedOnly
?
'
&databaseScope=RELEASED
'
:
'
&databaseScope=INFERRED
'
}
`
,
option
,
(
err
,
resp
,
body
)
=>
{
if
(
err
)
return
reject
(
err
)
if
(
resp
.
statusCode
>=
400
)
return
reject
(
resp
.
statusCode
)
try
{
...
...
@@ -108,8 +108,11 @@ const getPublicDs = async () => {
throw
`cached Data not yet resolved, neither is get public ds defined`
}
const
getDs
=
({
user
})
=>
(
user
/**
* force get only public ds
* getting individual ds is too slow
*/
const
getDs
=
({
user
})
=>
(
false
&&
user
?
fetchDatasetFromKg
({
user
}).
then
(({
results
})
=>
results
)
:
getPublicDs
()
).
then
(
async
datasets
=>
{
...
...
This diff is collapsed.
Click to expand it.
deploy/datasets/util.js
+
2
−
1
View file @
67a391e8
...
...
@@ -21,8 +21,9 @@ const getUserKGRequestParam = async ({ user }) => {
let
publicAccessToken
/**
* n.b. ACCESS_TOKEN env var is usually only set during dev
* user.type any other than 'hbp-oidc' (v1 of oidc) will result in timeout/error
*/
const
accessToken
=
(
user
&&
user
.
tokenset
&&
user
.
tokenset
.
access_token
)
||
process
.
env
.
ACCESS_TOKEN
const
accessToken
=
(
user
&&
user
.
type
===
'
hbp-oidc
'
&&
user
.
tokenset
&&
user
.
tokenset
.
access_token
)
||
process
.
env
.
ACCESS_TOKEN
const
releasedOnly
=
!
accessToken
if
(
!
accessToken
&&
getPublicAccessToken
)
{
publicAccessToken
=
await
getPublicAccessToken
()
...
...
This diff is collapsed.
Click to expand it.
docs/releases/v2.3.3.md
+
1
−
0
View file @
67a391e8
...
...
@@ -3,3 +3,4 @@
## Bugfixes
-
fix backwards compatibility with some URLs
-
fix bug where fetching of regional features does not complete for logged in users (#826). (the viewer will only fetch released datasets)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment