Mentorship-android: Add Delete Account feature

Created on 18 Nov 2018  路  12Comments  路  Source: anitab-org/mentorship-android

Description

As a user,
I need an option to delete my account,
so that I can Delete My Account from this Android application.

In this Android application, there is not an option to delete the user account.
I would like to introduce delete account feature in this Android application.

If this feature has been added to the backend, then I would like to work on this issue.
And additionally, I would also like to move Logout feature in Settings screen because it might be more relevant there with "Delete my Account" feature

Mocks

latest mockup

Acceptance Criteria

Update [Required]

  • [ ] Use DELETE /user API to delete the user
  • [ ] Show a Confirmation dialog so that the user is certain of this action
  • [ ] Logout after this action takes place (make sure that the token is cleared)

Definition of Done

  • [ ] All of the required items are complete
  • [ ] Approval by 1 mentor

Estimation

1 hour

Coding First Timers Only Available Enhancement

All 12 comments

@mohak1283 Thank you for reporting this :) I mentioned this issue on Slack because this feature is already done on Backend, so it can be integrated on Android.

The issue description is unclear. Before working on this you should fix this. You can follow this template If you have an idea of how to implement this, it would be better to explain how you would do that and show a screen mock-up, to show where you would put that option ...

Updated the issue @isabelcosta :+1: Have a look

@mohak1283 you didn't completely follow the template, so I edited the description. Can you fill in the blanks?

Also, I have a suggestion what if you do Settings screen #75 instead of this issue? Because this is dependant on the settings screen and we like to keep PRs focused on one small issue. If you do the other issue we can leave this for first-timers-only, what do you think?

I have updated the issue description and mockup :+1: @isabelcosta
And Regarding assigning this issue to first timer, It would be great.
I will work on some another issue. Let *first-timers * work on this

@mohak1283 check my comment on #75 you can work there if you want.

Is this issue available? I am interested to take up this issue!!

Yes this issue is available @Shubham1304
You can work on it :+1: Good luck :+1:

Hey! @mohak1283 As I read the delete account feature has been implemented in backend. Can you please help me to give me a lead on that as I was having some difficulty in that... Thanks in advance

Hey @Shubham1304 what difficulty are you facing?

I read the code in SettingsActivity and then read SignUpActivity to understand the api calls being made to register a user. From there I went to SignUpViewModel then to authDataManager then to authService and found out that to register a user apiManager.authService.register(register) is being returned. Now I am stuck here as I don't know what call to make to clear the data and flags associated with the user who has opted for delete account option. Please help.

Hey @Shubham1304 I think you need to just make the delete api call and just send the intent to SignUpActivity because all the user data is deleted from backend when you call that api. And none of the user data is saved inside the app, so you don't need to clear the data from your side. It will be automatically deleted from backend.

Resolved with #401

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iofall picture iofall  路  7Comments

mohak1283 picture mohak1283  路  9Comments

Priyansh-Kedia picture Priyansh-Kedia  路  6Comments

annabauza picture annabauza  路  8Comments

jddeep picture jddeep  路  6Comments