{"action":"created","comment":{"url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/comments/74597375","id":74597375,"diff_hunk":"@@ -0,0 +1,38 @@\n+import { validator, buildValidations } from 'ember-cp-validations';\n+\n+const Validations = buildValidations({","path":"app/validators/preprint-form-validator.js","position":3,"original_position":3,"commit_id":"1eb12223d3e9a99a17a48d8cdeee2634ea3957d5","original_commit_id":"1eb12223d3e9a99a17a48d8cdeee2634ea3957d5","user":{"login":"ml3ha","id":13369827,"avatar_url":"https://avatars.githubusercontent.com/u/13369827?v=3","gravatar_id":"","url":"https://api.github.com/users/ml3ha","html_url":"https://github.com/ml3ha","followers_url":"https://api.github.com/users/ml3ha/followers","following_url":"https://api.github.com/users/ml3ha/following{/other_user}","gists_url":"https://api.github.com/users/ml3ha/gists{/gist_id}","starred_url":"https://api.github.com/users/ml3ha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml3ha/subscriptions","organizations_url":"https://api.github.com/users/ml3ha/orgs","repos_url":"https://api.github.com/users/ml3ha/repos","events_url":"https://api.github.com/users/ml3ha/events{/privacy}","received_events_url":"https://api.github.com/users/ml3ha/received_events","type":"User","site_admin":false},"body":"I defined it in a separate file so it could be used in the controller.","created_at":"2016-08-12T14:13:18Z","updated_at":"2016-08-12T14:13:18Z","html_url":"https://github.com/CenterForOpenScience/ember-preprints/pull/20#discussion_r74597375","pull_request_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/comments/74597375"},"html":{"href":"https://github.com/CenterForOpenScience/ember-preprints/pull/20#discussion_r74597375"},"pull_request":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20","id":80854807,"html_url":"https://github.com/CenterForOpenScience/ember-preprints/pull/20","diff_url":"https://github.com/CenterForOpenScience/ember-preprints/pull/20.diff","patch_url":"https://github.com/CenterForOpenScience/ember-preprints/pull/20.patch","issue_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/20","number":20,"state":"open","locked":false,"title":"Feature/form validations","user":{"login":"ml3ha","id":13369827,"avatar_url":"https://avatars.githubusercontent.com/u/13369827?v=3","gravatar_id":"","url":"https://api.github.com/users/ml3ha","html_url":"https://github.com/ml3ha","followers_url":"https://api.github.com/users/ml3ha/followers","following_url":"https://api.github.com/users/ml3ha/following{/other_user}","gists_url":"https://api.github.com/users/ml3ha/gists{/gist_id}","starred_url":"https://api.github.com/users/ml3ha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml3ha/subscriptions","organizations_url":"https://api.github.com/users/ml3ha/orgs","repos_url":"https://api.github.com/users/ml3ha/repos","events_url":"https://api.github.com/users/ml3ha/events{/privacy}","received_events_url":"https://api.github.com/users/ml3ha/received_events","type":"User","site_admin":false},"body":"Add basic form validations for preprint form basics using ember-cp-validations.\r\n\r\nThese validations are:\r\n\r\n- Title: required, maximum length validator of 300 characters\r\n- Abstract: required, maximum length validator of 5000 characters and min of 20 characters (follows arXiv's style)\r\n- DOI: optional, but if entered, uses a regex to check if the DOI is valid\r\n\r\nFixed a lot of things:\r\n\r\n- Now validation error message only shows up after user focuses on the input field.\r\n- There is a green success highlighting of the input fields after the user's input is valid.","created_at":"2016-08-10T19:42:21Z","updated_at":"2016-08-12T14:13:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b2fab461800b0cce5c945cb509b6182792eec20","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20/commits","review_comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20/comments","review_comment_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/20/comments","statuses_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/statuses/1eb12223d3e9a99a17a48d8cdeee2634ea3957d5","head":{"label":"ml3ha:feature/form-validations","ref":"feature/form-validations","sha":"1eb12223d3e9a99a17a48d8cdeee2634ea3957d5","user":{"login":"ml3ha","id":13369827,"avatar_url":"https://avatars.githubusercontent.com/u/13369827?v=3","gravatar_id":"","url":"https://api.github.com/users/ml3ha","html_url":"https://github.com/ml3ha","followers_url":"https://api.github.com/users/ml3ha/followers","following_url":"https://api.github.com/users/ml3ha/following{/other_user}","gists_url":"https://api.github.com/users/ml3ha/gists{/gist_id}","starred_url":"https://api.github.com/users/ml3ha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml3ha/subscriptions","organizations_url":"https://api.github.com/users/ml3ha/orgs","repos_url":"https://api.github.com/users/ml3ha/repos","events_url":"https://api.github.com/users/ml3ha/events{/privacy}","received_events_url":"https://api.github.com/users/ml3ha/received_events","type":"User","site_admin":false},"repo":{"id":63886675,"name":"ember-preprints","full_name":"ml3ha/ember-preprints","owner":{"login":"ml3ha","id":13369827,"avatar_url":"https://avatars.githubusercontent.com/u/13369827?v=3","gravatar_id":"","url":"https://api.github.com/users/ml3ha","html_url":"https://github.com/ml3ha","followers_url":"https://api.github.com/users/ml3ha/followers","following_url":"https://api.github.com/users/ml3ha/following{/other_user}","gists_url":"https://api.github.com/users/ml3ha/gists{/gist_id}","starred_url":"https://api.github.com/users/ml3ha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ml3ha/subscriptions","organizations_url":"https://api.github.com/users/ml3ha/orgs","repos_url":"https://api.github.com/users/ml3ha/repos","events_url":"https://api.github.com/users/ml3ha/events{/privacy}","received_events_url":"https://api.github.com/users/ml3ha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ml3ha/ember-preprints","description":null,"fork":true,"url":"https://api.github.com/repos/ml3ha/ember-preprints","forks_url":"https://api.github.com/repos/ml3ha/ember-preprints/forks","keys_url":"https://api.github.com/repos/ml3ha/ember-preprints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ml3ha/ember-preprints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ml3ha/ember-preprints/teams","hooks_url":"https://api.github.com/repos/ml3ha/ember-preprints/hooks","issue_events_url":"https://api.github.com/repos/ml3ha/ember-preprints/issues/events{/number}","events_url":"https://api.github.com/repos/ml3ha/ember-preprints/events","assignees_url":"https://api.github.com/repos/ml3ha/ember-preprints/assignees{/user}","branches_url":"https://api.github.com/repos/ml3ha/ember-preprints/branches{/branch}","tags_url":"https://api.github.com/repos/ml3ha/ember-preprints/tags","blobs_url":"https://api.github.com/repos/ml3ha/ember-preprints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ml3ha/ember-preprints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ml3ha/ember-preprints/git/refs{/sha}","trees_url":"https://api.github.com/repos/ml3ha/ember-preprints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ml3ha/ember-preprints/statuses/{sha}","languages_url":"https://api.github.com/repos/ml3ha/ember-preprints/languages","stargazers_url":"https://api.github.com/repos/ml3ha/ember-preprints/stargazers","contributors_url":"https://api.github.com/repos/ml3ha/ember-preprints/contributors","subscribers_url":"https://api.github.com/repos/ml3ha/ember-preprints/subscribers","subscription_url":"https://api.github.com/repos/ml3ha/ember-preprints/subscription","commits_url":"https://api.github.com/repos/ml3ha/ember-preprints/commits{/sha}","git_commits_url":"https://api.github.com/repos/ml3ha/ember-preprints/git/commits{/sha}","comments_url":"https://api.github.com/repos/ml3ha/ember-preprints/comments{/number}","issue_comment_url":"https://api.github.com/repos/ml3ha/ember-preprints/issues/comments{/number}","contents_url":"https://api.github.com/repos/ml3ha/ember-preprints/contents/{+path}","compare_url":"https://api.github.com/repos/ml3ha/ember-preprints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ml3ha/ember-preprints/merges","archive_url":"https://api.github.com/repos/ml3ha/ember-preprints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ml3ha/ember-preprints/downloads","issues_url":"https://api.github.com/repos/ml3ha/ember-preprints/issues{/number}","pulls_url":"https://api.github.com/repos/ml3ha/ember-preprints/pulls{/number}","milestones_url":"https://api.github.com/repos/ml3ha/ember-preprints/milestones{/number}","notifications_url":"https://api.github.com/repos/ml3ha/ember-preprints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ml3ha/ember-preprints/labels{/name}","releases_url":"https://api.github.com/repos/ml3ha/ember-preprints/releases{/id}","deployments_url":"https://api.github.com/repos/ml3ha/ember-preprints/deployments","created_at":"2016-07-21T16:50:39Z","updated_at":"2016-07-21T16:50:41Z","pushed_at":"2016-08-11T20:43:32Z","git_url":"git://github.com/ml3ha/ember-preprints.git","ssh_url":"git@github.com:ml3ha/ember-preprints.git","clone_url":"https://github.com/ml3ha/ember-preprints.git","svn_url":"https://github.com/ml3ha/ember-preprints","homepage":null,"size":8596,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"CenterForOpenScience:develop","ref":"develop","sha":"5f8f38c31e9263597797d22f764ee6e6eb29d6ac","user":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"repo":{"id":63790282,"name":"ember-preprints","full_name":"CenterForOpenScience/ember-preprints","owner":{"login":"CenterForOpenScience","id":3344584,"avatar_url":"https://avatars.githubusercontent.com/u/3344584?v=3","gravatar_id":"","url":"https://api.github.com/users/CenterForOpenScience","html_url":"https://github.com/CenterForOpenScience","followers_url":"https://api.github.com/users/CenterForOpenScience/followers","following_url":"https://api.github.com/users/CenterForOpenScience/following{/other_user}","gists_url":"https://api.github.com/users/CenterForOpenScience/gists{/gist_id}","starred_url":"https://api.github.com/users/CenterForOpenScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CenterForOpenScience/subscriptions","organizations_url":"https://api.github.com/users/CenterForOpenScience/orgs","repos_url":"https://api.github.com/users/CenterForOpenScience/repos","events_url":"https://api.github.com/users/CenterForOpenScience/events{/privacy}","received_events_url":"https://api.github.com/users/CenterForOpenScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CenterForOpenScience/ember-preprints","description":null,"fork":false,"url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints","forks_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/forks","keys_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/teams","hooks_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/hooks","issue_events_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/events{/number}","events_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/events","assignees_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/assignees{/user}","branches_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/branches{/branch}","tags_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/tags","blobs_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/git/refs{/sha}","trees_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/statuses/{sha}","languages_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/languages","stargazers_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/stargazers","contributors_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/contributors","subscribers_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/subscribers","subscription_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/subscription","commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/commits{/sha}","git_commits_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/git/commits{/sha}","comments_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/comments{/number}","issue_comment_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/comments{/number}","contents_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/contents/{+path}","compare_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/merges","archive_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/downloads","issues_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues{/number}","pulls_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls{/number}","milestones_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/milestones{/number}","notifications_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/labels{/name}","releases_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/releases{/id}","deployments_url":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/deployments","created_at":"2016-07-20T14:56:36Z","updated_at":"2016-07-20T14:58:52Z","pushed_at":"2016-08-12T03:13:29Z","git_url":"git://github.com/CenterForOpenScience/ember-preprints.git","ssh_url":"git@github.com:CenterForOpenScience/ember-preprints.git","clone_url":"https://github.com/CenterForOpenScience/ember-preprints.git","svn_url":"https://github.com/CenterForOpenScience/ember-preprints","homepage":null,"size":10489,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":7,"forks":10,"open_issues":7,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20"},"html":{"href":"https://github.com/CenterForOpenScience/ember-preprints/pull/20"},"issue":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/20"},"comments":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/CenterForOpenScience/ember-preprints/statuses/1eb12223d3e9a99a17a48d8cdeee2634ea3957d5"}}}}
{"actor":{"display_login":"ml3ha"}}