Closed
Bug 864433
Opened 12 years ago
Closed 12 years ago
Use Strategy Pattern for client MakeAPI library
Categories
(Webmaker Graveyard :: MakeAPI, defect)
Webmaker Graveyard
MakeAPI
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cade, Assigned: cade)
Details
(Whiteboard: [MakeAPI])
Attachments
(1 file)
:humph pointed out that the Strategy Pattern will suit the needs of this client library well, since we need it to run in the browser and in node.
I will rewrite it to do that.
Assignee | ||
Comment 1•12 years ago
|
||
Separated browser vs node XHR into different strategies, which are chosen at runtime.
Attachment #742048 -
Flags: review?(david.humphrey)
Comment 2•12 years ago
|
||
Comment on attachment 742048 [details] [review]
https://github.com/mozilla/MakeAPI/pull/39
A couple of issues to fix in the code, r+ with those. I haven't tested this in both environments, you might want to get Matt do do an additional review if you think it's necessary.
Attachment #742048 -
Flags: review?(david.humphrey) → review+
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 742048 [details] [review]
https://github.com/mozilla/MakeAPI/pull/39
Fixed up Humph's comments.
:thecount, :mjschranz - Can one (or both) of you test this in Node and in the Browser?
Attachment #742048 -
Flags: review?(scott)
Attachment #742048 -
Flags: review?(schranz.m)
Comment 4•12 years ago
|
||
Comment on attachment 742048 [details] [review]
https://github.com/mozilla/MakeAPI/pull/39
Working server side.
Client side I can only search, but that's expected as an auth issue. Just not obvious when using search.html that this is what is wrong.
Attachment #742048 -
Flags: review?(scott) → review+
Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Scott [:thecount] Downe from comment #4)
> Client side I can only search, but that's expected as an auth issue. Just
> not obvious when using search.html that this is what is wrong.
The search.html page is set up to use the default password in .env.sample
If it's been changed in your .env then you can expect it not to authenticate.
This sounds good to land.
Assignee | ||
Updated•12 years ago
|
Attachment #742048 -
Flags: review?(schranz.m)
Assignee | ||
Comment 6•12 years ago
|
||
Staged on Master: https://github.com/mozilla/MakeAPI/commit/3f63628f6a57f26c56748e6938845b148132eb42
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•