anitab-org / anitab-org/mentorship-backend

Update the user with existing name and username.

オープン
#596 コメント 42 件 リアクション 0 件 担当者 1 名 @hirshrm が担当を希望しています GitHub で見る
Category: Coding Status: Available
主要言語
Python
スター
200
フォーク
449
PR マージ指標
30日以内にマージされた PR はありません

説明

When you are updating the user with existing name and username, you are getting an error message "A user with that username already exists."
**To Reproduce**

Steps to reproduce the behavior:

Current username: zxcvbnm
Updating username to: zxcvbnm,
Current name: zxcvbnm
Updating name to: zxcvbnm,

1. Go to 'User-update user profile'.
2. Provide the access token.
3. .{
"name": "zxcvbnm",
"username": "zxcvbnm",
"bio": "string",
"location": "string",
"occupation": "string",
"organization": "string",
"slack_username": "string",
"social_media_links": "string",
"skills": "string",
"interests": "string",
"resume_url": "string",
"photo_url": "string",
"need_mentoring": true,
"available_to_mentor": true
}
4. Click on 'Execute'.
5. Scroll down to 'Responses'.
6.
![Screenshot (70)](https://user-images.githubusercontent.com/50888936/82154715-45f95400-988d-11ea-8ad7-0af4f324e8d7.png)

**Expected behavior**
It should either be successfully updated message or a message like "no fields have been updated". Also the error message being shown now is not listed under responses.

**Desktop (please complete the following information):**
- OS: Windows 10
- Browser chrome

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。