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

Huge data loss when creating a new account with the same name #1988

Closed
aardbol opened this issue Dec 21, 2024 · 10 comments
Closed

Huge data loss when creating a new account with the same name #1988

aardbol opened this issue Dec 21, 2024 · 10 comments
Labels

Comments

@aardbol
Copy link

aardbol commented Dec 21, 2024

Describe the bug
This is as critical as my previous issue #1827. When creating a new account with the same name as another one, the previous one disappears from the favorite account list and eventually from the list of accounts after a restart. I can't seem to get that account back and all records seem to have been lost.

To Reproduce
Steps to reproduce the behavior:

  • have a (check) account called xyz
  • go to entities > accounts
  • create a new term account called xyz and mark it as favorite
  • see original xyz disappearing fro the favorite list and new xyz appearing
  • go to entities > accounts and edit original xyz; it doesn't work
  • restart app (remove also from android history), and see the original xyz also being removed from the accounts list

Expected behavior
both accounts exist with the same name because the account type is different, or prevent a new account with the same name from being created by showing an error

Screenshots
If applicable, add screenshots to help explain your problem.

Device Information:

  • OS: Android 15
  • Storage: Phone + Resilio Sync
  • App Version: 2024.12.10 (1052)
@aardbol aardbol added the bug label Dec 21, 2024
@aardbol
Copy link
Author

aardbol commented Dec 21, 2024

I also changed the new account to the checking type of the original one, but it didn't bring back all the records

@guanlisheng
Copy link
Contributor

Hi, @aardbol this is indeed a bug when handling the constraint conflict (here is the account name).

for this particular case, we can restore the previous account if you can share your database.

@aardbol
Copy link
Author

aardbol commented Dec 21, 2024

While I appreciate the assistance, sharing the db is not an option. I assume I just have to make the modification via a db application that supports sqllite?

@guanlisheng
Copy link
Contributor

Exactly. find the account ID from the transaction list and re-create it via any sqlite cli.

@guanlisheng
Copy link
Contributor

v2024.12.22 (1054) will fix this, you can try it out via https://play.google.com/apps/testing/com.money.manager.ex.android

@aardbol
Copy link
Author

aardbol commented Dec 23, 2024

Sounds great. When will the release apk be on github? That's my way of installation

@wolfsolver
Copy link
Contributor

@aardbol
Copy link
Author

aardbol commented Dec 23, 2024

There's no apk

@wolfsolver
Copy link
Contributor

Ops @guanlisheng can you update?

@guanlisheng
Copy link
Contributor

done. i thought guys can install it from google play

v2024.12.22 (1054) will fix this, you can try it out via https://play.google.com/apps/testing/com.money.manager.ex.android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants