Closed Bug 521063 Opened 17 years ago Closed 17 years ago

crash-stats's "one of" OS selection does AND, not OR

Categories

(Socorro :: General, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 485805

People

(Reporter: aerowolf, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Ant.com Toolbar 1.4 Firefox/3.0.10, Ant.com Toolbar 1.3 Build Identifier: crash-stats.mozilla.com crash-stats's OS selection allows one to select more than one OS. The description it gives for the URL attached is: Results within 4 weeks of now, and the product is one of Firefox, and the version is one of Firefox:3.5.3, and the platform is one of windows, mac, linux, solaris. The problem is that this list is empty. If you select any single OS, you get results. This limits the usefulness of the system to find non-platform-specific bugs. Reproducible: Always Steps to Reproduce: 1. Go to URL specified. Look at number of results. 2. Select a single OS from menu, click 'Filter Crash Reports'. 3. Look at number of results. This is larger than the number of results in the first step, when it should be a subset. Actual Results: Zero results for the query. Expected Results: All results within the last 4 weeks on all platforms, for the query. I don't know a huge amount about databases, or even if this is SQL-based. (most are.) I will leave it to the developers of the system to figure out what's wrong. I conjecture that the query is built incorrectly, with something like a SELECT (signature, numreported, winreports, macreports, linreports, solreports) WHERE (report.date >= TIME(NOW) - 4w) AND (report.win > 0) AND (report.mac > 0) AND (report.lin > 0) AND (report.sol > 0) ORDER BY [...]; If this conjecture is correct, the comparison clauses I refer to as report.[os] need to be OR'ed with themselves, such as: (report.date >= TIME(NOW) - 4w) AND ((report.win > 0 ) OR (report.mac > 0) OR ([...])) ORDER BY SUM(report.win + report.mac + report.lin + report.sol);
Status: UNCONFIRMED → NEW
Component: General → Socorro
Ever confirmed: true
Product: Core → Webtools
QA Contact: general → socorro
Version: unspecified → other
I think this is a dupe of the recently fixed 485805.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.