-
Notifications
You must be signed in to change notification settings - Fork 17
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
N21-1887 Rollback user from a user login migration #4978
Conversation
...rver/src/modules/user-login-migration/controller/user-login-migration-rollback.controller.ts
Outdated
Show resolved
Hide resolved
...rver/src/modules/user-login-migration/controller/user-login-migration-rollback.controller.ts
Show resolved
Hide resolved
...erver/src/modules/user-login-migration/service/user-login-migration-rollback.service.spec.ts
Show resolved
Hide resolved
throw new UserLoginMigrationNotFoundLoggableException(user.schoolId); | ||
} | ||
|
||
if (!user.lastLoginSystemChange) { |
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.
Maybe we should create a function at the user object which wraps the prop.
Something like isUserMigrated().. to have more "logic" at the domain object
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 agree, but the UserDO is not one of the new DOs and would have to be refactored in order to work with functions. This should be a separate refactoring, since it can break in a lot of places.
apps/server/src/modules/user-login-migration/uc/user-login-migration-rollback.uc.spec.ts
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
Description
Links to Tickets or other pull requests
Changes
Datasecurity
Deployment
New Repos, NPM pakages or vendor scripts
Approval for review
generate-client:server
was executed in vue frontend and changes were tested and put in a PR with the same branch name.