Open Bug 520446 Opened 15 years ago Updated 12 years ago

Inconsistent way of defining time ranges on searches

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
minor

Tracking

()

People

(Reporter: gerv, Unassigned)

Details

The searches you can do across time ranges seem to be divided between some which are before/after (i.e. < and >) and some which are from/to (i.e. >= and <=).

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/webtools/bugzilla/Bugzilla/Search.pm
Line 429:  chfieldfrom/to:             <= >=
Line 539:  deadlinefrom/to:            <= >=
Line 1411: comment before/after:       <  >
Line 1563: worktime before/after:      <  >
Line 1717: attachments before/after:   <  >
Line 2208: generic before/after:       <  >

This is a shame. Additionally, the from/to terminology is ambiguous in the "changed field" case - does "chfieldto" indicate the upper bound of the time range, or the new value?

Is it worth fixing this, and standardising on before/after terminology? (We can put in +1 / -1 hacks and still support old field names, as has been done on line 414 for the legacy "changedin" field.

Gerv
Severity: normal → minor
You need to log in before you can comment on or make changes to this bug.