-
Notifications
You must be signed in to change notification settings - Fork 10
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
User Profile Backend Models #399
base: master
Are you sure you want to change the base?
Conversation
csm_web/scheduler/views/user.py
Outdated
if is_private is not None: | ||
user.is_private = is_private | ||
user.save() | ||
return Response(status=status.HTTP_201_CREATED) |
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.
Ideally, this shouldn't be a 201 CREATED
, since you haven't actually created anything. Likely a 200 OK
or a ``202 ACCEPTED` would likely fit better.
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.
yes sir
- refactored `userinfo` route to update user profile - created userprofile url to get a user's profile with an `user_id` - more correct logic!
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 diff is dominated by whitespace (EOL) changes; I'd recommend trying to resolve this before merging, as it'll make the actual diff a lot harder to view on GitHub.
Perhaps look at git documentation on line endings, or look at line ending configuration in your editor, and tweak configuration settings until modifications to files do not cause all line endings to be changed.
No description provided.