Closed
Bug 554139
Opened 16 years ago
Closed 16 years ago
[k] JSON(P) support for search
Categories
(support.mozilla.org :: Search, defect, P1)
support.mozilla.org
Search
Tracking
(Not tracked)
VERIFIED
FIXED
2.0
People
(Reporter: jsocol, Assigned: paulc)
References
()
Details
We use the JSON search results in the AAQ, so we do need to support this right away.
| Assignee | ||
Comment 1•16 years ago
|
||
r? on branch bug-554139 at:
http://github.com/pcraciunoiu/kitsune/commit/7aa2483d4d529ea856a0ffcba3eb905830aa7f9f
I ported James' PHPUnit test over to django (original: bug 543116 attachment 424340 [details]).
Worth noting: we use item.search_summary instead of item.description. When I tested this, I first saw only titles in the AAQ form results. So I changed |.description| to |.search_summary| in webroot/forumquestion.js:391.
Assignee: nobody → paulc
| Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> r? on branch bug-554139 at:
> http://github.com/pcraciunoiu/kitsune/commit/7aa2483d4d529ea856a0ffcba3eb905830aa7f9f
r+.
| Reporter | ||
Comment 3•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 4•16 years ago
|
||
tests++; WebQA really appreciates all the tests that are landing!
What's the manual test for this, BTW? Just loading http://support-stage-new.mozilla.com/en-US/search?q=deleting+bookmarks&format=json that it's JSON?
| Reporter | ||
Comment 5•16 years ago
|
||
Checking that it's a JSON MIME-type and that it's valid (http://jsonlint.com/) and then adding a |callback=foo| parameter and checking that it's a JavaScript MIME-type.
Comment 6•16 years ago
|
||
Verified FIXED:
http://support-stage-new.mozilla.com/en-US/search?q=deleting%20bookmarks&format=json&callback=arr[1] is application/x-javascript
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•