{"action":"created","comment":{"url":"https://api.github.com/repos/theodi/octopub/pulls/comments/132233692","pull_request_review_id":55292791,"id":132233692,"diff_hunk":"@@ -1,19 +1,20 @@\n class DatasetFileSchemaService\n \n-  def initialize(schema_name, description, url_in_s3, user, owner_username = user.name)\n+  def initialize(schema_name, description, url_in_s3, user, owner_username = user.name, restricted = true)\n     @schema_name = schema_name\n     @description = description\n     @url_in_s3 = url_in_s3\n     @user = user\n     @owner_username = owner_username\n+    @restricted = restricted","path":"app/services/dataset_file_schema_service.rb","position":10,"original_position":10,"commit_id":"39dad43caa2da7dc78cb4b44ccdc8421ecc19a7d","original_commit_id":"39dad43caa2da7dc78cb4b44ccdc8421ecc19a7d","user":{"login":"quadrophobiac","id":1039017,"avatar_url":"https://avatars0.githubusercontent.com/u/1039017?v=4","gravatar_id":"","url":"https://api.github.com/users/quadrophobiac","html_url":"https://github.com/quadrophobiac","followers_url":"https://api.github.com/users/quadrophobiac/followers","following_url":"https://api.github.com/users/quadrophobiac/following{/other_user}","gists_url":"https://api.github.com/users/quadrophobiac/gists{/gist_id}","starred_url":"https://api.github.com/users/quadrophobiac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quadrophobiac/subscriptions","organizations_url":"https://api.github.com/users/quadrophobiac/orgs","repos_url":"https://api.github.com/users/quadrophobiac/repos","events_url":"https://api.github.com/users/quadrophobiac/events{/privacy}","received_events_url":"https://api.github.com/users/quadrophobiac/received_events","type":"User","site_admin":false},"body":"does this mean schemas already in the database will have the restricted flag disabled by default?\r\n","created_at":"2017-08-09T16:21:41Z","updated_at":"2017-08-09T16:21:41Z","html_url":"https://github.com/theodi/octopub/pull/548#discussion_r132233692","pull_request_url":"https://api.github.com/repos/theodi/octopub/pulls/548","_links":{"self":{"href":"https://api.github.com/repos/theodi/octopub/pulls/comments/132233692"},"html":{"href":"https://github.com/theodi/octopub/pull/548#discussion_r132233692"},"pull_request":{"href":"https://api.github.com/repos/theodi/octopub/pulls/548"}}},"pull_request":{"url":"https://api.github.com/repos/theodi/octopub/pulls/548","id":134721870,"html_url":"https://github.com/theodi/octopub/pull/548","diff_url":"https://github.com/theodi/octopub/pull/548.diff","patch_url":"https://github.com/theodi/octopub/pull/548.patch","issue_url":"https://api.github.com/repos/theodi/octopub/issues/548","number":548,"state":"open","locked":false,"title":"[WIP] Public schema support","user":{"login":"Floppy","id":3565,"avatar_url":"https://avatars0.githubusercontent.com/u/3565?v=4","gravatar_id":"","url":"https://api.github.com/users/Floppy","html_url":"https://github.com/Floppy","followers_url":"https://api.github.com/users/Floppy/followers","following_url":"https://api.github.com/users/Floppy/following{/other_user}","gists_url":"https://api.github.com/users/Floppy/gists{/gist_id}","starred_url":"https://api.github.com/users/Floppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floppy/subscriptions","organizations_url":"https://api.github.com/users/Floppy/orgs","repos_url":"https://api.github.com/users/Floppy/repos","events_url":"https://api.github.com/users/Floppy/events{/privacy}","received_events_url":"https://api.github.com/users/Floppy/received_events","type":"User","site_admin":false},"body":"This PR fixes #407.\r\n\r\nChanges proposed in this pull request:\r\n- Added a `restricted` flag for `DatasetFileSchema`. Named to match the flag in `Dataset`.\r\n\r\nMore to come...","created_at":"2017-08-08T17:59:21Z","updated_at":"2017-08-09T16:21:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cdf978873fb2d3d863660e097364d24f5530fbc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/theodi/octopub/milestones/4","html_url":"https://github.com/theodi/octopub/milestone/4","labels_url":"https://api.github.com/repos/theodi/octopub/milestones/4/labels","id":2471857,"number":4,"title":"FSA phase 3 wrapup","description":"","creator":{"login":"Floppy","id":3565,"avatar_url":"https://avatars0.githubusercontent.com/u/3565?v=4","gravatar_id":"","url":"https://api.github.com/users/Floppy","html_url":"https://github.com/Floppy","followers_url":"https://api.github.com/users/Floppy/followers","following_url":"https://api.github.com/users/Floppy/following{/other_user}","gists_url":"https://api.github.com/users/Floppy/gists{/gist_id}","starred_url":"https://api.github.com/users/Floppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Floppy/subscriptions","organizations_url":"https://api.github.com/users/Floppy/orgs","repos_url":"https://api.github.com/users/Floppy/repos","events_url":"https://api.github.com/users/Floppy/events{/privacy}","received_events_url":"https://api.github.com/users/Floppy/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":8,"state":"open","created_at":"2017-04-21T11:45:30Z","updated_at":"2017-08-09T16:17:58Z","due_on":"2017-08-16T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/theodi/octopub/pulls/548/commits","review_comments_url":"https://api.github.com/repos/theodi/octopub/pulls/548/comments","review_comment_url":"https://api.github.com/repos/theodi/octopub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theodi/octopub/issues/548/comments","statuses_url":"https://api.github.com/repos/theodi/octopub/statuses/39dad43caa2da7dc78cb4b44ccdc8421ecc19a7d","head":{"label":"theodi:public-schemas","ref":"public-schemas","sha":"39dad43caa2da7dc78cb4b44ccdc8421ecc19a7d","user":{"login":"theodi","id":2492770,"avatar_url":"https://avatars0.githubusercontent.com/u/2492770?v=4","gravatar_id":"","url":"https://api.github.com/users/theodi","html_url":"https://github.com/theodi","followers_url":"https://api.github.com/users/theodi/followers","following_url":"https://api.github.com/users/theodi/following{/other_user}","gists_url":"https://api.github.com/users/theodi/gists{/gist_id}","starred_url":"https://api.github.com/users/theodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodi/subscriptions","organizations_url":"https://api.github.com/users/theodi/orgs","repos_url":"https://api.github.com/users/theodi/repos","events_url":"https://api.github.com/users/theodi/events{/privacy}","received_events_url":"https://api.github.com/users/theodi/received_events","type":"Organization","site_admin":false},"repo":{"id":24842952,"name":"octopub","full_name":"theodi/octopub","owner":{"login":"theodi","id":2492770,"avatar_url":"https://avatars0.githubusercontent.com/u/2492770?v=4","gravatar_id":"","url":"https://api.github.com/users/theodi","html_url":"https://github.com/theodi","followers_url":"https://api.github.com/users/theodi/followers","following_url":"https://api.github.com/users/theodi/following{/other_user}","gists_url":"https://api.github.com/users/theodi/gists{/gist_id}","starred_url":"https://api.github.com/users/theodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodi/subscriptions","organizations_url":"https://api.github.com/users/theodi/orgs","repos_url":"https://api.github.com/users/theodi/repos","events_url":"https://api.github.com/users/theodi/events{/privacy}","received_events_url":"https://api.github.com/users/theodi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theodi/octopub","description":"Publish data easily, quickly and correctly","fork":false,"url":"https://api.github.com/repos/theodi/octopub","forks_url":"https://api.github.com/repos/theodi/octopub/forks","keys_url":"https://api.github.com/repos/theodi/octopub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theodi/octopub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theodi/octopub/teams","hooks_url":"https://api.github.com/repos/theodi/octopub/hooks","issue_events_url":"https://api.github.com/repos/theodi/octopub/issues/events{/number}","events_url":"https://api.github.com/repos/theodi/octopub/events","assignees_url":"https://api.github.com/repos/theodi/octopub/assignees{/user}","branches_url":"https://api.github.com/repos/theodi/octopub/branches{/branch}","tags_url":"https://api.github.com/repos/theodi/octopub/tags","blobs_url":"https://api.github.com/repos/theodi/octopub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theodi/octopub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theodi/octopub/git/refs{/sha}","trees_url":"https://api.github.com/repos/theodi/octopub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theodi/octopub/statuses/{sha}","languages_url":"https://api.github.com/repos/theodi/octopub/languages","stargazers_url":"https://api.github.com/repos/theodi/octopub/stargazers","contributors_url":"https://api.github.com/repos/theodi/octopub/contributors","subscribers_url":"https://api.github.com/repos/theodi/octopub/subscribers","subscription_url":"https://api.github.com/repos/theodi/octopub/subscription","commits_url":"https://api.github.com/repos/theodi/octopub/commits{/sha}","git_commits_url":"https://api.github.com/repos/theodi/octopub/git/commits{/sha}","comments_url":"https://api.github.com/repos/theodi/octopub/comments{/number}","issue_comment_url":"https://api.github.com/repos/theodi/octopub/issues/comments{/number}","contents_url":"https://api.github.com/repos/theodi/octopub/contents/{+path}","compare_url":"https://api.github.com/repos/theodi/octopub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theodi/octopub/merges","archive_url":"https://api.github.com/repos/theodi/octopub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theodi/octopub/downloads","issues_url":"https://api.github.com/repos/theodi/octopub/issues{/number}","pulls_url":"https://api.github.com/repos/theodi/octopub/pulls{/number}","milestones_url":"https://api.github.com/repos/theodi/octopub/milestones{/number}","notifications_url":"https://api.github.com/repos/theodi/octopub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theodi/octopub/labels{/name}","releases_url":"https://api.github.com/repos/theodi/octopub/releases{/id}","deployments_url":"https://api.github.com/repos/theodi/octopub/deployments","created_at":"2014-10-06T11:18:25Z","updated_at":"2017-08-04T05:04:21Z","pushed_at":"2017-08-09T16:18:20Z","git_url":"git://github.com/theodi/octopub.git","ssh_url":"git@github.com:theodi/octopub.git","clone_url":"https://github.com/theodi/octopub.git","svn_url":"https://github.com/theodi/octopub","homepage":"https://octopub.io/","size":2842,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":79,"forks":7,"open_issues":79,"watchers":13,"default_branch":"master"}},"base":{"label":"theodi:master","ref":"master","sha":"f14eea94d520acfaadc49b909929a79450e37eaa","user":{"login":"theodi","id":2492770,"avatar_url":"https://avatars0.githubusercontent.com/u/2492770?v=4","gravatar_id":"","url":"https://api.github.com/users/theodi","html_url":"https://github.com/theodi","followers_url":"https://api.github.com/users/theodi/followers","following_url":"https://api.github.com/users/theodi/following{/other_user}","gists_url":"https://api.github.com/users/theodi/gists{/gist_id}","starred_url":"https://api.github.com/users/theodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodi/subscriptions","organizations_url":"https://api.github.com/users/theodi/orgs","repos_url":"https://api.github.com/users/theodi/repos","events_url":"https://api.github.com/users/theodi/events{/privacy}","received_events_url":"https://api.github.com/users/theodi/received_events","type":"Organization","site_admin":false},"repo":{"id":24842952,"name":"octopub","full_name":"theodi/octopub","owner":{"login":"theodi","id":2492770,"avatar_url":"https://avatars0.githubusercontent.com/u/2492770?v=4","gravatar_id":"","url":"https://api.github.com/users/theodi","html_url":"https://github.com/theodi","followers_url":"https://api.github.com/users/theodi/followers","following_url":"https://api.github.com/users/theodi/following{/other_user}","gists_url":"https://api.github.com/users/theodi/gists{/gist_id}","starred_url":"https://api.github.com/users/theodi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theodi/subscriptions","organizations_url":"https://api.github.com/users/theodi/orgs","repos_url":"https://api.github.com/users/theodi/repos","events_url":"https://api.github.com/users/theodi/events{/privacy}","received_events_url":"https://api.github.com/users/theodi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/theodi/octopub","description":"Publish data easily, quickly and correctly","fork":false,"url":"https://api.github.com/repos/theodi/octopub","forks_url":"https://api.github.com/repos/theodi/octopub/forks","keys_url":"https://api.github.com/repos/theodi/octopub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theodi/octopub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theodi/octopub/teams","hooks_url":"https://api.github.com/repos/theodi/octopub/hooks","issue_events_url":"https://api.github.com/repos/theodi/octopub/issues/events{/number}","events_url":"https://api.github.com/repos/theodi/octopub/events","assignees_url":"https://api.github.com/repos/theodi/octopub/assignees{/user}","branches_url":"https://api.github.com/repos/theodi/octopub/branches{/branch}","tags_url":"https://api.github.com/repos/theodi/octopub/tags","blobs_url":"https://api.github.com/repos/theodi/octopub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theodi/octopub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theodi/octopub/git/refs{/sha}","trees_url":"https://api.github.com/repos/theodi/octopub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theodi/octopub/statuses/{sha}","languages_url":"https://api.github.com/repos/theodi/octopub/languages","stargazers_url":"https://api.github.com/repos/theodi/octopub/stargazers","contributors_url":"https://api.github.com/repos/theodi/octopub/contributors","subscribers_url":"https://api.github.com/repos/theodi/octopub/subscribers","subscription_url":"https://api.github.com/repos/theodi/octopub/subscription","commits_url":"https://api.github.com/repos/theodi/octopub/commits{/sha}","git_commits_url":"https://api.github.com/repos/theodi/octopub/git/commits{/sha}","comments_url":"https://api.github.com/repos/theodi/octopub/comments{/number}","issue_comment_url":"https://api.github.com/repos/theodi/octopub/issues/comments{/number}","contents_url":"https://api.github.com/repos/theodi/octopub/contents/{+path}","compare_url":"https://api.github.com/repos/theodi/octopub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theodi/octopub/merges","archive_url":"https://api.github.com/repos/theodi/octopub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theodi/octopub/downloads","issues_url":"https://api.github.com/repos/theodi/octopub/issues{/number}","pulls_url":"https://api.github.com/repos/theodi/octopub/pulls{/number}","milestones_url":"https://api.github.com/repos/theodi/octopub/milestones{/number}","notifications_url":"https://api.github.com/repos/theodi/octopub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theodi/octopub/labels{/name}","releases_url":"https://api.github.com/repos/theodi/octopub/releases{/id}","deployments_url":"https://api.github.com/repos/theodi/octopub/deployments","created_at":"2014-10-06T11:18:25Z","updated_at":"2017-08-04T05:04:21Z","pushed_at":"2017-08-09T16:18:20Z","git_url":"git://github.com/theodi/octopub.git","ssh_url":"git@github.com:theodi/octopub.git","clone_url":"https://github.com/theodi/octopub.git","svn_url":"https://github.com/theodi/octopub","homepage":"https://octopub.io/","size":2842,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":79,"forks":7,"open_issues":79,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/theodi/octopub/pulls/548"},"html":{"href":"https://github.com/theodi/octopub/pull/548"},"issue":{"href":"https://api.github.com/repos/theodi/octopub/issues/548"},"comments":{"href":"https://api.github.com/repos/theodi/octopub/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/theodi/octopub/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/theodi/octopub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theodi/octopub/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/theodi/octopub/statuses/39dad43caa2da7dc78cb4b44ccdc8421ecc19a7d"}}}}
{"actor":{"display_login":"quadrophobiac"}}