{"action":"created","comment":{"url":"https://api.github.com/repos/Tahi-project/tahi/pulls/comments/25296047","id":25296047,"diff_hunk":"@@ -1,8 +1,77 @@\n import Ember from 'ember';\n \n+/**\n+  ## How to Use\n+\n+  Anywhere in your template:\n+\n+  ```\n+  {{flash-messages}}\n+  ```\n+\n+  If you need a custom class wrapped around your messages:\n+\n+  ```\n+  {{flash-messages classNames=\"custom-classes-here\"}}\n+  ```\n+\n+  ### In your Route or Controller from an Ember Data save:\n+\n+  ```\n+  actions: {\n+    save: function() {\n+      this.get('model').save().then(\n+        function() {},\n+        (response) => {\n+          this.flash.displayErrorMessagesFromResponse(response);\n+        }\n+      );\n+    }\n+  }\n+  ```\n+\n+  To set a message manually from Controller or Route:\n+\n+  ```\n+  this.flash.displayMessage('success', 'You win');\n+  ```\n+\n+  The messages will be cleared out on the next route transition or overlay close.\n+  If you need to clear them out manually:\n+\n+  ```\n+  this.flash.clearAllMessages();\n+  ```\n+\n+  ## How it Works\n+\n+  A singleton object is created and injected into all Routes and Controllers\n+  from an Ember Initializer as the property `flash`.\n+  When `displayMessage` or `displayErrorMessagesFromResponse` is called, all\n+  we're doing is pushing to an array of messages that are displayed in the templates.","path":"client/app/services/flash.js","position":51,"original_position":51,"commit_id":"d7976e932bf59fb85532671d1ca51b167f37b37d","original_commit_id":"d7976e932bf59fb85532671d1ca51b167f37b37d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-02-24T21:47:14Z","updated_at":"2015-02-24T21:47:14Z","html_url":"https://github.com/Tahi-project/tahi/pull/826#discussion_r25296047","pull_request_url":"https://api.github.com/repos/Tahi-project/tahi/pulls/826","_links":{"self":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/comments/25296047"},"html":{"href":"https://github.com/Tahi-project/tahi/pull/826#discussion_r25296047"},"pull_request":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/826"}}},"pull_request":{"url":"https://api.github.com/repos/Tahi-project/tahi/pulls/826","id":29022536,"html_url":"https://github.com/Tahi-project/tahi/pull/826","diff_url":"https://github.com/Tahi-project/tahi/pull/826.diff","patch_url":"https://github.com/Tahi-project/tahi/pull/826.patch","issue_url":"https://api.github.com/repos/Tahi-project/tahi/issues/826","number":826,"state":"open","locked":false,"title":"Upgrade to Ember 1.10","user":{"login":"nummi","id":3692,"avatar_url":"https://avatars.githubusercontent.com/u/3692?v=3","gravatar_id":"","url":"https://api.github.com/users/nummi","html_url":"https://github.com/nummi","followers_url":"https://api.github.com/users/nummi/followers","following_url":"https://api.github.com/users/nummi/following{/other_user}","gists_url":"https://api.github.com/users/nummi/gists{/gist_id}","starred_url":"https://api.github.com/users/nummi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nummi/subscriptions","organizations_url":"https://api.github.com/users/nummi/orgs","repos_url":"https://api.github.com/users/nummi/repos","events_url":"https://api.github.com/users/nummi/events{/privacy}","received_events_url":"https://api.github.com/users/nummi/received_events","type":"User","site_admin":false},"body":":boom: :boom: :boom:\r\n\r\nWhen this is merged and deployed:\r\nhttps://github.com/Tahi-project/tahi-plos-authors-card needs the `ember-1-10` branch merged and deployed as well.\r\n\r\n:boom: :boom: :boom:","created_at":"2015-02-10T16:41:02Z","updated_at":"2015-02-24T21:47:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb8a3cd323456a4daacd66ae5c9776dd86f68e76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tahi-project/tahi/pulls/826/commits","review_comments_url":"https://api.github.com/repos/Tahi-project/tahi/pulls/826/comments","review_comment_url":"https://api.github.com/repos/Tahi-project/tahi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tahi-project/tahi/issues/826/comments","statuses_url":"https://api.github.com/repos/Tahi-project/tahi/statuses/d7976e932bf59fb85532671d1ca51b167f37b37d","head":{"label":"Tahi-project:ember-1-10","ref":"ember-1-10","sha":"d7976e932bf59fb85532671d1ca51b167f37b37d","user":{"login":"Tahi-project","id":5808884,"avatar_url":"https://avatars.githubusercontent.com/u/5808884?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahi-project","html_url":"https://github.com/Tahi-project","followers_url":"https://api.github.com/users/Tahi-project/followers","following_url":"https://api.github.com/users/Tahi-project/following{/other_user}","gists_url":"https://api.github.com/users/Tahi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahi-project/subscriptions","organizations_url":"https://api.github.com/users/Tahi-project/orgs","repos_url":"https://api.github.com/users/Tahi-project/repos","events_url":"https://api.github.com/users/Tahi-project/events{/privacy}","received_events_url":"https://api.github.com/users/Tahi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":13939437,"name":"tahi","full_name":"Tahi-project/tahi","owner":{"login":"Tahi-project","id":5808884,"avatar_url":"https://avatars.githubusercontent.com/u/5808884?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahi-project","html_url":"https://github.com/Tahi-project","followers_url":"https://api.github.com/users/Tahi-project/followers","following_url":"https://api.github.com/users/Tahi-project/following{/other_user}","gists_url":"https://api.github.com/users/Tahi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahi-project/subscriptions","organizations_url":"https://api.github.com/users/Tahi-project/orgs","repos_url":"https://api.github.com/users/Tahi-project/repos","events_url":"https://api.github.com/users/Tahi-project/events{/privacy}","received_events_url":"https://api.github.com/users/Tahi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tahi-project/tahi","description":"Modern workflow platform","fork":false,"url":"https://api.github.com/repos/Tahi-project/tahi","forks_url":"https://api.github.com/repos/Tahi-project/tahi/forks","keys_url":"https://api.github.com/repos/Tahi-project/tahi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tahi-project/tahi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tahi-project/tahi/teams","hooks_url":"https://api.github.com/repos/Tahi-project/tahi/hooks","issue_events_url":"https://api.github.com/repos/Tahi-project/tahi/issues/events{/number}","events_url":"https://api.github.com/repos/Tahi-project/tahi/events","assignees_url":"https://api.github.com/repos/Tahi-project/tahi/assignees{/user}","branches_url":"https://api.github.com/repos/Tahi-project/tahi/branches{/branch}","tags_url":"https://api.github.com/repos/Tahi-project/tahi/tags","blobs_url":"https://api.github.com/repos/Tahi-project/tahi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tahi-project/tahi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tahi-project/tahi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tahi-project/tahi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tahi-project/tahi/statuses/{sha}","languages_url":"https://api.github.com/repos/Tahi-project/tahi/languages","stargazers_url":"https://api.github.com/repos/Tahi-project/tahi/stargazers","contributors_url":"https://api.github.com/repos/Tahi-project/tahi/contributors","subscribers_url":"https://api.github.com/repos/Tahi-project/tahi/subscribers","subscription_url":"https://api.github.com/repos/Tahi-project/tahi/subscription","commits_url":"https://api.github.com/repos/Tahi-project/tahi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tahi-project/tahi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tahi-project/tahi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tahi-project/tahi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tahi-project/tahi/contents/{+path}","compare_url":"https://api.github.com/repos/Tahi-project/tahi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tahi-project/tahi/merges","archive_url":"https://api.github.com/repos/Tahi-project/tahi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tahi-project/tahi/downloads","issues_url":"https://api.github.com/repos/Tahi-project/tahi/issues{/number}","pulls_url":"https://api.github.com/repos/Tahi-project/tahi/pulls{/number}","milestones_url":"https://api.github.com/repos/Tahi-project/tahi/milestones{/number}","notifications_url":"https://api.github.com/repos/Tahi-project/tahi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tahi-project/tahi/labels{/name}","releases_url":"https://api.github.com/repos/Tahi-project/tahi/releases{/id}","created_at":"2013-10-28T21:42:53Z","updated_at":"2015-02-24T21:28:04Z","pushed_at":"2015-02-24T21:46:17Z","git_url":"git://github.com/Tahi-project/tahi.git","ssh_url":"git@github.com:Tahi-project/tahi.git","clone_url":"https://github.com/Tahi-project/tahi.git","svn_url":"https://github.com/Tahi-project/tahi","homepage":"","size":146344,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":14,"forks":7,"open_issues":14,"watchers":18,"default_branch":"master"}},"base":{"label":"Tahi-project:master","ref":"master","sha":"9301015c2a0c06446f7047ef9170915428ead844","user":{"login":"Tahi-project","id":5808884,"avatar_url":"https://avatars.githubusercontent.com/u/5808884?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahi-project","html_url":"https://github.com/Tahi-project","followers_url":"https://api.github.com/users/Tahi-project/followers","following_url":"https://api.github.com/users/Tahi-project/following{/other_user}","gists_url":"https://api.github.com/users/Tahi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahi-project/subscriptions","organizations_url":"https://api.github.com/users/Tahi-project/orgs","repos_url":"https://api.github.com/users/Tahi-project/repos","events_url":"https://api.github.com/users/Tahi-project/events{/privacy}","received_events_url":"https://api.github.com/users/Tahi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":13939437,"name":"tahi","full_name":"Tahi-project/tahi","owner":{"login":"Tahi-project","id":5808884,"avatar_url":"https://avatars.githubusercontent.com/u/5808884?v=3","gravatar_id":"","url":"https://api.github.com/users/Tahi-project","html_url":"https://github.com/Tahi-project","followers_url":"https://api.github.com/users/Tahi-project/followers","following_url":"https://api.github.com/users/Tahi-project/following{/other_user}","gists_url":"https://api.github.com/users/Tahi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/Tahi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tahi-project/subscriptions","organizations_url":"https://api.github.com/users/Tahi-project/orgs","repos_url":"https://api.github.com/users/Tahi-project/repos","events_url":"https://api.github.com/users/Tahi-project/events{/privacy}","received_events_url":"https://api.github.com/users/Tahi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tahi-project/tahi","description":"Modern workflow platform","fork":false,"url":"https://api.github.com/repos/Tahi-project/tahi","forks_url":"https://api.github.com/repos/Tahi-project/tahi/forks","keys_url":"https://api.github.com/repos/Tahi-project/tahi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tahi-project/tahi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tahi-project/tahi/teams","hooks_url":"https://api.github.com/repos/Tahi-project/tahi/hooks","issue_events_url":"https://api.github.com/repos/Tahi-project/tahi/issues/events{/number}","events_url":"https://api.github.com/repos/Tahi-project/tahi/events","assignees_url":"https://api.github.com/repos/Tahi-project/tahi/assignees{/user}","branches_url":"https://api.github.com/repos/Tahi-project/tahi/branches{/branch}","tags_url":"https://api.github.com/repos/Tahi-project/tahi/tags","blobs_url":"https://api.github.com/repos/Tahi-project/tahi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tahi-project/tahi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tahi-project/tahi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tahi-project/tahi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tahi-project/tahi/statuses/{sha}","languages_url":"https://api.github.com/repos/Tahi-project/tahi/languages","stargazers_url":"https://api.github.com/repos/Tahi-project/tahi/stargazers","contributors_url":"https://api.github.com/repos/Tahi-project/tahi/contributors","subscribers_url":"https://api.github.com/repos/Tahi-project/tahi/subscribers","subscription_url":"https://api.github.com/repos/Tahi-project/tahi/subscription","commits_url":"https://api.github.com/repos/Tahi-project/tahi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tahi-project/tahi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tahi-project/tahi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tahi-project/tahi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tahi-project/tahi/contents/{+path}","compare_url":"https://api.github.com/repos/Tahi-project/tahi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tahi-project/tahi/merges","archive_url":"https://api.github.com/repos/Tahi-project/tahi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tahi-project/tahi/downloads","issues_url":"https://api.github.com/repos/Tahi-project/tahi/issues{/number}","pulls_url":"https://api.github.com/repos/Tahi-project/tahi/pulls{/number}","milestones_url":"https://api.github.com/repos/Tahi-project/tahi/milestones{/number}","notifications_url":"https://api.github.com/repos/Tahi-project/tahi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tahi-project/tahi/labels{/name}","releases_url":"https://api.github.com/repos/Tahi-project/tahi/releases{/id}","created_at":"2013-10-28T21:42:53Z","updated_at":"2015-02-24T21:28:04Z","pushed_at":"2015-02-24T21:46:17Z","git_url":"git://github.com/Tahi-project/tahi.git","ssh_url":"git@github.com:Tahi-project/tahi.git","clone_url":"https://github.com/Tahi-project/tahi.git","svn_url":"https://github.com/Tahi-project/tahi","homepage":"","size":146344,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":14,"forks":7,"open_issues":14,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/826"},"html":{"href":"https://github.com/Tahi-project/tahi/pull/826"},"issue":{"href":"https://api.github.com/repos/Tahi-project/tahi/issues/826"},"comments":{"href":"https://api.github.com/repos/Tahi-project/tahi/issues/826/comments"},"review_comments":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/826/comments"},"review_comment":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tahi-project/tahi/pulls/826/commits"},"statuses":{"href":"https://api.github.com/repos/Tahi-project/tahi/statuses/d7976e932bf59fb85532671d1ca51b167f37b37d"}}}}