ijazakram / MaaColony

MaaColony
1 stars 0 forks source link

User Profile: Unable to edit user profile after Google integration implemented #79

Open FayazMaacolony opened 4 years ago

FayazMaacolony commented 4 years ago

User Profile: Unable to edit user profile after Google integration implemented. When i edit any field with valid data and Save. Then I am able to view details immediately. But when I close the mobile app and reopen the Mobile app with same user, I am unable to view the changes

Rajeswari06 commented 4 years ago

Request: { "GCHouseMemberID": 24, "FirstName": "Fayazzz", "LastName": "Shaik", "MiddleName": "Basha", "Email": "MaaColony.Fayaz@gmail.com", "CountryCodeID" : 91, "PhoneNumber" : "4445557778" }

Response:

{ "RecordCount": 0, "Exception": null, "ID": 0, "Errors": [ { "ID": "Email", "Message": "Email already registered!!" } ] }

RamanaKiran commented 4 years ago

Hi,

Please add GCUserID to the request that you get using Get method as below -

{ "GCHouseMemberID": 24, "GCUserID": , "FirstName": "Fayazzz", "LastName": "Shaik", "MiddleName": "Basha", "Email": "MaaColony.Fayaz@gmail.com", "CountryCodeID" : 91, "PhoneNumber" : "4445557778" }

RamanaKiran commented 4 years ago

Also, in case if there are any validation errors returned by API, those need to displayed in user understandable format

Rajeswari06 commented 4 years ago

if validations fails then return error code for that instead of success

Rajeswari06 commented 4 years ago

Tried the same thing, please see the below exception,

{ "RecordCount": 0, "Exception": "An error occurred while updating the entries. See the inner exception for details.", "ID": 0, "Errors": [] }

Rajeswari06 commented 4 years ago

APi request

{ "GCHouseMemberID": 24, "GCUserID": 20, "FirstName": "Fayazzz", "LastName": "Shaik", "MiddleName": "Basha", "Email": "MaaColony.Fayaz@gmail.com", "CountryCodeID" : 91, "PhoneNumber" : "4445557778" }

FayazMaacolony commented 4 years ago

Still i am able to reproduce. After editing the user profile then I click on back arrow then I did come out of the Mobile App. Then Again I am I open Mobile App, I didnt see the changes I made before hence ropened