@openneuro/server 4.39.1 → 4.39.3

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.39.1",
3
+ "version": "4.39.3",
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.39.1",
24
+ "@openneuro/search": "^4.39.3",
25
25
  "@sentry/node": "^8.25.0",
26
26
  "@sentry/profiling-node": "^8.25.0",
27
27
  "base64url": "^3.0.0",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "cb45ecb6faa41ef144b1d377507a81dfbb701283"
92
+ "gitHead": "3e1759c268a8d8fdcfefec51958ff76523998174"
93
93
  }
@@ -67,7 +67,12 @@ export const contributors = async (
67
67
  }
68
68
 
69
69
  // --- Dataset type but no contributors ---
70
- if (resourceType === "Dataset") {
70
+ // Only log if a Datacite file actually exists
71
+ if (
72
+ dataciteData?.data?.attributes &&
73
+ resourceType === "Dataset" &&
74
+ !attributes?.contributors?.length
75
+ ) {
71
76
  Sentry.captureMessage(
72
77
  `Datacite file for ${datasetId}:${revisionShort} is Dataset type but provided no contributors.`,
73
78
  )
@@ -545,6 +545,9 @@ export const typeDefs = `
545
545
  location: String
546
546
  severity: Severity
547
547
  rule: String
548
+ issueMessage: String
549
+ affects: String
550
+ line: Int
548
551
  }
549
552
 
550
553
  type DatasetValidation {
@@ -835,6 +838,7 @@ export const typeDefs = `
835
838
  rule: String
836
839
  issueMessage: String
837
840
  affects: String
841
+ line: Int
838
842
  }
839
843
 
840
844
  input ValidatorCodeMessageInput {