Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/openneuro-server/src/datalad/contributors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export const contributors = async (
}

// --- Dataset type but no contributors ---
if (resourceType === "Dataset") {
// Only log if a Datacite file actually exists
if (
dataciteData?.data?.attributes &&
resourceType === "Dataset" &&
!attributes?.contributors?.length
) {
Sentry.captureMessage(
`Datacite file for ${datasetId}:${revisionShort} is Dataset type but provided no contributors.`,
)
Expand Down