@openneuro/server 4.37.0-alpha.0 → 4.37.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openneuro/server",
|
|
3
|
-
"version": "4.37.0-alpha.
|
|
3
|
+
"version": "4.37.0-alpha.2",
|
|
4
4
|
"description": "Core service for the OpenNeuro platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "src/server.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@elastic/elasticsearch": "8.13.1",
|
|
22
22
|
"@graphql-tools/schema": "^10.0.0",
|
|
23
23
|
"@keyv/redis": "^4.5.0",
|
|
24
|
-
"@openneuro/search": "^4.37.0-alpha.
|
|
24
|
+
"@openneuro/search": "^4.37.0-alpha.2",
|
|
25
25
|
"@sentry/node": "^8.25.0",
|
|
26
26
|
"@sentry/profiling-node": "^8.25.0",
|
|
27
27
|
"base64url": "^3.0.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "f424a56ad584dd29969898214e2de23060aea6a8"
|
|
92
92
|
}
|
package/src/datalad/dataset.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* See resolvers for interaction with other data sources.
|
|
5
5
|
*/
|
|
6
|
+
import * as Sentry from "@sentry/node"
|
|
6
7
|
import request from "superagent"
|
|
7
8
|
import requestNode from "request"
|
|
8
9
|
import objectHash from "object-hash"
|
|
@@ -72,8 +73,9 @@ export const createDataset = async (
|
|
|
72
73
|
await notifications.snapshotReminder(datasetId)
|
|
73
74
|
return ds
|
|
74
75
|
} catch (e) {
|
|
76
|
+
Sentry.captureException(e)
|
|
75
77
|
// eslint-disable-next-line
|
|
76
|
-
console.error(`Failed to create ${datasetId}`)
|
|
78
|
+
console.error(`Failed to create ${datasetId}: ${e}`)
|
|
77
79
|
throw e
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -30,7 +30,7 @@ export const brainInitiative = async (
|
|
|
30
30
|
return await cache.get(async () => {
|
|
31
31
|
try {
|
|
32
32
|
const metadata = await Metadata.findOne({ datasetId: dataset.id })
|
|
33
|
-
if (metadata
|
|
33
|
+
if (metadata?.grantFunderName?.match(brainInitiativeMatch)) {
|
|
34
34
|
return true
|
|
35
35
|
} else {
|
|
36
36
|
// Fetch snapshot if metadata didn't match
|
package/src/queues/queues.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function setupQueues() {
|
|
|
14
14
|
EQueueDeliveryModel.POINT_TO_POINT,
|
|
15
15
|
(err) => {
|
|
16
16
|
// The queue may already exist, don't log that error
|
|
17
|
-
if (err !== "QueueQueueExistsError") {
|
|
17
|
+
if (err && err.name !== "QueueQueueExistsError") {
|
|
18
18
|
Sentry.captureException(err)
|
|
19
19
|
}
|
|
20
20
|
},
|