Closed Bug 417606 Opened 17 years ago Closed 17 years ago

See all search results always number 10

Categories

(Toolkit :: Add-ons Manager, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9beta5

People

(Reporter: laura, Assigned: mossop)

References

Details

Attachments

(5 files)

This is due to the API optimization we made to only return 10 results.
This is a hackish fix for the API. It will return the correct number of empty <addon /> elements, so that the Add-ons manager sees the correct number. Mossop tells me ths should work. If we push this to production on SAMO users will get the correct experience and we can change the client in b4.
Attachment #303379 - Flags: review?(morgamic)
Comment on attachment 303379 [details] [diff] [review] Temp fix for API. Just promise this goes away for b4.
Attachment #303379 - Flags: review?(morgamic) → review+
You couldn't make me leave it in. :)
Committed patch in r10355.
Assignee: laura → dtownsend
Status: ASSIGNED → NEW
Keywords: push-needed
To fix this long term we want to get rid of the empty elements and just add a result count somewhere. The attributes "totalresults" and "returnedresults" or similar were suggested which seems fine by me.
I'll add that attribute for b4. Reassigning to me.
Assignee: dtownsend → laura
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: push-needed
Flags: blocking-firefox3?
Flags: blocking-firefox3? → blocking-firefox3+
Priority: -- → P1
This depends on the versioning scheme in https://bugzilla.mozilla.org/show_bug.cgi?id=418642 I have a patch up for review for that, once approved, this one is trivial to fix.
Depends on: 418642
Fixed in r10615. The version number can be added directly after the API, e.g.: https://services.addons.mozilla.org/%LOCALE%/%APP%/api/[version]/search/foo The current version of the API to be used with Fx3 b4 is 0.9, so the config value for extensions.getAddons.search.url should change to https://services.addons.mozilla.org/%LOCALE%/%APP%/api/0.9/search/%TERMS% The XML returned looks like <searchresults total_results="n"> ...as before, minus the dummy <addon /> elements... </searchresults>
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Component: Extension/Theme Manager → API
Product: Firefox → addons.mozilla.org
QA Contact: extension.manager → api
Target Milestone: Firefox 3 beta4 → ---
Version: unspecified → 3.0
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reassigning to Mossop so he can change the Addons Mgr accordingly.
Assignee: laura → dtownsend
Status: REOPENED → NEW
Component: API → Extension/Theme Manager
Product: addons.mozilla.org → Firefox
QA Contact: api → extension.manager
Target Milestone: --- → Firefox 3 beta4
Version: 3.0 → Trunk
I have the patch for this mostly implemented, waiting on finalisation of the spec wrt multiple OS add-ons
Status: NEW → ASSIGNED
Whiteboard: [waiting on webdev before final patch]
In r10671: Add translation table for outputting the platform oses the client is looking for. Kind of an evil hardcoded hack which I am reproducing from http://mxr.mozilla.org/mozilla/source/webtools/update/update/VersionCheck.php Both of these should get fixed at the same time, and draw on the AMO db. Will file a bug for that separately. Refs #418659 as well.
Attached patch Toolkit portionSplinter Review
We need to start passing the OS to AMO in the API. This extends the urlformatter a little to make that possible.
Attachment #305582 - Flags: review?(gavin.sharp)
Attached patch EM patch rev 1Splinter Review
This is an update to the results parser that leaves it able to parse the current API schema (version 0) and the next major revision of the schema (version 1). Currently AMO isn't able to provide version 1 however I have tested this against a staging server and also provided unit testing for both the old and new schemas. The plan will be to land this code apart from the config change. Then once AMO has been updated we can just land the config change to switch to it. When that happens it will fix the search result count and the issue of OS specific extensions not being offered correctly.
Attachment #305583 - Flags: review?(robert.bugzilla)
Comment on attachment 305582 [details] [diff] [review] Toolkit portion Please ignore the firefox.js portion of this patch.
Example of the new schema for reference.
Whiteboard: [waiting on webdev before final patch] → [has patch]
Forgot to add that the EM patch is on top of the patch from bug 417424 so that has to land first.
Comment on attachment 305582 [details] [diff] [review] Toolkit portion r=me to the non-firefox.js changes!
Attachment #305582 - Flags: review?(gavin.sharp) → review+
Whiteboard: [has patch] → [has patch][needs review rstrong]
The code can land as soon as it is reviewed, the config change has to wait for these bugs to be fixed and pushed live.
Depends on: 418659, 419057
Target Milestone: Firefox 3 beta4 → Firefox 3
Attachment #305583 - Flags: review?(robert.bugzilla) → review+
Whiteboard: [has patch][needs review rstrong] → [has patch]
Laura, do you have an idea of when the new schema and url version will be going live on AMO?
Whiteboard: [has patch]
Checked in all except the config change for now, holding open for that. Checking in toolkit/mozapps/extensions/src/nsAddonRepository.js; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsAddonRepository.js,v <-- nsAddonRepository.js new revision: 1.3; previous revision: 1.2 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug404024.js,v done Checking in toolkit/mozapps/extensions/test/unit/test_bug404024.js; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug404024.js,v <-- test_bug404024.js initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug417606.js,v done Checking in toolkit/mozapps/extensions/test/unit/test_bug417606.js; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/test_bug417606.js,v <-- test_bug417606.js initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/data/test_bug404024.xml,v done Checking in toolkit/mozapps/extensions/test/unit/data/test_bug404024.xml; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/data/test_bug404024.xml,v <-- test_bug404024.xml initial revision: 1.1 done RCS file: /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/data/test_bug417606.xml,v done Checking in toolkit/mozapps/extensions/test/unit/data/test_bug417606.xml; /cvsroot/mozilla/toolkit/mozapps/extensions/test/unit/data/test_bug417606.xml,v <-- test_bug417606.xml initial revision: 1.1 done Checking in toolkit/components/urlformatter/src/nsURLFormatter.js; /cvsroot/mozilla/toolkit/components/urlformatter/src/nsURLFormatter.js,v <-- nsURLFormatter.js new revision: 1.8; previous revision: 1.7 done Checking in toolkit/components/urlformatter/tests/unit/test_urlformatter.js; /cvsroot/mozilla/toolkit/components/urlformatter/tests/unit/test_urlformatter.js,v <-- test_urlformatter.js new revision: 1.2; previous revision: 1.1 done
Target Milestone: Firefox 3 → Firefox 3 beta5
Flags: in-testsuite+
Will need to do the config changes for Thunderbird as well once SAMO is updated.
The updates to services.addons.mozilla.org are due to go live on Tuesday so I will look to committing the config change on Wednesday all being well.
Attached patch config changesSplinter Review
This is just the config change and a matching change for Thunderbird which philor agreed I could do.
Attachment #308842 - Flags: review+
Checked in, this is all done now. Checking in browser/app/profile/firefox.js; /cvsroot/mozilla/browser/app/profile/firefox.js,v <-- firefox.js new revision: 1.308; previous revision: 1.307 done Checking in mail/app/profile/all-thunderbird.js; /cvsroot/mozilla/mail/app/profile/all-thunderbird.js,v <-- all-thunderbird.js new revision: 1.109; previous revision: 1.108 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Verified fix on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9pre) Gecko/2008032704 Minefield/3.0pre
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
Dave, with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.4pre) Gecko/20100409 Namoroka/3.6.4pre ID:20100409033633 I still see only 10 results mentioned in the Get Addons pane. Shouldn't that have been fixed? Or do we have another regression?
(In reply to comment #26) > Dave, with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; > rv:1.9.2.4pre) Gecko/20100409 Namoroka/3.6.4pre ID:20100409033633 I still see > only 10 results mentioned in the Get Addons pane. Shouldn't that have been > fixed? Or do we have another regression? Perhaps you're seeing bug 554133?
(In reply to comment #27) > Perhaps you're seeing bug 554133? Looks like. While testing on other platforms and with Shiretoko and Gran Paradiso I have noticed that this bug hasn't been fixed or regressed again. Lets keep the conversation on bug 554133. Thanks Dave.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: