Conversation
feat: created identity schema external cient
… proxy url for caching
PM-3576 - use auth0 proxy for token caching
| @@ -0,0 +1 @@ | |||
| export * from "./index" No newline at end of file | |||
There was a problem hiding this comment.
[💡 style]
Consider adding a newline at the end of the file to adhere to POSIX standards. This can help prevent issues with some tools and version control systems that expect a newline at the end of files.
| /* !!! This is code generated by Prisma. Do not edit directly. !!! | ||
| /* eslint-disable */ | ||
| // biome-ignore-all lint: generated file | ||
| module.exports = { ...require('#main-entry-point') } No newline at end of file |
There was a problem hiding this comment.
[❗❗ correctness]
Using require with a dynamic path like '#main-entry-point' can lead to issues if the module resolution fails or if the path is incorrect. Consider verifying that this path is correct and that the module exists to prevent runtime errors.
| @@ -0,0 +1 @@ | |||
| export * from "./default" No newline at end of file | |||
There was a problem hiding this comment.
[💡 style]
Consider adding a newline at the end of the file. While this is a minor style issue, it can prevent potential issues with certain tools or version control systems that expect a newline at the end of files.
| engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7" | ||
| } | ||
|
|
||
| Prisma.PrismaClientKnownRequestError = () => { |
There was a problem hiding this comment.
[maintainability]
The error message construction in PrismaClientKnownRequestError and similar functions is repeated multiple times. Consider refactoring this into a helper function to improve maintainability and reduce duplication.
| exports.Prisma.Security_userScalarFieldEnum = { | ||
| login_id: 'login_id', | ||
| user_id: 'user_id', | ||
| password: 'password', |
There was a problem hiding this comment.
[❗❗ security]
Storing passwords in plain text within the Security_userScalarFieldEnum is a security risk. Ensure that passwords are hashed and not stored in plain text to enhance security.
| timezone_id: 'timezone_id', | ||
| last_site_hit_date: 'last_site_hit_date', | ||
| name_in_another_language: 'name_in_another_language', | ||
| password: 'password', |
There was a problem hiding this comment.
[❗❗ security]
Storing passwords in plain text within the UserScalarFieldEnum is a security risk. Ensure that passwords are hashed and not stored in plain text to enhance security.
There was a problem hiding this comment.
Pull request overview
This is a production release pull request titled "[PROD RELEASE] - Jan 26" that includes a mix of code formatting improvements, functionality enhancements, and major database client refactoring. The changes also include generated Prisma client files with developer-specific configurations.
Changes:
- Code formatting standardization (semicolons, quotes, line breaks across multiple files)
- Removal of M2M token caching logic from MemberApiService
- Enhancement of APP_DOMAIN configuration to check configService before environment variables
- Major refactoring of user group management to use a new group-specific Prisma client
- Addition of new Prisma client generator for external client output
Reviewed changes
Copilot reviewed 33 out of 53 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| src/shared/util/pagination.util.ts | Added semicolons for consistency |
| src/shared/util/common.utils.ts | Enhanced getAppDomain to check configService first |
| src/shared/member-api/member-api.service.ts | Removed token caching mechanism |
| src/api/user/user.service.ts | Refactored to use separate group Prisma client and updated group membership creation |
| src/api/user/user.service.spec.ts | Added mock for new group Prisma client |
| prisma/schema.prisma | Added externalClient generator configuration |
| packages/identity-prisma-client/* | Generated Prisma client files with local development paths |
| Multiple controller/service files | Code formatting improvements (quotes, spacing, line breaks) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "value": "prisma-client-js" | ||
| }, | ||
| "output": { | ||
| "value": "/Users/hentrymartin/development/identity-api-v6/packages/identity-prisma-client", |
There was a problem hiding this comment.
Developer-specific local path detected. The generated Prisma client contains a hardcoded path '/Users/hentrymartin/development/identity-api-v6/packages/identity-prisma-client' that is specific to the developer's machine. This will cause runtime errors in other environments. The Prisma client must be regenerated before deployment.
| "value": "/Users/hentrymartin/development/identity-api-v6/packages/identity-prisma-client", | |
| "value": __dirname, |
| makeStrictEnum, | ||
| Public, | ||
| getRuntime, | ||
| skip |
There was a problem hiding this comment.
Unused variable skip.
| skip |
| empty, | ||
| join, | ||
| raw, | ||
| skip, |
There was a problem hiding this comment.
Unused variable skip.
| skip, |
| raw, | ||
| skip, | ||
| Decimal, | ||
| Debug, |
There was a problem hiding this comment.
Unused variable Debug.
| Debug, |
| objectEnumValues, | ||
| makeStrictEnum, | ||
| Extensions, | ||
| warnOnce, |
There was a problem hiding this comment.
Unused variable warnOnce.
| warnOnce, |
| empty, | ||
| join, | ||
| raw, | ||
| skip, |
There was a problem hiding this comment.
Unused variable skip.
| skip, |
| objectEnumValues, | ||
| makeStrictEnum, | ||
| Extensions, | ||
| warnOnce, |
There was a problem hiding this comment.
Unused variable warnOnce.
| warnOnce, |
| warnOnce, | ||
| defineDmmfProperty, | ||
| Public, | ||
| getRuntime, |
There was a problem hiding this comment.
Unused variable getRuntime.
| getRuntime, |
| defineDmmfProperty, | ||
| Public, | ||
| getRuntime, | ||
| createParam, |
There was a problem hiding this comment.
Unused variable createParam.
| createParam, |
| if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { | ||
| Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) |
There was a problem hiding this comment.
This use of variable 'undefined' always evaluates to false.
| if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) { | |
| Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) | |
| if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG) { | |
| Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG) |
No description provided.