Bug 137602 - Creating bugs does not update delta_ts properly
Creating bugs does not update delta_ts properly
Status: CLOSED RAWHIDE
Product: Bugzilla
Classification: Community
Component: Bugzilla General (Show other bugs)
2.18
All Linux
medium Severity medium (vote)
: ---
: ---
Assigned To: David Lawrence
David Lawrence
:
Depends On:
Blocks: BZ_218_Beta3
  Show dependency treegraph
 
Reported: 2004-10-29 15:00 EDT by Chip Turner
Modified: 2007-04-18 13:14 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-11-04 14:31:44 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Chip Turner 2004-10-29 15:00:41 EDT
If I take an existing bug X and change it to block bug Y, bug Y's
delta_ts gets updated.  But if I create a new bug C, and -while
filling the bug out-, mark it as blocking bug Y, then bug Y's delta_ts
isn't updated.
Comment 1 David Lawrence 2004-10-29 15:16:29 EDT
Personal Note: 
Here is the code in process_bug.cgi that updates the delta_ts when a dependency
is changed. Particularly the SQL that does the update. Something of this nature
needs to be in the dependency insertion portion of post_bug.cgi to mimic this
behaviour.

sub LogDependencyActivity {
    my ($i, $oldstr, $target, $me) = (@_);
    my $newstr = SnapShotDeps($i, $target, $me);
    if ($oldstr ne $newstr) {
        # Figure out what's really different...
        my ($removed, $added) = DiffStrings($oldstr, $newstr);
        LogActivityEntry($i,$target,$removed,$added,$whoid,$timestamp);
        # update timestamp on target bug so midairs will be triggered
        SendSQL("UPDATE bugs SET delta_ts=NOW() WHERE bug_id=$i");
        $bug_changed = 1;
        return 1;
    }
    return 0;
}
Comment 2 David Lawrence 2004-11-04 13:18:03 EST
Would like to fix for beta3.
Comment 3 David Lawrence 2004-11-04 14:31:44 EST
Fixed in cvs. Will be in beta3

Note You need to log in before you can comment on or make changes to this bug.