The deadline is not kept in saved searches when set to 'Now'

RESOLVED FIXED in Bugzilla 3.6

Status

()

Bugzilla
Query/Bug List
--
minor
RESOLVED FIXED
7 years ago
7 years ago

People

(Reporter: Rick, Assigned: Frédéric Buclin)

Tracking

({regression})

3.6.2
Bugzilla 3.6
regression
Bug Flags:
approval4.0 +
approval3.6 +

Details

(Whiteboard: [3.6 and 4.0 only; 4.1 not affected])

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 GTB7.1 (.NET CLR 3.5.30729)
Build Identifier: 3.6.2

I'm trying to create a saved search that looks for open bugs that are assigned a deadline value of today (i.e. things that need to be looked at today). I have a similar saved search for bugs with a deadline in the next few days. I can successfully go through the process of creating the search. After executing the search, the correct bugs show up according to my criteria. Above the bug list table it shows:
    *   Deadline:  (is less than or equal to) 2010-08-24 00:00:00
    * Status: UNCONFIRMED, NEW, ASSIGNED, INACTIVE, REOPENED
And the right bugs are present. I can save the search as a named query successfully. Clicking on the search executes a different query. After creating the query, the database is populated with the following entry:

DeadlineToday -> bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=INACTIVE&bug_status=REOPENED&query_format=advanced&order=bug_status%2Cpriority%2Cassigned_to%2Cbug_id



Reproducible: Always

Steps to Reproduce:
1. Navigate to advanced search page
2. Enter "now" for the to field of the Deadline
3. Select bug status criteria (e.g. UNCONFIRMED, NEW, ASSIGNED)
4. Execute query
5. Save search as "DeadlineToday"
6. Re-run new DeadlineToday search
Actual Results:  
The query is run using only the bug status criteria defined in step 3

Expected Results:  
The correct bug list should be returned as searched for with the advanced search page.
(Assignee)

Updated

7 years ago
OS: Linux → All
Hardware: x86 → All
Version: unspecified → 3.6.2
(Assignee)

Comment 1

7 years ago
I can reproduce with Bugzilla 3.6.2 and 3.7.3, but neither with Bugzilla 3.4.8 now 4.1.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Target Milestone: --- → Bugzilla 3.6
(Assignee)

Comment 2

7 years ago
Regression due to bug 283609.
Depends on: 283609
(Assignee)

Comment 3

7 years ago
This is only a problem when the deadline is set to "Now". Absolute dates are kept in the query.
Severity: normal → minor
Summary: Saved Search Using Deadline Forgets Value → The deadline is not kept in saved searches when set to 'Now'
Whiteboard: [3.6 and 4.0 only; 4.1 not affected]
(Assignee)

Comment 4

7 years ago
Created attachment 471307 [details] [diff] [review]
patch for 3.6 and 4.0, v1

ghendricks, please retarget the review request to dkl or mkanat if you don't feel confident with this patch. I ask you for review because you wrote the original code in bug 283609.
Assignee: query-and-buglist → LpSolit
Status: NEW → ASSIGNED
Attachment #471307 - Flags: review?(ghendricks)

Updated

7 years ago
Attachment #471307 - Flags: review?(ghendricks) → review+
(Assignee)

Updated

7 years ago
Flags: approval4.0+
Flags: approval3.6+
(Assignee)

Comment 5

7 years ago
Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/4.0/
modified Bugzilla/Search.pm
Committed revision 7394.

Committing to: bzr+ssh://lpsolit%40gmail.com@bzr.mozilla.org/bugzilla/3.6/
modified Bugzilla/Search.pm
Committed revision 7168.
Status: ASSIGNED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.