-
Notifications
You must be signed in to change notification settings - Fork 80
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
Feat: GET /users/{user_id} api endpoints and tests #99
Feat: GET /users/{user_id} api endpoints and tests #99
Conversation
9f080b7
to
cf988ff
Compare
app/api/dao/personal_background.py
Outdated
""" | ||
|
||
user_id = int(AUTH_COOKIE["user_id"].value) | ||
if user_id == 0: |
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.
if not user_id
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.
done. It's now the EAFP try catch 😉
app/api/dao/personal_background.py
Outdated
""" | ||
|
||
user_id = int(AUTH_COOKIE["user_id"].value) | ||
if user_id == 0: |
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.
if not user_id
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.
done. changed to EAFP
cf988ff
to
4aaae56
Compare
4aaae56
to
ae2ff39
Compare
Fix typo on UserListPersonalDetails class name Refactor request url to /users Fix MS request url to GET/users/verified Simplify get request function
Fix import error Add tests cases Refactor setting user_id to EAFP try catch instead of if user_id == 0
ae2ff39
to
454c8aa
Compare
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.
The changes made in this PR were tested locally. Following are the results:
-
Code review - Done
-
All possible responses were tested as below:
-
OS Version: Windows 10
@ramitsawhney27 . Can you please re-approve and merge this PR? Thanks |
Description
Allow user to get other membre's personal details
Fixes #98
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Checklist:
Code/Quality Assurance Only