julien-nc / cospend-nc

💰 💲hared budget manager Nextcloud app
GNU Affero General Public License v3.0
238 stars 29 forks source link

Logical deletion #34

Open nicoe opened 3 years ago

nicoe commented 3 years ago

Hello,

Today when using MoneyBuster my fingers did something completely stupid and deleted one line by swapping left. So I am wondering if it wouldn't be a good idea to implement logical deletion with some sort of vacuuming in a cron task if necessary.

Current cospend version: 1.2.8

julien-nc commented 3 years ago

Hi, sorry for the late answer and thanks for the remark.

Problem with logical deletion is that things can change between the moment you delete a bill and the moment you restore it. What if the bill category does not exist anymore? What if a member is gone?

Nothing extremely hard to handle but still some more complexity to keep in mind.

I don't have time to implement that right now but that's something interesting. PRs are welcome :grin:.