[go: up one dir, main page]

Sync error combining "disable bill deletion" setting from Cospend and deleting bill on Moneybuster

Hi, I am still new to Moneybuster and Cospend on my Nextcloud instance, but so far, it does fulfill all of my needs. I must say I am really pleased having found Moneybuster, and feel really grateful for the time I know (as an android developer myself) it is taking you to develop and maintain this app.

I am running:

  1. Android version: Android 11
  2. Device: Nokia 8.1
  3. System language: English
  4. App version: v0.1.15
  5. App source: F-droid
  6. on sync with a project on Nextcloud v22.2.3 and Cospend V1.4.3

Context:

My wife told me she accidentally deleted some bills on Moneybuster, and had found no way to get them back. I looked into it, and discovered that a simple swipe left on a bill deletes it, with a timed snackbar allowing you to undo the move. (Thankfully this action is not on the right swipe, which is often even more easily accidentally triggered when opening the left menu-drawer...)

Exploring the Nextcloud Cospend app, I found a way to disable bill deletion, which removes the trash button on each bill there. disable_deletion_cospend

Steps to reproduce:

  1. enable "disable bill deletion" setting in Cospend project
  2. delete a bill in Moneybuster project => bill is deleted in Moneybuster
  3. (optional, if auto sync is not activated) sync project on Moneybuster

Result:

The project sync fails with a 404 Not Found error. This error is actually a Forbidden error, as the attached displayed message in the popup informs you then. You have to remove the project from Moneybuster, and then add it again. Afterwards it's back with the bill you tried to delete.

Expected result:

I feel like the most user-friendly mechanism here would be for Moneybuster to somehow "know" that bill deletion is not allowed in the project, and prevent it somehow. Ideally removing the swipe-left-to-delete interaction, at least displaying immediately an error. In any case, the bill should not be deleted, and the user should be informed if an attempt has been made to delete it (optional if the attempt is impossible in the first place)

FWIW:

I don't think implementing a recycle bin mechanism is easily doable, especially since I don't see the equivalent in Cospend. I don't know if the "disable bill deletion" setting can be synched along with the project from Cospend to Moneybuster, but if it's not, maybe just allowing users to set it on each instance running Moneybuster would at least prevent accidental deletion, and the following sync error.!

Again, thank you very much for your time! Shiva