{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/guides/issues/342","labels_url":"https://api.github.com/repos/thoughtbot/guides/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/guides/issues/342/comments","events_url":"https://api.github.com/repos/thoughtbot/guides/issues/342/events","html_url":"https://github.com/thoughtbot/guides/pull/342","id":92473228,"number":342,"title":"Ember: Prefer `ember-fetch` over `ic-ajax`","user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-01T20:04:21Z","updated_at":"2015-07-02T16:50:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/guides/pulls/342","html_url":"https://github.com/thoughtbot/guides/pull/342","diff_url":"https://github.com/thoughtbot/guides/pull/342.diff","patch_url":"https://github.com/thoughtbot/guides/pull/342.patch"},"body":"Stefan is looking for people to try this out and give feedback.\r\nWe have enough Ember projects that we could contribute\r\ngood information to this RFC and the spec.\r\n\r\nThere isn't much risk to establishing this preference\r\nbecause it's being polyfilled so it will work wherever.\r\n\r\nThe gain is that we will be able to\r\nprovide valuable feedback to the ember community.\r\nAssuming this eventually get's merged we will also be ahead\r\nof the curve and not need to update existing apps\r\nto accommodate it.\r\n\r\n> What is ember-fetch?\r\n>\r\n> * a wrapper around: https://github.com/github/fetch\r\n> * which is a partial polyfil for  https://fetch.spec.whatwg.org/\r\n> * more info: https://github.com/stefanpenner/ember-fetch\r\n> * never falls back to native (so always works the same, and works with pretender)\r\n>\r\n> Why is this discussion happening now and not earlier?\r\n>\r\n> * ember 2 no longer supports IE8, and github/fetch is IE9+\r\n> * fetch is a spec primitive of the DOM, it stands to reason we should prefer that over $.ajax\r\n> * maybe we can catch issues to help adapt/improve/add to the spec\r\n> * $.ajax is crazy quirky\r\n> * uploads have progress in the request object (unsure if the polifill does this or not actually, need to verify)\r\n>\r\n> Cons:\r\n>\r\n> * its not $.ajax which, although not a spec thing, is basically a primitive many devs are used to\r\n> * features like `$.ajaxPrefilter` are not obviously a thing in `fetch` (maybe some other approach ?)\r\n> * .... ?\r\n>\r\n>\r\n> Noop:\r\n>\r\n> * still no formal cancelation\r\n>\r\n> RFC: https://github.com/ember-cli/rfcs/issues/19"},"comment":{"url":"https://api.github.com/repos/thoughtbot/guides/issues/comments/118091024","html_url":"https://github.com/thoughtbot/guides/pull/342#issuecomment-118091024","issue_url":"https://api.github.com/repos/thoughtbot/guides/issues/342","id":118091024,"user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T16:50:19Z","updated_at":"2015-07-02T16:50:19Z","body":"LGTM"}}