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)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla1.9beta5
People
(Reporter: laura, Assigned: mossop)
References
Details
Attachments
(5 files)
1.58 KB,
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
6.00 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
35.29 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
11.46 KB,
text/xml
|
Details | |
3.77 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
This is due to the API optimization we made to only return 10 results.
Reporter | ||
Comment 1•17 years ago
|
||
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.
Reporter | ||
Updated•17 years ago
|
Attachment #303379 -
Flags: review?(morgamic)
Comment 2•17 years ago
|
||
Comment on attachment 303379 [details] [diff] [review]
Temp fix for API.
Just promise this goes away for b4.
Attachment #303379 -
Flags: review?(morgamic) → review+
Reporter | ||
Comment 3•17 years ago
|
||
You couldn't make me leave it in. :)
Assignee | ||
Comment 5•17 years ago
|
||
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.
Reporter | ||
Comment 6•17 years ago
|
||
I'll add that attribute for b4. Reassigning to me.
Assignee: dtownsend → laura
Reporter | ||
Updated•17 years ago
|
Reporter | ||
Updated•17 years ago
|
Flags: blocking-firefox3?
Updated•17 years ago
|
Flags: blocking-firefox3? → blocking-firefox3+
Priority: -- → P1
Reporter | ||
Comment 7•17 years ago
|
||
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
Reporter | ||
Comment 8•17 years ago
|
||
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
Updated•17 years ago
|
Component: Extension/Theme Manager → API
Product: Firefox → addons.mozilla.org
QA Contact: extension.manager → api
Target Milestone: Firefox 3 beta4 → ---
Version: unspecified → 3.0
Reporter | ||
Updated•17 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 9•17 years ago
|
||
Reassigning to Mossop so he can change the Addons Mgr accordingly.
Assignee: laura → dtownsend
Status: REOPENED → NEW
Updated•17 years ago
|
Component: API → Extension/Theme Manager
Product: addons.mozilla.org → Firefox
QA Contact: api → extension.manager
Target Milestone: --- → Firefox 3 beta4
Version: 3.0 → Trunk
Assignee | ||
Comment 10•17 years ago
|
||
I have the patch for this mostly implemented, waiting on finalisation of the spec wrt multiple OS add-ons
Status: NEW → ASSIGNED
Updated•17 years ago
|
Whiteboard: [waiting on webdev before final patch]
Reporter | ||
Comment 11•17 years ago
|
||
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.
Assignee | ||
Comment 12•17 years ago
|
||
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)
Assignee | ||
Comment 13•17 years ago
|
||
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)
Assignee | ||
Comment 14•17 years ago
|
||
Comment on attachment 305582 [details] [diff] [review]
Toolkit portion
Please ignore the firefox.js portion of this patch.
Assignee | ||
Comment 15•17 years ago
|
||
Example of the new schema for reference.
Assignee | ||
Updated•17 years ago
|
Whiteboard: [waiting on webdev before final patch] → [has patch]
Assignee | ||
Comment 16•17 years ago
|
||
Forgot to add that the EM patch is on top of the patch from bug 417424 so that has to land first.
Comment 17•17 years ago
|
||
Comment on attachment 305582 [details] [diff] [review]
Toolkit portion
r=me to the non-firefox.js
changes!
Attachment #305582 -
Flags: review?(gavin.sharp) → review+
Updated•17 years ago
|
Whiteboard: [has patch] → [has patch][needs review rstrong]
Assignee | ||
Comment 18•17 years ago
|
||
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.
Updated•17 years ago
|
Target Milestone: Firefox 3 beta4 → Firefox 3
Updated•17 years ago
|
Attachment #305583 -
Flags: review?(robert.bugzilla) → review+
Updated•17 years ago
|
Whiteboard: [has patch][needs review rstrong] → [has patch]
Assignee | ||
Comment 19•17 years ago
|
||
Laura, do you have an idea of when the new schema and url version will be going live on AMO?
Whiteboard: [has patch]
Assignee | ||
Comment 20•17 years ago
|
||
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
Assignee | ||
Updated•17 years ago
|
Flags: in-testsuite+
Assignee | ||
Comment 21•17 years ago
|
||
Will need to do the config changes for Thunderbird as well once SAMO is updated.
Assignee | ||
Comment 22•17 years ago
|
||
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.
Assignee | ||
Comment 23•17 years ago
|
||
This is just the config change and a matching change for Thunderbird which philor agreed I could do.
Attachment #308842 -
Flags: review+
Assignee | ||
Comment 24•17 years ago
|
||
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 ago → 17 years ago
Resolution: --- → FIXED
Comment 25•17 years ago
|
||
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
Updated•16 years ago
|
Product: Firefox → Toolkit
Comment 26•15 years ago
|
||
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?
Assignee | ||
Comment 27•15 years ago
|
||
(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?
Comment 28•15 years ago
|
||
(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.
Description
•