Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to unlink Monobank user from the system #211

Open
letehaha opened this issue Aug 8, 2023 · 0 comments
Open

Allow to unlink Monobank user from the system #211

letehaha opened this issue Aug 8, 2023 · 0 comments
Labels
need more info Requires additional details priority-2-medium Medium priority repo: backend Related to back-end repo: frontend Related to front-end type::enhancement New feature or request

Comments

@letehaha
Copy link
Owner

letehaha commented Aug 8, 2023

We need to allow users to unlink the whole Monobank account from the system. While doing that, all the accounts should be kept and not removed, so that the history will remain and it will be possible to link integration back.

Backend additional implementation details:

  1. When unlinking, make all monobank accounts marked as system ones.
  2. Store to account's addditionalData original monobank external accountId.
  3. Keep old externalId so that in the future we can link them back.

Frontend additional details:

  1. When unlinking monobank user, ask what to do with old linked accounts – remove or keep them. It should be a list of preselected checkboxes for each account. Keep checkbox selected will mean keep and unselected remove.

Also, when linking the Monobank account back, we need to compare if there were accounts that were related to that user earlier and ask the user to sync them. Otherwise, all statistics might be broken. Also, if the user entered some transactions manually to the account while it was unselected, we need to compare them with the existing transactions in history. Better will be to compare by date + amount, but might be good to compare by only amount. Also since all the Monobank transactions should be synced in 100% (there's no theoretical possibility of not having transactions that the user entered manually in Monobank DB), we might even mark unlinked transactions somehow specifically after the account linking, and ask the user to carefully review them to link. It can be implemented with that issue or in a separate one.

@letehaha letehaha added type::enhancement New feature or request repo: frontend Related to front-end repo: backend Related to back-end need more info Requires additional details priority-2-medium Medium priority labels Aug 8, 2023
@letehaha letehaha added this to the Required for the launch milestone Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Requires additional details priority-2-medium Medium priority repo: backend Related to back-end repo: frontend Related to front-end type::enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant