@openneuro/server 4.39.2 → 4.39.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.39.2",
3
+ "version": "4.39.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": "^4.5.0",
24
- "@openneuro/search": "^4.39.2",
24
+ "@openneuro/search": "^4.39.4",
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": "77cf22f7407de4d1d74d9463f64e5f35a08f0b8b"
92
+ "gitHead": "33eff68009410654d8e3b07207cc01bf9426dedb"
93
93
  }
@@ -135,9 +135,6 @@ describe("contributors (core functionality)", () => {
135
135
  })
136
136
 
137
137
  expect(result).toEqual([])
138
- expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
139
- `Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} is Dataset type but provided no contributors.`,
140
- )
141
138
  expect(mockSentryCaptureException).not.toHaveBeenCalled()
142
139
  })
143
140
 
@@ -168,9 +165,6 @@ describe("contributors (core functionality)", () => {
168
165
  expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
169
166
  `Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} served with unexpected Content-Type: text/plain. Attempting YAML parse anyway.`,
170
167
  )
171
- expect(mockSentryCaptureMessage).toHaveBeenCalledWith(
172
- `Datacite file for ${MOCK_DATASET_ID}:${MOCK_REV_SHORT} is Dataset type but provided no contributors.`,
173
- )
174
168
  expect(mockSentryCaptureException).not.toHaveBeenCalled()
175
169
  expect(result).toEqual([])
176
170
  })
@@ -66,13 +66,6 @@ export const contributors = async (
66
66
  .sort((a, b) => (a.order ?? 0) - (b.order ?? 0))
67
67
  }
68
68
 
69
- // --- Dataset type but no contributors ---
70
- if (resourceType === "Dataset") {
71
- Sentry.captureMessage(
72
- `Datacite file for ${datasetId}:${revisionShort} is Dataset type but provided no contributors.`,
73
- )
74
- }
75
-
76
69
  // --- Fallback: dataset_description.json authors ---
77
70
  const datasetDescription = await description(obj)
78
71
  if (datasetDescription?.Authors?.length) {
@@ -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 {