{"action":"closed","number":213,"pull_request":{"url":"https://api.github.com/repos/opentrials/opentrials/pulls/213","id":73109085,"html_url":"https://github.com/opentrials/opentrials/pull/213","diff_url":"https://github.com/opentrials/opentrials/pull/213.diff","patch_url":"https://github.com/opentrials/opentrials/pull/213.patch","issue_url":"https://api.github.com/repos/opentrials/opentrials/issues/213","number":213,"state":"closed","locked":false,"title":"[#198] Add data categories and allow links to be contributed","user":{"login":"vitorbaptista","id":76945,"avatar_url":"https://avatars.githubusercontent.com/u/76945?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorbaptista","html_url":"https://github.com/vitorbaptista","followers_url":"https://api.github.com/users/vitorbaptista/followers","following_url":"https://api.github.com/users/vitorbaptista/following{/other_user}","gists_url":"https://api.github.com/users/vitorbaptista/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorbaptista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorbaptista/subscriptions","organizations_url":"https://api.github.com/users/vitorbaptista/orgs","repos_url":"https://api.github.com/users/vitorbaptista/repos","events_url":"https://api.github.com/users/vitorbaptista/events{/privacy}","received_events_url":"https://api.github.com/users/vitorbaptista/received_events","type":"User","site_admin":false},"body":"The link allow users to contribute for example blog posts or trials webpages.\r\nIdeally, when a user sends a contribution, she'll either upload a file or add a\r\nlink (or both). However, I've chosen not to require this (for now, at least)\r\nbecause of the added complexity to the form. It's easy to ignore/remove bogus\r\ncontributions as well, and we reduce friction by being more lenient with what\r\nwe receive.\r\n\r\nFor the categories, I've chosen to create another entity and save those to the\r\ndatabase so it's easier to tweak names and add translations in the future. This\r\nhas the drawback of the added complexity, a small performance hit, and making\r\nit harder for us to accept free-form categories if needed later. However, I\r\nthought it was worth the hassle.\r\n\r\nFixes #198","created_at":"2016-06-08T19:51:55Z","updated_at":"2016-06-09T15:08:53Z","closed_at":"2016-06-09T15:08:53Z","merged_at":"2016-06-09T15:08:53Z","merge_commit_sha":"d23891d6e0a2fead753c6386dd7866d15cb09722","assignee":{"login":"roll","id":557395,"avatar_url":"https://avatars.githubusercontent.com/u/557395?v=3","gravatar_id":"","url":"https://api.github.com/users/roll","html_url":"https://github.com/roll","followers_url":"https://api.github.com/users/roll/followers","following_url":"https://api.github.com/users/roll/following{/other_user}","gists_url":"https://api.github.com/users/roll/gists{/gist_id}","starred_url":"https://api.github.com/users/roll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roll/subscriptions","organizations_url":"https://api.github.com/users/roll/orgs","repos_url":"https://api.github.com/users/roll/repos","events_url":"https://api.github.com/users/roll/events{/privacy}","received_events_url":"https://api.github.com/users/roll/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/opentrials/opentrials/pulls/213/commits","review_comments_url":"https://api.github.com/repos/opentrials/opentrials/pulls/213/comments","review_comment_url":"https://api.github.com/repos/opentrials/opentrials/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opentrials/opentrials/issues/213/comments","statuses_url":"https://api.github.com/repos/opentrials/opentrials/statuses/4145eb44e782338b876bfe2fb5c10ed3818f9a48","head":{"label":"opentrials:add-links-and-categories-to-data-contributions","ref":"add-links-and-categories-to-data-contributions","sha":"4145eb44e782338b876bfe2fb5c10ed3818f9a48","user":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"repo":{"id":50168898,"name":"opentrials","full_name":"opentrials/opentrials","owner":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentrials/opentrials","description":"OpenTrials is an app to explore, discover, and submit information on clinical trials.","fork":false,"url":"https://api.github.com/repos/opentrials/opentrials","forks_url":"https://api.github.com/repos/opentrials/opentrials/forks","keys_url":"https://api.github.com/repos/opentrials/opentrials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentrials/opentrials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentrials/opentrials/teams","hooks_url":"https://api.github.com/repos/opentrials/opentrials/hooks","issue_events_url":"https://api.github.com/repos/opentrials/opentrials/issues/events{/number}","events_url":"https://api.github.com/repos/opentrials/opentrials/events","assignees_url":"https://api.github.com/repos/opentrials/opentrials/assignees{/user}","branches_url":"https://api.github.com/repos/opentrials/opentrials/branches{/branch}","tags_url":"https://api.github.com/repos/opentrials/opentrials/tags","blobs_url":"https://api.github.com/repos/opentrials/opentrials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentrials/opentrials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentrials/opentrials/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentrials/opentrials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentrials/opentrials/statuses/{sha}","languages_url":"https://api.github.com/repos/opentrials/opentrials/languages","stargazers_url":"https://api.github.com/repos/opentrials/opentrials/stargazers","contributors_url":"https://api.github.com/repos/opentrials/opentrials/contributors","subscribers_url":"https://api.github.com/repos/opentrials/opentrials/subscribers","subscription_url":"https://api.github.com/repos/opentrials/opentrials/subscription","commits_url":"https://api.github.com/repos/opentrials/opentrials/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentrials/opentrials/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentrials/opentrials/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentrials/opentrials/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentrials/opentrials/contents/{+path}","compare_url":"https://api.github.com/repos/opentrials/opentrials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentrials/opentrials/merges","archive_url":"https://api.github.com/repos/opentrials/opentrials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentrials/opentrials/downloads","issues_url":"https://api.github.com/repos/opentrials/opentrials/issues{/number}","pulls_url":"https://api.github.com/repos/opentrials/opentrials/pulls{/number}","milestones_url":"https://api.github.com/repos/opentrials/opentrials/milestones{/number}","notifications_url":"https://api.github.com/repos/opentrials/opentrials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentrials/opentrials/labels{/name}","releases_url":"https://api.github.com/repos/opentrials/opentrials/releases{/id}","deployments_url":"https://api.github.com/repos/opentrials/opentrials/deployments","created_at":"2016-01-22T08:40:21Z","updated_at":"2016-06-08T10:21:03Z","pushed_at":"2016-06-09T15:08:53Z","git_url":"git://github.com/opentrials/opentrials.git","ssh_url":"git@github.com:opentrials/opentrials.git","clone_url":"https://github.com/opentrials/opentrials.git","svn_url":"https://github.com/opentrials/opentrials","homepage":"http://explorer.opentrials.net/","size":970,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":80,"forks":2,"open_issues":80,"watchers":6,"default_branch":"master"}},"base":{"label":"opentrials:master","ref":"master","sha":"2eda32ff2d90cbf0451e4c2cc7a6faa425a9f51e","user":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"repo":{"id":50168898,"name":"opentrials","full_name":"opentrials/opentrials","owner":{"login":"opentrials","id":13900836,"avatar_url":"https://avatars.githubusercontent.com/u/13900836?v=3","gravatar_id":"","url":"https://api.github.com/users/opentrials","html_url":"https://github.com/opentrials","followers_url":"https://api.github.com/users/opentrials/followers","following_url":"https://api.github.com/users/opentrials/following{/other_user}","gists_url":"https://api.github.com/users/opentrials/gists{/gist_id}","starred_url":"https://api.github.com/users/opentrials/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opentrials/subscriptions","organizations_url":"https://api.github.com/users/opentrials/orgs","repos_url":"https://api.github.com/users/opentrials/repos","events_url":"https://api.github.com/users/opentrials/events{/privacy}","received_events_url":"https://api.github.com/users/opentrials/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opentrials/opentrials","description":"OpenTrials is an app to explore, discover, and submit information on clinical trials.","fork":false,"url":"https://api.github.com/repos/opentrials/opentrials","forks_url":"https://api.github.com/repos/opentrials/opentrials/forks","keys_url":"https://api.github.com/repos/opentrials/opentrials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opentrials/opentrials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opentrials/opentrials/teams","hooks_url":"https://api.github.com/repos/opentrials/opentrials/hooks","issue_events_url":"https://api.github.com/repos/opentrials/opentrials/issues/events{/number}","events_url":"https://api.github.com/repos/opentrials/opentrials/events","assignees_url":"https://api.github.com/repos/opentrials/opentrials/assignees{/user}","branches_url":"https://api.github.com/repos/opentrials/opentrials/branches{/branch}","tags_url":"https://api.github.com/repos/opentrials/opentrials/tags","blobs_url":"https://api.github.com/repos/opentrials/opentrials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opentrials/opentrials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opentrials/opentrials/git/refs{/sha}","trees_url":"https://api.github.com/repos/opentrials/opentrials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opentrials/opentrials/statuses/{sha}","languages_url":"https://api.github.com/repos/opentrials/opentrials/languages","stargazers_url":"https://api.github.com/repos/opentrials/opentrials/stargazers","contributors_url":"https://api.github.com/repos/opentrials/opentrials/contributors","subscribers_url":"https://api.github.com/repos/opentrials/opentrials/subscribers","subscription_url":"https://api.github.com/repos/opentrials/opentrials/subscription","commits_url":"https://api.github.com/repos/opentrials/opentrials/commits{/sha}","git_commits_url":"https://api.github.com/repos/opentrials/opentrials/git/commits{/sha}","comments_url":"https://api.github.com/repos/opentrials/opentrials/comments{/number}","issue_comment_url":"https://api.github.com/repos/opentrials/opentrials/issues/comments{/number}","contents_url":"https://api.github.com/repos/opentrials/opentrials/contents/{+path}","compare_url":"https://api.github.com/repos/opentrials/opentrials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opentrials/opentrials/merges","archive_url":"https://api.github.com/repos/opentrials/opentrials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opentrials/opentrials/downloads","issues_url":"https://api.github.com/repos/opentrials/opentrials/issues{/number}","pulls_url":"https://api.github.com/repos/opentrials/opentrials/pulls{/number}","milestones_url":"https://api.github.com/repos/opentrials/opentrials/milestones{/number}","notifications_url":"https://api.github.com/repos/opentrials/opentrials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opentrials/opentrials/labels{/name}","releases_url":"https://api.github.com/repos/opentrials/opentrials/releases{/id}","deployments_url":"https://api.github.com/repos/opentrials/opentrials/deployments","created_at":"2016-01-22T08:40:21Z","updated_at":"2016-06-08T10:21:03Z","pushed_at":"2016-06-09T15:08:53Z","git_url":"git://github.com/opentrials/opentrials.git","ssh_url":"git@github.com:opentrials/opentrials.git","clone_url":"https://github.com/opentrials/opentrials.git","svn_url":"https://github.com/opentrials/opentrials","homepage":"http://explorer.opentrials.net/","size":970,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":80,"forks":2,"open_issues":80,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opentrials/opentrials/pulls/213"},"html":{"href":"https://github.com/opentrials/opentrials/pull/213"},"issue":{"href":"https://api.github.com/repos/opentrials/opentrials/issues/213"},"comments":{"href":"https://api.github.com/repos/opentrials/opentrials/issues/213/comments"},"review_comments":{"href":"https://api.github.com/repos/opentrials/opentrials/pulls/213/comments"},"review_comment":{"href":"https://api.github.com/repos/opentrials/opentrials/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opentrials/opentrials/pulls/213/commits"},"statuses":{"href":"https://api.github.com/repos/opentrials/opentrials/statuses/4145eb44e782338b876bfe2fb5c10ed3818f9a48"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"vitorbaptista","id":76945,"avatar_url":"https://avatars.githubusercontent.com/u/76945?v=3","gravatar_id":"","url":"https://api.github.com/users/vitorbaptista","html_url":"https://github.com/vitorbaptista","followers_url":"https://api.github.com/users/vitorbaptista/followers","following_url":"https://api.github.com/users/vitorbaptista/following{/other_user}","gists_url":"https://api.github.com/users/vitorbaptista/gists{/gist_id}","starred_url":"https://api.github.com/users/vitorbaptista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitorbaptista/subscriptions","organizations_url":"https://api.github.com/users/vitorbaptista/orgs","repos_url":"https://api.github.com/users/vitorbaptista/repos","events_url":"https://api.github.com/users/vitorbaptista/events{/privacy}","received_events_url":"https://api.github.com/users/vitorbaptista/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"commits":1,"additions":244,"deletions":38,"changed_files":13}}
{"actor":{"display_login":"vitorbaptista"}}