Skip to content

Refactor/contributor citation events #1679

Refactor/contributor citation events

Refactor/contributor citation events #1679

Triggered via pull request November 5, 2025 21:02
Status Failure
Total duration 2m 50s
Artifacts

typescript.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors
build (24.x)
Process completed with exit code 1.
packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts > user resolvers > users() > rejects data for non-admin context: packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts#L137
AssertionError: promise resolved "{ users: [ { …(19) }, …(5) ], …(1) }" instead of rejecting - Expected + Received - Error { - "message": "rejected promise", + { + "totalCount": 6, + "users": [ + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f6", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.923Z, + "email": null, + "github": "", + "id": "u6", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.923Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test Admin User", + "orcid": "0000-0000-0000-0006", + "orcidConsent": null, + "provider": "orcid", + "providerId": "orcid6", + "updatedAt": 2023-01-06T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f7", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.923Z, + "email": null, + "github": "", + "id": "u7", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.923Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "updatedAt": 2023-01-05T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f1", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.921Z, + "email": null, + "github": "", + "id": "u1", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.921Z, + "links": [], + "location": "", + "migrated": false, + "name": "Alice Admin", + "orcid": "0000-0000-0000-0001", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0001", + "updatedAt": 2023-01-05T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f2", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.921Z, + "email": null, + "github": "", + "id": "u2", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.921Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "provider": "google", + "providerId": "google2", + "updatedAt": 2023-01-04T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f3", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.922Z, + "email": null, + "github": "", + "id": "u3", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.922Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0003", + "updatedAt": 2023-01-03T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f4", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:18.922Z, + "email": null, + "github": "", + "id": "u4", + "institution": "", + "lastSeen": 2025-11-05T21:03:18.922Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test Admin User", + "orcid": "0000-0000-0000-0004", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0004", + "updatedAt": 2023-01-02T00:00:00.000Z, + }, + ], } ❯ packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts:137:52
build (22.x)
The strategy configuration was canceled because "build._24_x" failed
build (22.x)
The operation was canceled.
packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts > user resolvers > users() > rejects data for non-admin context: packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts#L137
AssertionError: promise resolved "{ users: [ { …(19) }, …(5) ], …(1) }" instead of rejecting - Expected + Received - Error { - "message": "rejected promise", + { + "totalCount": 6, + "users": [ + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f6", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.795Z, + "email": null, + "github": "", + "id": "u6", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.795Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test Admin User", + "orcid": "0000-0000-0000-0006", + "orcidConsent": null, + "provider": "orcid", + "providerId": "orcid6", + "updatedAt": 2023-01-06T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f7", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.795Z, + "email": null, + "github": "", + "id": "u7", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.795Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "updatedAt": 2023-01-05T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f1", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.793Z, + "email": null, + "github": "", + "id": "u1", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.793Z, + "links": [], + "location": "", + "migrated": false, + "name": "Alice Admin", + "orcid": "0000-0000-0000-0001", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0001", + "updatedAt": 2023-01-05T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f2", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.793Z, + "email": null, + "github": "", + "id": "u2", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.793Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "provider": "google", + "providerId": "google2", + "updatedAt": 2023-01-04T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f3", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.794Z, + "email": null, + "github": "", + "id": "u3", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.794Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test User", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0003", + "updatedAt": 2023-01-03T00:00:00.000Z, + }, + { + "__v": 0, + "_id": "60f0f0f0f0f0f0f0f0f0f0f4", + "admin": null, + "blocked": null, + "created": 2025-11-05T21:03:09.794Z, + "email": null, + "github": "", + "id": "u4", + "institution": "", + "lastSeen": 2025-11-05T21:03:09.794Z, + "links": [], + "location": "", + "migrated": false, + "name": "Test Admin User", + "orcid": "0000-0000-0000-0004", + "orcidConsent": null, + "provider": "orcid", + "providerId": "0000-0000-0000-0004", + "updatedAt": 2023-01-02T00:00:00.000Z, + }, + ], } ❯ packages/openneuro-server/src/graphql/resolvers/__tests__/user.spec.ts:137:52