Chore/upgrade prisma to version 6
review
# Description
<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
This pull request includes several important updates and improvements across the codebase:
1. **Docker Configuration Update**
- Updates base image to node:22-alpine (Updated from previous version [node:18-alpine])
- Adds openssl installation for enhanced security and functionality
2. **Dependency Updates**
- Updates core NestJS packages (@nestjs/common, @nestjs/config, @nestjs/jwt) to version 11

- Updates Prisma client and related dependencies to latest version(6.5.0)

- Updates various other dependencies to their latest versions
3. **Ideation Management Improvements**
- Enhances manageOwnIdeationById function with improved role and permission checks
- Updates query structure for better performance and security
- Adds better error handling for team member ideation management
- Implements input validation through ValidationPipe in IdeationsModule
- Adds permission checks and data validation in IdeationsService
> [!IMPORTANT]
> you should run the command `docker compose down`, then `docker compose up -d --remove-orphans` to have an updated docker image
# Useful Links:
[upgrading to prisma 6](https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-6)
[Announcing NestJS 11: What's New](https://trilon.io/blog/announcing-nestjs-11-whats-new)
## Issue link
Fixes # [CU-86b3zkvem](https://app.clickup.com/t/86b3zkvem)
## Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
- [x] Feature updates / changes
- [ ] Tests
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [x] This change requires a documentation update
# How Has This Been Tested?
<!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration -->
1. Docker Environment
- Verified successful build with new node:22-alpine base image by running the command: `node -v`
- Confirmed openssl installation and functionality
- Tested application deployment with new configuration
2. Dependency Updates
- Ran npm install to verify all dependencies install correctly, running `nest info`, `npx prisma --version`, and `npx prisma validate`
- Executed test suite to ensure no breaking changes
- Verified application builds successfully with updated Nestjs packages
3. Ideation Management
- Tested permission checks for different user roles
- Verified validation pipe functionality
- Confirmed error handling for unauthorized access
- Tested data validation for ideation updates
- Validated updated query structure performance
# Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream modules
合并状态:已合并 合并于 2025-04-23 关闭于 2025-04-23 3 条评论