-
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
Bug: Update user personal details is not working if the same username is used | CROSS PROJECT ISSUE #141
Comments
@rpattath , thank you for opening this 🎉. I had this at the back of my mind, just didn't get a chance to do it 😊. This is a cross-project issue as the MS requires user to also change their username if they want to update details. This issue also been raised on MS which I mentioned on the PR #74 for this endpoint. |
I've changed the title a bit to make it clear why it is not working. |
I am not sure but I guess this is the issue because of which some of the fields in the profile always shows up as empty even after updating them in mentorship-android app🤔 |
@HeroicHitesh , you can try to change the username. It'll be accepted even if there are empty non-required fields in them. Which means, the issue is because of the existing logic required username to be changed on any update, which is not a common logic, so we need to change it at MS backend. |
For fields still showing as empty even after updating on MS Android, have you tried to refresh the page? If it still didn't change after refreshing the page, then you probably should check if there's a bug report on this already made. If nonee, then you can open one. |
Hi, I would like to work on this one. |
@ashokrayal. This PR is tightly-coupled with issue 596 of MS backend. MS backend PR 855 to fix this issue is currently under review. Please keep an eye on that PR 855, since only once that PR is approved and merged to MS backend develop branch, we can make relevant modification onto BIT (BridgeInTech). So, please comeback to claim this issue once that PR is finalized. 😉 |
Ok. Thanks, @mtreacy002 |
Describe the bug
Edit the personal information of the logged in user is not working.
To Reproduce
Steps to reproduce the behavior:
INFO:werkzeug:127.0.0.1 - - [18/Sep/2020 11:07:36] "OPTIONS /user/personal_details HTTP/1.1" 200 -
CRITICAL:root:{'message': 'A user with that username already exists.'}
127.0.0.1 - - [18/Sep/2020 11:07:36] "PUT /user/personal_details HTTP/1.1" 400 -
INFO:werkzeug:127.0.0.1 - - [18/Sep/2020 11:07:36] "PUT /user/personal_details HTTP/1.1" 400 -
Expected behavior
Personal detail update should be successful
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: