Skip to content

Conversation

@anhanh11001
Copy link
Contributor

@anhanh11001 anhanh11001 commented Jul 13, 2019

Fixes: #2114

Screenshots for the change:
ezgif-2-7c3e3618736e

@auto-label auto-label bot added the feature label Jul 13, 2019
|}]""".trimMargin().replace("'", "\"")

compositeDisposable += eventService.getEventsOfUser(authService.getId(), query)
.withDefaultSchedulers()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not your job. This is server's job

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought frontend also did the same. There is no endpoint to check whether an account is deletable or not, so we have to check whether there are active events attached to the account from client-side or not

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should I just proceed to delete and then when server return delete fail, I'll display the message that there are events attached so the account is not deletable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@anhanh11001 anhanh11001 requested a review from liveHarshit July 16, 2019 15:56
@anhanh11001 anhanh11001 deleted the 2114_delete_account branch July 18, 2019 03:30
@anhanh11001 anhanh11001 restored the 2114_delete_account branch July 19, 2019 17:33
@anhanh11001 anhanh11001 reopened this Jul 19, 2019
@anhanh11001
Copy link
Contributor Author

Reopening as mistakenly closed

@anhanh11001 anhanh11001 requested a review from liveHarshit July 19, 2019 17:35
@iamareebjamal iamareebjamal merged commit 708e510 into fossasia:development Jul 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add delete account feature

4 participants