Closed Bug 276473 Opened 20 years ago Closed 20 years ago

Show_activity merges incorrectly sometimes changesets into one changeset

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.18
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: goobix, Assigned: goobix)

References

Details

Attachments

(1 file, 2 obsolete files)

Show_activity merges incorrectly sometimes changesets into one changeset. Dave
said that we should display seconds as well in the activity log, which should
prevent incorrect merge of multiple changesets into one changeset, when they are
performed in the same minute.
Attached patch patch v1 (obsolete) — Splinter Review
Glob: ok, I know this is not a one-liner, but I had to change the time filter
too in order to allow it to display the additional seconds field fetched by
SQL.

We don't fill the $sec variable if we receive a MySQL timestamp because we
don't want to change the current behaviour. If seconds aren't specified, $sec
will be undef and the old code will go as well.
Assignee: myk → vladd
Status: NEW → ASSIGNED
Attachment #169909 - Flags: review?(bugzilla)
Comment on attachment 169909 [details] [diff] [review]
patch v1

sorry, the change to format_time causes 007util.t to fail
Attachment #169909 - Flags: review?(bugzilla) → review-
Attached patch patch v2 (obsolete) — Splinter Review
sorry, this should fix it.
Attachment #169909 - Attachment is obsolete: true
Attachment #169915 - Flags: review?(bugzilla)
*** Bug 238749 has been marked as a duplicate of this bug. ***
Comment on attachment 169915 [details] [diff] [review]
patch v2

r=glob
Attachment #169915 - Flags: review?(bugzilla) → review+
Flags: approval?
Flags: approval2.18?
wouldn't it make sense to make test 7 test it both ways, since you're supporting
both, instead of changing the test to only test the full syntax?
Attached patch v3Splinter Review
Attachment #169915 - Attachment is obsolete: true
Attachment #169965 - Flags: review?
v3: compared to v2, this adds testing both ways by introducing an additional
test per comment #6.
Target Milestone: --- → Bugzilla 2.18
Version: 2.19.1 → 2.18
Flags: approval?
Flags: approval2.18?
Byron, you're still around? v3 still needs review. :)
Comment on attachment 169965 [details] [diff] [review]
v3

r=glob
Attachment #169965 - Flags: review? → review+
Flags: blocking2.20?
Flags: blocking2.18.1?
Flags: approval?
Flags: approval2.18?
Whiteboard: patch awaiting approval
Flags: blocking2.18?
Flags: blocking2.20?
Flags: blocking2.20+
Flags: blocking2.18?
Flags: blocking2.18.1?
Flags: blocking2.18+
Flags: approval?
Flags: approval2.18?
Flags: approval2.18+
Flags: approval+
Whiteboard: patch awaiting approval → patch awaiting checkin
2.18:
Checking in CGI.pl;
/cvsroot/mozilla/webtools/bugzilla/CGI.pl,v  <--  CGI.pl
new revision: 1.211.2.8; previous revision: 1.211.2.7
done
Checking in Bugzilla/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Util.pm,v  <--  Util.pm
new revision: 1.12.2.2; previous revision: 1.12.2.1
done
Checking in t/007util.t;
/cvsroot/mozilla/webtools/bugzilla/t/007util.t,v  <--  007util.t
new revision: 1.4.2.1; previous revision: 1.4
done

Tip:
Checking in CGI.pl;
/cvsroot/mozilla/webtools/bugzilla/CGI.pl,v  <--  CGI.pl
new revision: 1.222; previous revision: 1.221
done
Checking in Bugzilla/Util.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Util.pm,v  <--  Util.pm
new revision: 1.14; previous revision: 1.13
done
Checking in t/007util.t;
/cvsroot/mozilla/webtools/bugzilla/t/007util.t,v  <--  007util.t
new revision: 1.5; previous revision: 1.4
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: patch awaiting checkin
*** Bug 309164 has been marked as a duplicate of this bug. ***
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: