Closed
Bug 417424
Opened 17 years ago
Closed 17 years ago
AMO Manager: Multiple requests for recommended list on first opening
Categories
(Toolkit :: Add-ons Manager, defect, P2)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9beta5
People
(Reporter: morgamic, Assigned: mossop)
References
()
Details
Attachments
(1 file, 2 obsolete files)
5.66 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1) open add-ons manager for the first time
2) go to get add-ons tab
3) watch http traffic
The service URL seems to be requested multiple times (often 6, sometimes more):
https://services.addons.mozilla.org/en-US/firefox/api/list/featured/all/10
Image here:
http://people.mozilla.com/~morgamic/samo_requests.png
Had 3 people report same thing, so marking NEW -- could someone take a look? This could be important for AMO scalability if it is indeed sending multiple requests.
Less of a problem if bug 415277 could be fixed, but a separate issue nonetheless.
Comment 1•17 years ago
|
||
I'm not totally convinced this is happening, but I agree that I see the same results as you using the tamper data extension (which is not marked compatible with ff3...).
To reproduce my reason for doubting:
1) open add-ons manager, get recommended list
2) close add-ons manager
3) re-open add-ons manager. list is loaded from cache.
On step 3, tamper data shows me X amount of requests (where X is apparently random but less than 10), but tcpdump shows no packets going to AMO. On initial startup and when I do a search tcpdump does show the packets. It seems like tamperdata is malfunctioning to me.
Assignee | ||
Comment 2•17 years ago
|
||
It is happening because I wrote it to happen. The goal is to find 5 displayable items. So the feature requests 10 in the hope that 5 in there will be suitable (finger in the air generated number). If it doesn't find 5 items it requests another 10 from the recommended list. It keeps doing this until it stops finding new items to display.
This was all written when I was of the impression that the recommended list would spit out random results for each call. In actual fact it is cached so we should be seeing the same list each time. Because of this we could just drop the additional calls and give up after the first request. The hope was that once extensions were updated to Firefox 3 no more than one request would be needed anyway.
OS: Mac OS X → All
Hardware: Macintosh → All
Reporter | ||
Comment 3•17 years ago
|
||
What if you passed client and version info to the API so the API could only return compatible add-ons? It would make a more complex query but you'd only have to do it once. Other services pass more info for that reason (extension updates, AUS, etc.). Is that plausible?
Assignee | ||
Comment 4•17 years ago
|
||
I already am passing the client name but version is certainly possible, it should just be a pref change. The other things that we filter on are OS (which we could pass as well) and then we filter out sandboxed items and items that the user already has installed (the last of these we would always have to do client side).
Reporter | ||
Comment 5•17 years ago
|
||
In cases like this with in-client URLs we've always erred on the side of passing more info than less, so I would be for adding additional info if it helps reduce the # of requests and the ambiguity of API results. Laura -- what do you think?
Comment 6•17 years ago
|
||
Blocking until we can determine if this is accidentally overloading our servers and ironically preventing us from serving any add-ons.
Flags: blocking-firefox3+
Assignee | ||
Comment 7•17 years ago
|
||
Regardless of whether the repeated calls are overloading the server they are pointless as long as the result is cached so we may as well remove it.
I'd be tempted to up the number of results requested for the one off call to maybe 20, don't know what you think of that morgamic?
Lets do the adjustment to the API taking the app version into account separately.
Assignee: nobody → dtownsend
Assignee | ||
Comment 8•17 years ago
|
||
Dump the repeated requests, just go with whatever we get first time around.
Attachment #303305 -
Flags: review?(robert.bugzilla)
Assignee | ||
Updated•17 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 9•17 years ago
|
||
This is as the previous patch however it drops the now useless global uri field.
Attachment #303305 -
Attachment is obsolete: true
Attachment #305050 -
Flags: review?(robert.bugzilla)
Attachment #303305 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 10•17 years ago
|
||
Sorry, don't need to track oldcount anymore either.
Attachment #305050 -
Attachment is obsolete: true
Attachment #305066 -
Flags: review?(robert.bugzilla)
Attachment #305050 -
Flags: review?(robert.bugzilla)
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch]
Updated•17 years ago
|
Priority: -- → P2
Whiteboard: [has patch] → [has patch][needs review rstrong]
Updated•17 years ago
|
Attachment #305066 -
Flags: review?(robert.bugzilla) → review+
Updated•17 years ago
|
Whiteboard: [has patch][needs review rstrong] → [has patch]
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch]
Updated•17 years ago
|
Whiteboard: [has patch]
Assignee | ||
Comment 11•17 years ago
|
||
Checking in toolkit/mozapps/extensions/src/nsAddonRepository.js;
/cvsroot/mozilla/toolkit/mozapps/extensions/src/nsAddonRepository.js,v <-- nsAddonRepository.js
new revision: 1.2; previous revision: 1.1
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3 beta5
Comment 12•17 years ago
|
||
hi mike, wil,
can you verify this has been fixed in your service URL tool? Thanks.
Assignee | ||
Updated•17 years ago
|
Whiteboard: [has patch]
Reporter | ||
Comment 13•17 years ago
|
||
I don't see this issue any more.
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•