The return value of HWDevice.getSubmissions().count() is bogus

Bug #327181 reported by Abel Deuring
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Eleanor Berger

Bug Description

HWDevice.getSubmissions(...).count() returns in most cases a too large number.

This seems to be caused by the "DISTINCT" clause in the underlying Storm query, issued in HWSubmissonSet.search(). While the DISTINCT clause appears properly in the SQL query returnung the submissions, an equivalent is missing in the SQL query issued by result_set.count().

The workaround is quite ugly: Seek in the result set for the largest index that does not raise an index error.

Abel Deuring (adeuring)
Changed in malone:
status: New → Triaged
Revision history for this message
Abel Deuring (adeuring) wrote :
Changed in malone:
milestone: none → 2.2.2
Changed in malone:
assignee: nobody → intellectronica
Changed in malone:
importance: Undecided → Medium
status: Triaged → In Progress
Revision history for this message
Eleanor Berger (intellectronica) wrote :

RF 7826

Changed in malone:
status: In Progress → Fix Committed
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.