Skip to content

Add wipro users to "Wipro - All" group#17

Merged
jmgasper merged 2 commits into
masterfrom
develop
Nov 2, 2025
Merged

Add wipro users to "Wipro - All" group#17
jmgasper merged 2 commits into
masterfrom
develop

Conversation

@jmgasper
Copy link
Copy Markdown
Contributor

@jmgasper jmgasper commented Nov 2, 2025

No description provided.

@jmgasper jmgasper merged commit 773b909 into master 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
Copy Markdown

Choose a reason for hiding this comment

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

[💡 correctness]
Consider using localeCompare for case-insensitive comparison instead of toLowerCase(), as it may handle locale-specific cases more accurately.

groupName: string,
) {
try {
const groupRecord = await prisma.security_groups.findFirst({
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[⚠️ maintainability]
The prisma parameter is typed as any. Consider specifying a more precise type to leverage TypeScript's type checking and improve maintainability.

userId,
Number(groupRecord.group_id),
);
} catch (error) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[⚠️ design]
Consider handling the error more explicitly, such as rethrowing it or returning a specific error response, to ensure that the caller is aware of the failure.

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