Closed
Bug 418659
Opened 17 years ago
Closed 16 years ago
Return one install stanza per OS
Categories
(addons.mozilla.org Graveyard :: API, defect, P2)
addons.mozilla.org Graveyard
API
Tracking
(Not tracked)
VERIFIED
FIXED
4.0.2
People
(Reporter: laura, Assigned: laura)
References
Details
Attachments
(3 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
morgamic
:
review+
|
Details | Diff | Splinter Review |
(deleted),
application/xml
|
mossop
:
review+
|
Details |
As above. Right now addons that are compatible with more than one but not all OSes cause an issue.
Moving this from 399913 which was more general, but read comments there: https://bugzilla.mozilla.org/show_bug.cgi?id=399913
Assignee | ||
Updated•17 years ago
|
Severity: normal → major
Assignee | ||
Comment 1•17 years ago
|
||
This will change the XML returned to the client, FYI.
Flags: blocking-firefox3?
Comment 2•17 years ago
|
||
Will we change to a new version in the url or will we have to take the hit breaking 3b3?
Assignee | ||
Comment 3•17 years ago
|
||
New url, details to follow shortly.
Assignee | ||
Comment 4•17 years ago
|
||
The logic still needs fixing, but this decouples that from the Addons Mgr. Available for testing on lthomson.khan-vm
Assignee | ||
Comment 5•17 years ago
|
||
Need to change this a bit: some addons have different xpis per os.
Desired XML will change to <install hash='...' os=''>...</install>. If no os attribute is supplied default should be ALL.
Assignee | ||
Comment 7•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 #417606 as well)
Updated•17 years ago
|
Attachment #305020 -
Attachment is patch: true
Attachment #305020 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Updated•17 years ago
|
Target Milestone: 3.3 → 3.4.3
Updated•16 years ago
|
Target Milestone: 3.4.3 → 3.4.4
Updated•16 years ago
|
Target Milestone: 3.4.4 → 3.4.5
Assignee | ||
Updated•16 years ago
|
Target Milestone: 3.4.5 → 3.4.6
Assignee | ||
Updated•16 years ago
|
Target Milestone: 3.4.6 → 3.4.7
Assignee | ||
Updated•16 years ago
|
Target Milestone: 3.4.7 → 4.0.1
Updated•16 years ago
|
Target Milestone: 4.0.1 → 3.5.1
Updated•16 years ago
|
Priority: -- → P2
Comment 10•16 years ago
|
||
Laura, any update on this bug?
Assignee | ||
Comment 11•16 years ago
|
||
Attachment #343041 -
Flags: review?(morgamic)
Assignee | ||
Comment 12•16 years ago
|
||
I tested this with 3.0.3 but requesting review from Mossop to be sure.
Attachment #343042 -
Flags: review?(dtownsend)
Updated•16 years ago
|
Attachment #343042 -
Flags: review?(dtownsend) → review+
Comment 13•16 years ago
|
||
Comment on attachment 343042 [details]
Sample output for the classic test case, Cooliris (Piclens)
Yeah looks good. I'm assuming the search API returns the same sort of data.
Assignee | ||
Comment 14•16 years ago
|
||
Dave, it's exactly the same format (uses the same code).
Comment 15•16 years ago
|
||
Comment on attachment 343041 [details] [diff] [review]
Patch to return one install stanza per OS, also lists compatible OSes correctly.
Output had:
<install hash="sha1:a582200fd6343cc9c75a8d7fabd27a6058df34b1" os="WINNT">
https://addons.mozilla.org/downloads/file/38892/cooliris__formerly_piclens_-1.8.3.14081-fx-win.xpi
</install>
−
<install hash="sha1:ff19975681de4ce3fd39c2ab39259651cc27b70b" os="Darwin">
https://addons.mozilla.org/downloads/file/38893/cooliris__formerly_piclens_-1.8.3.14081-fx-macosx.xpi
</install>
I would prefer to see some tests to verify something like that, though. Do you have any time to write some against the spec mossop provided?
Attachment #343041 -
Flags: review?(morgamic) → review+
Comment 16•16 years ago
|
||
I'm not sure how to go about writing unit tests for AMO, is there any docs to go on? I might be able to find some spare time if it isn't too involved.
Assignee | ||
Comment 17•16 years ago
|
||
I can write a unit test but not in time for this freeze/push. (Since this bug was for Monday's freeze and tomorrow's push)
I also think it would be nice to have a client test, which is obviously in Mossop's court.
Comment 18•16 years ago
|
||
Oh client has already had automated tests for this since bug 417606 was fixed
Assignee | ||
Comment 19•16 years ago
|
||
In r19146.
Writing a unit test depends on getting some test data that represents this edge case...which I guess depends on bug 459855. Calling this FIXED but I'll open a bug for the unit test.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
mossop, which automated test in bug 417606 covers this? Or, Laura, is there a quick https://preview.addons.mozilla.org/en-US/firefox/api/1.1/* URL with which I can test?
Assignee | ||
Comment 21•16 years ago
|
||
https://preview.addons.mozilla.org/en-US/firefox/api/1.1/addon/5579
or use the search for PicLens.
Verified FIXED; the URL from comment 21 shows both OSs, while https://addons.mozilla.org/en-US/firefox/api/1.1/addon/5579 only shows me Windows.
https://bugzilla.mozilla.org/show_bug.cgi?id=399913#c33 helped me understand this; sorry for not having it sink in before.
Status: RESOLVED → VERIFIED
Updated•9 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
•