Open Jack-Works opened 2 weeks ago
Thank you @Jack-Works for raising Issue #3289! 🚀 What's next? Read our Contribution Guidelines 📚.
Tagging @ILIYANGERMANOV for review & approval 👀
Removing accounts also removes all of their transactions. For this one we should implement "archive" account functionality. I.e., hide the account from the UI but don't delete it
A quick inspection on the db shows that the transaction does not get deleted, but they are kind of hidden as there is no account reference to fetch them.
@suyash01 that was because of the cloud sync that we supported back in the days. We first mark an entry as deleted and then when synced with the cloud - permanently deleted. However, we've shutdown the Cloud sync and never migrated that code.
Now it's a good time to get rid of:
isDeleted
isSynced
Domain:isRemoved
lastUpdated
and directly execute DELETE cuz there's nothing to sync. We kept the room for cloud sync with server open cuz users wanted it but that's likely not happening. So let's simplify the code
Please confirm the following
Describe the bug
Cannot remove no longer used account.
To Reproduce
Initial state:
The bank account should be $80, but $100.
Expected behavior
I can remove (or hide) the credit card account.
Screenshots
No response
App version
2024.07.06 (181)
Smartphone
No response
Additional context
No response