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

feature/BE/415/get-user-info #441

Merged
merged 7 commits into from
Nov 15, 2023

Conversation

tacettinburakeren
Copy link
Contributor

I created get user information endpoint.

@tacettinburakeren tacettinburakeren added type : development Updates and enhancements on the application status : new New issue in initial state effort : moderate This issue can take some time team: backend This issue will be handled by backend team labels Nov 10, 2023
@tacettinburakeren tacettinburakeren added this to the Milestone 2 milestone Nov 10, 2023
@tacettinburakeren tacettinburakeren self-assigned this Nov 10, 2023
@melihgezerr
Copy link
Contributor

your testa have failed, please check the pipeline @tacettinburakeren

@@ -179,4 +180,21 @@ export class UserService {
await this.userRepository.save(user);
return new ChangePasswordResponseDto(true);
}

public async getUserInfo(userId: string): Promise<GetUserInfoResponseDto> {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better if the user with all relations is fetched in one query since we will have additional relations. You can check this

Copy link
Contributor

@melihgezerr melihgezerr left a comment

Choose a reason for hiding this comment

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

It looks okay now

throw new NotFoundException('User not found');
}

const response = new GetUserInfoResponseDto();
Copy link
Contributor

Choose a reason for hiding this comment

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

Recently added user fields should be added also. These are not enough.

@omersafakbebek omersafakbebek merged commit c4203ac into development Nov 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort : moderate This issue can take some time status : new New issue in initial state team: backend This issue will be handled by backend team type : development Updates and enhancements on the application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants