anitab-org / anitab-org/mentorship-backend

Updating an user with empty username and name should give an error message

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

説明

When updating an user with empty username and name should give an error message.

**To Reproduce**

Steps to reproduce the behavior:

1. Go to 'User-update user profile'.
2. Provide authorization access token.
3. {
"name": "",
"username": "",
"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 (75)](https://user-images.githubusercontent.com/50888936/82158643-c5475180-98a6-11ea-9210-15c2efd79dfb.png)
7. current user's detail after update in" Return details of current user".
![Screenshot (76)](https://user-images.githubusercontent.com/50888936/82158894-61be2380-98a8-11ea-8aef-cd5893de7aa8.png)

**Expected behavior**
If the username and name are not expected to be updated to empty string and error should be shown.

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

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

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

評価

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

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

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