dhis2-android-dashboard icon indicating copy to clipboard operation
dhis2-android-dashboard copied to clipboard

Editing account information.

Open arazabishov opened this issue 10 years ago • 11 comments

Now application allows only to view account details (read only). But we also want dashboard application to enable user to update account details.

arazabishov avatar Jul 29 '15 06:07 arazabishov

i would like to work on this. which api should i use to edit user info?

Dvik avatar Mar 03 '16 14:03 Dvik

@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.

nicolayr avatar Mar 03 '16 16:03 nicolayr

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?

krishnarb3 avatar Mar 03 '16 17:03 krishnarb3

Should a different view be created for editing account info or an EditText be used in the same view?

Dvik avatar Mar 04 '16 12:03 Dvik

@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.

arazabishov avatar Mar 07 '16 16:03 arazabishov

@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.

arazabishov avatar Mar 07 '16 16:03 arazabishov

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.

krishnarb3 avatar Mar 09 '16 13:03 krishnarb3

I have added Editing Account Information , please report if there are errors / fixes to be made or changed

krishnarb3 avatar Mar 09 '16 22:03 krishnarb3

Is this issue sorted ?

Rishabhmishra328 avatar Mar 14 '16 23:03 Rishabhmishra328

@Rishabhmishra328 Hi, we already have a student working on it.

arazabishov avatar Mar 15 '16 15:03 arazabishov

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! 🤖

stale[bot] avatar Apr 04 '19 04:04 stale[bot]