@openneuro/server 4.27.0-alpha.0 → 4.27.0-alpha.4

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.27.0-alpha.0",
3
+ "version": "4.27.0-alpha.4",
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": "^2.7.0",
24
- "@openneuro/search": "^4.27.0-alpha.0",
24
+ "@openneuro/search": "^4.27.0-alpha.4",
25
25
  "@sentry/node": "^8.25.0",
26
26
  "@sentry/profiling-node": "^8.25.0",
27
27
  "base64url": "^3.0.0",
@@ -85,5 +85,5 @@
85
85
  "publishConfig": {
86
86
  "access": "public"
87
87
  },
88
- "gitHead": "7577739ccee193d927d81806f0eeffc285a28800"
88
+ "gitHead": "878c49f40c6d3b0b0b94f529ba0023280c399d15"
89
89
  }
@@ -152,7 +152,7 @@ export const participantCount = (obj, { modality }) => {
152
152
  $and: [
153
153
  queryHasSubjects,
154
154
  {
155
- "summary.modalities.0": modality,
155
+ "summary.modalities": modality,
156
156
  },
157
157
  ],
158
158
  }
package/src/sentry.ts CHANGED
@@ -14,4 +14,11 @@ Sentry.init({
14
14
  // Set sampling rate for profiling - this is relative to tracesSampleRate
15
15
  profilesSampleRate: 1.0,
16
16
  release: `openneuro-server@${version}`,
17
+ beforeSendTransaction(event) {
18
+ if (event.transaction === "/crn/") {
19
+ // Don't measure the healthcheck endpoint
20
+ return null
21
+ }
22
+ return event
23
+ },
17
24
  })