Skip to content

add user groups

add user groups #9

Triggered via pull request March 16, 2024 16:43
Status Failure
Total duration 1m 51s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
ci
@apps/backend#test:integration:run: command (/home/runner/work/neighbourly/neighbourly/apps/backend) /opt/hostedtoolcache/node/20.11.1/x64/bin/npm run test:integration:run exited (1)
src/modules/groupModule/infrastructure/repositories/groupRepository/groupRepositoryImpl.integration.test.ts > GroupRepositoryImpl > Save > throws an error while creating - when Group with the same name already exists: apps/backend/src/modules/groupModule/infrastructure/repositories/groupRepository/groupRepositoryImpl.ts#L122
RepositoryError: Repository error. ❯ GroupRepositoryImpl.create src/modules/groupModule/infrastructure/repositories/groupRepository/groupRepositoryImpl.ts:122:13 ❯ src/modules/groupModule/infrastructure/repositories/groupRepository/groupRepositoryImpl.integration.test.ts:157:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { context: { entity: 'Group', operation: 'create', error: { stack: 'error: insert into "groups" ("addressId", "id", "name") values ($1, $2, $3) returning * - duplicate key value violates unique constraint "groups_name_unique"\n at Parser.parseErrorMessage (/home/runner/work/neighbourly/neighbourly/node_modules/pg-protocol/src/parser.ts:369:69)\n at Parser.handlePacket (/home/runner/work/neighbourly/neighbourly/node_modules/pg-protocol/src/parser.ts:188:21)\n at Parser.parse (/home/runner/work/neighbourly/neighbourly/node_modules/pg-protocol/src/parser.ts:103:30)\n at Socket.<anonymous> (/home/runner/work/neighbourly/neighbourly/node_modules/pg-protocol/src/index.ts:7:48)\n at Socket.emit (node:events:518:28)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Socket.Readable.push (node:internal/streams/readable:390:5)\n at TCP.onStreamRead (node:internal/stream_base_commons:190:23)', message: 'insert into "groups" ("addressId", "id", "name") values ($1, $2, $3) returning * - duplicate key value violates unique constraint "groups_name_unique"', length: 203, name: 'error', severity: 'ERROR', code: '23505', detail: 'Key (name)=(totam) already exists.', hint: undefined, position: undefined, internalPosition: undefined, internalQuery: undefined, where: undefined, schema: 'public', table: 'groups', column: undefined, dataType: undefined, constraint: 'groups_name_unique', file: 'nbtinsert.c', line: '666', routine: '_bt_check_unique', constructor: 'Function<DatabaseError>', toString: 'Function<toString>' } } }
ci
Process completed with exit code 1.
ci
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.