Closed Bug 264192 Opened 20 years ago Closed 19 years ago

Cannot search where BugsThisDependsOn or OtherBugsDependingOnThis is empty

Categories

(Bugzilla :: Query/Bug List, defect, P3)

defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: nicko, Assigned: bugreport)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10

Cannot search where BugsThisDependsOn or OtherBugsDependingOnThis is empty.

Using the boolean chart query I want to filter the search results to include
only bugs that are NOT blocked by any other bugs, i.e. where dependson
(OtherBugsDependingOnThis) is empty.

Because dependencies is a link table a natural join between the bugs and
dependencies table will only include rows where are included in both tables,
i.e. it will not include rows that don't have dependencies. To include these
rows an outer join can be performed, this will include all the rows from the
bugs table even where they do not match up against the dependencies table, null
values will be inserted where there is no corresponding row.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Assignee: justdave → bugreport
Blocks: 252564
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Priority: -- → P3
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.22
OK, I'll look into this, if nobody else does, because we need it for PostgreSQL
support.

Tomas, if you (somehow, magically) have some free time, you can take this bug
from me, too. :-)
Assignee: bugreport → mkanat
Target Milestone: Bugzilla 2.22 → Bugzilla 2.20

*** This bug has been marked as a duplicate of 252461 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
This is a bug, the bug it was duped against is a feature request.  I'd rather
not combine them if possible.

I originally reopened this thinking it was already fixed since we got negation,
but it does appear we still have the wrong join type on it.  I still think this
is a separate issue from searching on fields on the dependent bugs.
Attached patch Patch - use left join (obsolete) — Splinter Review
Assignee: mkanat → bugreport
Status: REOPENED → NEW
Attachment #175255 - Flags: review?(mkanat)
Attachment #175255 - Attachment is obsolete: true
Attachment #175255 - Flags: review?(mkanat)
Attachment #175257 - Flags: review?(mkanat)
Comment on attachment 175257 [details] [diff] [review]
v2 - fully specify table name

Hooray, it works! :-)
Attachment #175257 - Flags: review?(mkanat) → review+
Flags: approval?
Flags: approval? → approval+
Checking in Bugzilla/Search.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v  <--  Search.pm
new revision: 1.84; previous revision: 1.83
done
Status: NEW → RESOLVED
Closed: 20 years ago19 years ago
Resolution: --- → FIXED
Whiteboard: [applied to b.m.o]
Whiteboard: [applied to b.m.o]
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: