Open arazabishov opened 9 years ago
i would like to work on this. which api should i use to edit user info?
@Dvik the current user info can be read and updated using /api/me/user-account
See the developer documentation and in particular the chapter about current user information for more details.
Can we modify the updateUserAccount() function in UserController.java file for doing this? And also should we add the call in DhisApi.java like the others that are already present in that file?
Should a different view be created for editing account info or an EditText be used in the same view?
@krishnarb3 You should create a new method in controller which will create a PUT request to /api/me/user-account/ through DhisApi class (retrofit interface) in order to update account details.
@Dvik Each row in profile screen's RecyclerView should contain corresponding View for getting user input. It can be EditText, CheckBox, RadioButtons, etc. It really depends on type of field: if it is first name or email, then it should be EditText, if it is gender then it should be a radio button or dropdown.
We send gender as "gender_male" in the request and display it as "Male". Is there a specific reason or can we send as "Male" in the request.
I have added Editing Account Information , please report if there are errors / fixes to be made or changed
Is this issue sorted ?
@Rishabhmishra328 Hi, we already have a student working on it.
Hi! Due to a lack of activity on this issue over time (7.776*10^9 ms and counting, to be precise) it seems to be stale. If there is no further progress on it, it will be closed automatically.
If this is still relevant, maybe there is something you can do to move it forward? For example provide further information in a comment, or supply a PR? Any activity on this issue will keep it open. Thanks! 🤖
Now application allows only to view account details (read only). But we also want dashboard application to enable user to update account details.