-
Notifications
You must be signed in to change notification settings - Fork 3
Remove schedule generation on user creation #540
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,8 +165,6 @@ public FcmUserDto saveUserInProject(FcmUserDto userDto) { | |
| // maintain a bi-directional relationship | ||
| newUser.getUsermetrics().setUser(newUser); | ||
| User savedUser = this.userRepository.saveAndFlush(newUser); | ||
| // Generate schedule for user | ||
| this.scheduleService.generateScheduleForUser(savedUser); | ||
| return userConverter.entityToDto(savedUser); | ||
| } | ||
|
|
||
|
|
@@ -195,14 +193,6 @@ public FcmUserDto updateUser(FcmUserDto userDto) { | |
| // maintain a bi-directional relationship | ||
| user.getUsermetrics().setUser(user); | ||
| User savedUser = this.userRepository.saveAndFlush(user); | ||
| // Generate schedule for user | ||
| if (!user.getAttributes().equals(userDto.getAttributes()) | ||
| || !user.getTimezone().equals(userDto.getTimezone()) | ||
| || !user.getEnrolmentDate().equals(userDto.getEnrolmentDate()) | ||
| || !user.getLanguage().equals(userDto.getLanguage())) | ||
| { | ||
|
Comment on lines
-199
to
-203
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I'm not wrong, the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes the user will be calling the update endpoint from the app anyway so they can just call the schedule endpoint afterwards. We can make the updates afterwards in a separate PR since we have not enabled the app server scheduling yet for users.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh okay, Thanks. |
||
| this.scheduleService.generateScheduleForUser(savedUser); | ||
| } | ||
| return userConverter.entityToDto(savedUser); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any use of the
schedulerServicevariable, this can be removed.