Project

General

Profile

Actions

Defect #71

closed

Timelog entries remain after deleting an issue

Added by Balazs Dan over 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

Hi,

Deleting an issue does not delete related timelog entries. Thus you can see timelogs but dont know what was the issue!
Maybe it is a feature, because in real life spent time wont disappear after somebody deletes an issue, but in this case
issues shouldnt be removed permanently. But I think if somebody wants to delete an issue then he would like to delete
timelogs also.

BR,
Balazs


Files

timelogentries.JPG (27 KB) timelogentries.JPG Balazs Dan, 2008-02-03 10:50
CantEditTimelogEntry.JPG (30.2 KB) CantEditTimelogEntry.JPG Balazs Dan, 2008-02-03 10:50

Related issues

Has duplicate Redmine - Defect #734: time log of the removed issue remains in the projectClosed2008-02-25

Actions
Actions #1

Updated by Jean-Philippe Lang over 17 years ago

As you said, it's not a bug. Even if you remove an issue, you
can not "un-spend" the time you have already spent
on it.
If you don't want to lose the information, just don't remove
the issue, close it.

Actions #2

Updated by Balazs Dan over 17 years ago

Hi,

I understand your point and you are right. We cant undo the
spent time.
But if you remove an issue, then the timelog entries remain
and becuase of this you cant check what was the issue. And
this is confusing.

I can imagine 2 possible solutions:
1, When you delete an issue then the system will ask
you "Would you like to delete time entries also?"
2, When you delete an issue then it wont be deleted. The
system will flag its deleted state in a field. Normally
deleted issues wont be displayed in any report. Only in
time reports. (just because time entries remain...)

Please consider! If somebody deletes an issue then he does
it for a reason. And normally only managers can delete
issues.

One more thing:
If you delete an issue and you query timelogs for the
project then you can see every timelog. And you can edit
every entry. See attached timelogentries.jpg!
But when you try to edit it then the system will
say "<<issue>> is invalid". See
CantEditTimelogEntry.jpg!

Actions #3

Updated by Jean-Philippe Lang over 17 years ago

I fixed the last point you mentioned in rev 581 (:dependent =>
:nullify was missing on issue/time_entries association).

If you want the time entries to be removed with the issue, you
can replace :nullify by :delete_all in app/models/issue.rb on
line 30.

I'll try to implement solution 1, or maybe add an option
at application level to specify if time entries are removed with
issues.

Actions #4

Updated by Balazs Dan over 17 years ago

Great! Thanx.
I will do as you suggested. And I'm looking forward to your
implementation.. :)

Actions #5

Updated by Derek Montgomery almost 17 years ago

A status Deleted only available for requests and searches maybe?

Actions #6

Updated by Jean-Philippe Lang over 16 years ago

  • Status changed from New to Closed

Applied in changeset r1182.

Actions

Also available in: Atom PDF