Skip to content

feat: promote user crud completion and operational fixes to main#8

Merged
kenneth-loto merged 2 commits into
mainfrom
develop
Jun 30, 2026
Merged

feat: promote user crud completion and operational fixes to main#8
kenneth-loto merged 2 commits into
mainfrom
develop

Conversation

@kenneth-loto

Copy link
Copy Markdown
Owner

Summary

Promotes the completed User CRUD, improved Prisma error handling, graceful shutdown, and the production build path fix from develop into main.

What's Changed

  • User create, update, and delete endpoints with tests now in main
  • Improved Prisma error messages now in main
  • Graceful shutdown hooks and pool error logging now in main
  • Fixed rootDir build output path now in main
  • Readme corrections now in main

Why

The start:prod build fix is blocking for any production deployment and must be on main before TaskForge API can be deployed.

kenneth-loto and others added 2 commits June 30, 2026 23:46
… output path

- create CreateUserDto with email, name, and role fields, and UpdateUserDto using
PartialType
- add create, update, and delete methods to UserService
- add POST /user, PATCH /user/:id, and DELETE /user/:id endpoints to UserController, all
admin-only with role selection on create
- add 14 tests across user.service and user.controller suites covering create, update, and
delete
- add app.enableShutdownHooks() in main.ts for clean sigterm and sigint handling
- improve prisma error messages in AllExceptionsFilter showing target fields for P2002,
cause for P2025, and fk field for P2003
- add onPoolError callback in PrismaService logging pool-level errors instead of crashing
the process
- update e2e test to match current root route welcome json response
- fix readme task status values, arcjet link, and swagger url from /api to /docs
- add rootDir ./src to tsconfig.build.json so dist/main.js generates correctly instead of
dist/src/main.js fixing start:prod
… output path

Completes the User module with CreateUserDto and UpdateUserDto, create, update, and delete service methods, admin-only POST PATCH and DELETE endpoints, and 14 new tests across two suites. Adds enableShutdownHooks for graceful sigterm and sigint handling, improves Prisma error messages in AllExceptionsFilter for P2002, P2025, and P2003 codes, adds an onPoolError callback to PrismaService to log rather than crash on pool errors, updates the e2e test for the current root route, fixes readme inaccuracies, and adds rootDir to tsconfig.build.json fixing the start:prod build output path.
@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@kenneth-loto kenneth-loto merged commit 07f102a into main Jun 30, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant