Skip to content

Conversation

@jmgasper
Copy link
Contributor

@jmgasper jmgasper commented Nov 2, 2025

No description provided.

@jmgasper jmgasper merged commit 394113c into develop Nov 2, 2025
4 checks passed
// add user to initial groups
await this.addUserToDefaultGroups(prisma, nextUserId);
if (
userParams.profile?.provider?.toLowerCase() === WIPRO_SSO_PROVIDER
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
The check for userParams.profile?.provider?.toLowerCase() === WIPRO_SSO_PROVIDER assumes that userParams.profile.provider is always a string. Consider adding a type check to ensure it is a string before calling toLowerCase() to prevent potential runtime errors.

}

private async addUserToGroupByDescription(
prisma: any,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
The addUserToGroupByDescription method uses prisma.security_groups.findFirst to find a group by description. Ensure that the description field is indexed in the database to optimize this query, especially if the number of groups is large.

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.

2 participants