Closed Bug 112892 Opened 24 years ago Closed 21 years ago

Can't query on bugs where foo@bar.com added comment/CC and bar@foo.com added comment/CC

Categories

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

2.15
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: caillon, Assigned: nobody)

References

()

Details

Attachments

(1 file, 1 obsolete file)

Instead of having separate bugs, since they are really the same fix, I am just keeping the one bug.
*** Bug 92455 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 96101 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Re-opening. This query only takes a few seconds but returns Zarro Boogs.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Problem is we only do one join against added comments, so it checks for a comment by X and by Y which will not occur. We need to join against the comments twice in this situation.
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
Query is: SELECT bugs.bug_id, bugs.groupset, substring(bugs.bug_severity, 1, 3), substring(bugs.priority, 1, 3), substring(bugs.rep_platform, 1, 3), map_assigned_to.login_name, substring(bugs.bug_status,1,4), substring(bugs.resolution,1,4), substring(bugs.short_desc, 1, 60) FROM bugs, profiles map_assigned_to, profiles map_reporter LEFT JOIN profiles map_qa_contact ON bugs.qa_contact = map_qa_contact.userid, longdescs longdescs_, profiles longdescnames_ WHERE ((bugs.groupset & 0) = bugs.groupset ) AND bugs.assigned_to = map_assigned_to.userid AND bugs.reporter = map_reporter.userid AND longdescs_.bug_id = bugs.bug_id AND longdescs_.who = longdescnames_.userid AND longdescs_.bug_id = bugs.bug_id AND longdescs_.who = longdescnames_.userid AND (bugs.product = 'Bugzilla') AND (bugs.bug_status = 'NEW' OR bugs.bug_status = 'ASSIGNED' OR bugs.bug_status = 'REOPENED') AND (INSTR(LOWER(longdescnames_.login_name), 'matty@chariot.net.au')) AND (INSTR(LOWER(longdescnames_.login_name), 'justdave@syndicomm.com')) GROUP BY bugs.bug_id ORDER BY bugs.votes desc, bugs.votes desc, bugs.votes desc, bugs.votes desc, bugs.short_desc, bugs.votes desc
OK, added comments can be fixed by changing: my $table = "longdescs_"; to: my $table = "longdescs_$id"; and analogously for $ptable. CC is a lot harder because it uses the special chart. I think putting the results on separate boolean charts would achieve the desired effects, but there is only one special chart, so this code might need to be changed to not go through the charting for CC.
Target Milestone: Bugzilla 2.18 → Bugzilla 2.16
Attachment #64795 - Attachment is obsolete: true
Comment on attachment 64796 [details] [diff] [review] Without the warning this time. If you use the checkboxes to search on cc OR commenter, and only one of those cases is true, with the patch the bug isn't found. (Without, it works fine)
Attachment #64796 - Flags: review-
no working patch yet, not a blocker, -> 2.18
Target Milestone: Bugzilla 2.16 → Bugzilla 2.18
Assignee: endico → nobody
Status: REOPENED → NEW
nobody@bugzilla.org seems to care about these so they wont make 2.18. If someone adopts them, they can move them back. Retargetting to 2.20
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
This is fixed in the tip (2.19) It involved numerous Search.pm fixes
Status: NEW → RESOLVED
Closed: 24 years ago21 years ago
Resolution: --- → WORKSFORME
clearing target of DUPLICATE/WONTFIX/INVALID/WORKSFORME so they'll show up as untriaged if they get reopened.
Target Milestone: Bugzilla 2.20 → ---
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

Created:
Updated:
Size: