Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor endEvent method for improved performance and readability #110

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

13jksingh
Copy link
Collaborator

Solves: #109

Copy link
Collaborator

@harasees-singh harasees-singh left a comment

Choose a reason for hiding this comment

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

how does this improve the performance for endEvent api ?

}

private void updateEventRoles(List<String> emails, EventRole eventRole, Event event, EndEventDetails endEventDetails) {
List<User> users = userRepository.findByEmailIn(emails);
Copy link
Collaborator

Choose a reason for hiding this comment

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

can it handle the case when an email fails to map to a user. emails can contain empty values and non-pec ids

Copy link
Collaborator

@harasees-singh harasees-singh left a comment

Choose a reason for hiding this comment

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

lgtm, will need to test for pref improvements in prod though

@harasees-singh harasees-singh merged commit 269d1d2 into main Dec 11, 2023
1 check 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.

2 participants