Closed Bug 291209 Opened 20 years ago Closed 19 years ago

Allow Relative Date Searches by Hour

Categories

(Bugzilla :: Query/Bug List, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: Callek, Assigned: Callek)

References

Details

Attachments

(1 file, 3 obsolete files)

When running a query based on relative dates, searching based on relative hours
should also be possible.
Attached patch Described Patch, to cvs-tip (obsolete) — Splinter Review
I opted for beginning of hour, to stay consistant with other relative search's,
(even though what I really wanted was exactly foo-hours ago.

Is this enough for Bugzilla Stable? (as in if I was to get justdave to update
bmo with this, or do I need to checkout a branch)
Attachment #181340 - Flags: review?(bugreport)
Comment on attachment 181340 [details] [diff] [review]
Described Patch, to cvs-tip

sorry for tabs, I can provide a non-tabify patch later if you like.
Attached patch v2 to tip (obsolete) — Splinter Review
Noticed a mistake in the edited help file...and fixed tabs this time.
Attachment #181340 - Attachment is obsolete: true
Attachment #181344 - Flags: review?(bugreport)
Attachment #181340 - Flags: review?(bugreport)
I'm not sure if I prefer hours being relative to the beginning of an hour or
simply being 60 minutes.  I'd opt for 60 minutes which would mean...

Hour - relative to now
Day - relative to midnight
Week - 7 days
Month - relative to first of month
Year - relative to first of year


Attached patch v3 (obsolete) — Splinter Review
As descussed on IRC, \dh will now be equal to $1*60 minutes;  though if the
number is 0, will match current behavior.
Attachment #181344 - Attachment is obsolete: true
Attachment #181502 - Flags: review?(bugreport)
Attachment #181344 - Flags: review?(bugreport)
Comment on attachment 181502 [details] [diff] [review]
v3

+	     # Special case 0h for 'beginning of this hour'
+	     if ($amount == 0;) {

oops... wont compile
Attachment #181502 - Flags: review?(bugreport) → review-
Attached patch v3.1Splinter Review
sorry about that
Attachment #181502 - Attachment is obsolete: true
Attachment #181504 - Flags: review?(bugreport)
Attachment #181504 - Flags: review?(bugreport) → review+
holding approval until we branch.  I've had requests for this though, so I might
consider applying it to bmo before then if I get a chance to test it on the
backup installation.
Flags: approval?
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.22
Severity: normal → enhancement
Flags: approval? → approval+
Checking in Bugzilla/Search.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v  <--  Search.pm
new revision: 1.100; previous revision: 1.99
done
Checking in template/en/default/search/search-help.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/search/search-help.html.tmpl,v
 <--  search-help.html.tmpl
new revision: 1.6; previous revision: 1.5
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Keywords: relnote
*** Bug 301344 has been marked as a duplicate of this bug. ***
(In reply to comment #10)
> *** Bug 301344 has been marked as a duplicate of this bug. ***

I know it's late, but can this also be part of 2.20?  With the new whine.pl
feature, searching based on relative hours becomes a lot more useful (such as
auto-notifying unattended critical bugs). 
Dave: any chance we can get this on b.m.o.? See bug 54330.

Gerv
Added to the Bugzilla 2.22 Release Notes in bug 322960.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: