anitab-org / anitab-org/mentorship-backend

Update the user with existing name and username.

未关闭
#596 42 条评论 0 个 reaction 已指派 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 摘要。