Closed
Bug 394394
Opened 17 years ago
Closed 17 years ago
Theme count is incorrect
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
addons.mozilla.org Graveyard
Public Pages
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: baz, Assigned: wenzel)
References
()
Details
Attachments
(1 file, 2 obsolete files)
2.53 KB,
patch
|
fligtar
:
review+
|
Details | Diff | Splinter Review |
It appears that the theme count at the bottom of this page is incorrect. Also, clicking on next/Page # gives an unstyled page. May be related to bug 394374.
Reporter | ||
Updated•17 years ago
|
Target Milestone: --- → 3.2
Comment 1•17 years ago
|
||
Should not show additional results if less than # per page.
Assignee: nobody → fwenzel
Assignee | ||
Comment 2•17 years ago
|
||
The culprit here is an INNER JOIN against the files table (that was not executed for result counting), resulting in sandboxed addons without files being counted yet not shown. I will make a patch for this.
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•17 years ago
|
||
This executes the JOINs for addon lists also if we are just counting. This avoids overcounting add-ons that don't have versions with files. I am also likely fixed bug 394374, but I haven't checked that yet. Fligtar, can you review this please?
Attachment #287823 -
Flags: review?
Comment 4•17 years ago
|
||
This didn't fix the problem in the URL above for me after applying the patch. http://fligtar.khan-vm.mozilla.org/addons-reviews/site/en-US/firefox/browse/type:2/cat:32/status:1
Assignee | ||
Comment 6•17 years ago
|
||
This patch does fix the problem for me (and also fixed bug 394374). The error message did still render the rest of the page for the sandbox. I fixed it so it stops rendering (and redirects instead) in public and sandbox equally now. Please review, thanks.
Attachment #287823 -
Attachment is obsolete: true
Attachment #287973 -
Flags: review?
Attachment #287823 -
Flags: review?
Comment 7•17 years ago
|
||
The fix still doesn't seem to be working for me. When I go to http://fligtar.khan-vm.mozilla.org/addons-reviews/site/en-US/firefox/browse/type:2/cat:32/status:1 and click next at the bottom, or on any of the page numbers, I still get the error message.
Assignee | ||
Comment 8•17 years ago
|
||
I cannot log into your dev copy. If you get an error message (no addons found) this means the fix *does* work. You are not supposed to find any addons in an empty category :)
Comment 9•17 years ago
|
||
Sorry, forgot I changed the database for stats stuff. http://fligtar.khan-vm.mozilla.org/addons/trunk/site/en-US/firefox/browse/type:2/cat:32/status:1 As I understand it, the bug is that there are 3 add-ons displayed on this page, but the count at the bottom says 31. Clicking next or on any page says there are no add-ons in this category, so the count and pagination is wrong because there are apparently only 3. This still exists with this patch - the only difference I can see is the order of the add-ons it does find and the style fix with the error messages.
Assignee | ||
Comment 10•17 years ago
|
||
Ouch, how stupid -- the inner join was still not executed, and I didn't notice because I did not use the current data on my dev copy. Sorry! Anyways, this will fix it (I promise ;)) but now it won't display any add-ons anymore that do not offer any versions and files. This means, the number of addons in this category has shrunk to 3 (also for the other list types). I think this is reasonable because how good is an addon whose description you can read but that doesn't have any version to offer. But ymmv, so speak up if you disagree. Thanks.
Attachment #287973 -
Attachment is obsolete: true
Attachment #288637 -
Flags: review?
Attachment #287973 -
Flags: review?
Comment 11•17 years ago
|
||
Comment on attachment 288637 [details] [diff] [review] Only show add-ons that have files to offer. Yay!
Attachment #288637 -
Flags: review? → review+
Assignee | ||
Comment 12•17 years ago
|
||
This is in SVN r8034. Thanks, all!
Updated•8 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•