Closed Bug 864433 Opened 12 years ago Closed 12 years ago

Use Strategy Pattern for client MakeAPI library

Categories

(Webmaker Graveyard :: MakeAPI, defect)

defect
Not set
normal

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.
Separated browser vs node XHR into different strategies, which are chosen at runtime.
Attachment #742048 - Flags: review?(david.humphrey)
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+
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 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+
(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.
Attachment #742048 - Flags: review?(schranz.m)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: