Closed Bug 868882 Opened 12 years ago Closed 12 years ago

[socorro-crashstats] gfxContext::gfxContext not showing up in /report/list

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rhelmer, Assigned: jezdez)

References

Details

Blocks: 716298
Blocks: 749359
Nothing comes up on the search results.
(In reply to Peter Bengtsson [:peterbe] from comment #1) > Nothing comes up on the search results. Sorry I done goofed the URL somehow, try this (or just type the signature into the search box in the upper-left of every screen): https://crash-stats-django.allizom.org/query/?query_type=simple&query=gfxContext%3A%3AgfxContext
Assignee: nobody → jleidel
I suspect this was caused by me in bug 848497, just ran into another manifestation of this... looks like 'ALL' is being explicitly passed to middleware, and socorro/external/postgresql/base.py is adding (r.product='ALL' AND r.version='ALL') to queries. It looks like the right thing to do here is *not* pass product/version parameters to the mware service in question (reports I think)
From what I was able to understand till now is that there seems to be an inconsistency between the "middleware" and the Django app of what "ALL" means. I guess we just need to decide if we want to express "selecting all versions of all products" with an empty value or "ALL". Since this is a filter interface with other optional fields for a big data set I think it's more correct to assume that passing no version value means "all".
In the middleware, if you want a parameter to be equivalent to "ALL", you need to either skip it or make it empty. It didn't make much sense from an API point of view to accept those "ALL:ALL" values.
The (very confusing!) subtext here is that apparently at some point, the old kohana/php webapp supported showing multiple product/versions *at the same time* on the /report/list page, which is why the version parameter accepts product:version pairs (which is what ALL:ALL represents in this instance). This apparently was never used, and the django code only supports this as much as is needed for old URLs to still work.
Status: NEW → ASSIGNED
Commits pushed to master at https://github.com/mozilla/socorro https://github.com/mozilla/socorro/commit/bbf5b8c30201cbf972cdea5c77f9a0525b082e1d bug 868882 - don't force the versions parameter for the signature urls service. https://github.com/mozilla/socorro/commit/d2d3efbb1bde066ac5c0e062f12f70b3c1c99444 Merge pull request #1254 from jezdez/bug868882-report-list-all bug 868882 - don't force the versions parameter for the signature urls service.
Commits pushed to master at https://github.com/mozilla/socorro-crashstats https://github.com/mozilla/socorro-crashstats/commit/6ff5d24efc22bd7d75dfc8e2a0f930581b5fcb7b bug 868882 - don't pass the version to the middleware if it's "ALL:ALL" https://github.com/mozilla/socorro-crashstats/commit/cdb6be0416f9a3227fd6171734807fa46f2c9343 Merge pull request #346 from jezdez/bug868882-report-list-all bug 868882 - don't pass the version to the middleware if it's "ALL:ALL"
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.