mtierltd / timetracker

GNU Affero General Public License v3.0
83 stars 29 forks source link

Deleted project should not delete time entries #81

Open rhiaro opened 3 years ago

rhiaro commented 3 years ago

I deleted a project, and it deleted all of the time entries logged against that project.

Expected behaviour: The logged time entries go to having no project associated with them.

I can see the use case for wanting a project to delete all time entries though. I'd be happy with a warning that it will do so, so I can go back and change the project on all of those time entries before deleting.

puthre commented 3 years ago

Just a reminder that you can also archive projects.

rhiaro commented 3 years ago

Thanks. Would that also archive the time entries? Problem I had was I wanted to change the project some entries were logged against, but deleted the project before changing them on the entries.

puthre commented 3 years ago

No, it only hides the project from the lists.

Eothred commented 3 years ago

I second this, I am testing Time Tracker now and I also expected it to just remove the project association, not delete the entries all together.

A first part of the solution here could be a warning message to alert the user who wants to delete a project that this will result in all entries also being deleted, and maybe ask if the user rather intends to archive the project.