dhis2 / dhis2-android-dashboard

:no_entry: [DEPRECATED] Android application for DHIS2 which implements basic dashboard functionality.
BSD 3-Clause "New" or "Revised" License
17 stars 47 forks source link

Editing account information. #9

Open arazabishov opened 9 years ago

arazabishov commented 9 years ago

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

Dvik commented 8 years ago

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

nicolayr commented 8 years ago

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

krishnarb3 commented 8 years ago

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?

Dvik commented 8 years ago

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

arazabishov commented 8 years ago

@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 commented 8 years ago

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

krishnarb3 commented 8 years ago

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 commented 8 years ago

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

Rishabhmishra328 commented 8 years ago

Is this issue sorted ?

arazabishov commented 8 years ago

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

stale[bot] commented 5 years ago

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