{"action":"opened","number":549,"pull_request":{"url":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549","id":31027314,"html_url":"https://github.com/adaptlearning/adapt_framework/pull/549","diff_url":"https://github.com/adaptlearning/adapt_framework/pull/549.diff","patch_url":"https://github.com/adaptlearning/adapt_framework/pull/549.patch","issue_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/549","number":549,"state":"open","locked":false,"title":"\"Required to complete\" feature","user":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"body":"This adds ability to specify which components should be completed to mark entire block (and other components) as completed. Block model needs to specify `_requireCompletionOf` property which can have following values: `'all'`, `'any'` or valid component id that is child of this block e.g. `c-02`. Below are few examples of use. When `_requireCompletionOf` is missing or empty it defaults to `all`.\r\n\r\n    {\r\n        \"_id\": \"b-03\",\r\n        \"_parentId\": \"a-02\",\r\n        \"_type\": \"block\",\r\n        \"_requireCompletionOf\": \"any\"\r\n    },\r\n    {\r\n        \"_id\": \"b-03\",\r\n        \"_parentId\": \"a-02\",\r\n        \"_type\": \"block\",\r\n        \"_requireCompletionOf\": [\"all\"]\r\n    },\r\n    {\r\n        \"_id\": \"b-03\",\r\n        \"_parentId\": \"a-02\",\r\n        \"_type\": \"block\",\r\n        \"_requireCompletionOf\": \"c-05\"\r\n    },\r\n    {\r\n        \"_id\": \"b-03\",\r\n        \"_parentId\": \"a-02\",\r\n        \"_type\": \"block\",\r\n        \"_requireCompletionOf\": [\"c-05\",\"c-10\"]\r\n    },\r\n","created_at":"2015-03-12T11:28:51Z","updated_at":"2015-03-12T11:28:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549/commits","review_comments_url":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549/comments","review_comment_url":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/549/comments","statuses_url":"https://api.github.com/repos/adaptlearning/adapt_framework/statuses/043fb34bbf5ad15476e0d400c8b18a19a5b4dff3","head":{"label":"LukaszGrela:LukaszGrela-block-model-require-to-complete","ref":"LukaszGrela-block-model-require-to-complete","sha":"043fb34bbf5ad15476e0d400c8b18a19a5b4dff3","user":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"repo":{"id":31710475,"name":"adapt_framework","full_name":"LukaszGrela/adapt_framework","owner":{"login":"LukaszGrela","id":7643591,"avatar_url":"https://avatars.githubusercontent.com/u/7643591?v=3","gravatar_id":"","url":"https://api.github.com/users/LukaszGrela","html_url":"https://github.com/LukaszGrela","followers_url":"https://api.github.com/users/LukaszGrela/followers","following_url":"https://api.github.com/users/LukaszGrela/following{/other_user}","gists_url":"https://api.github.com/users/LukaszGrela/gists{/gist_id}","starred_url":"https://api.github.com/users/LukaszGrela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukaszGrela/subscriptions","organizations_url":"https://api.github.com/users/LukaszGrela/orgs","repos_url":"https://api.github.com/users/LukaszGrela/repos","events_url":"https://api.github.com/users/LukaszGrela/events{/privacy}","received_events_url":"https://api.github.com/users/LukaszGrela/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/LukaszGrela/adapt_framework","description":"This is the output framework of the Adapt Learning open source project ","fork":true,"url":"https://api.github.com/repos/LukaszGrela/adapt_framework","forks_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/forks","keys_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/teams","hooks_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/hooks","issue_events_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/issues/events{/number}","events_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/events","assignees_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/assignees{/user}","branches_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/branches{/branch}","tags_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/tags","blobs_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/statuses/{sha}","languages_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/languages","stargazers_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/stargazers","contributors_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/contributors","subscribers_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/subscribers","subscription_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/subscription","commits_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/contents/{+path}","compare_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/merges","archive_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/downloads","issues_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/issues{/number}","pulls_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/pulls{/number}","milestones_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/milestones{/number}","notifications_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/labels{/name}","releases_url":"https://api.github.com/repos/LukaszGrela/adapt_framework/releases{/id}","created_at":"2015-03-05T11:18:45Z","updated_at":"2015-03-05T11:18:45Z","pushed_at":"2015-03-12T11:22:35Z","git_url":"git://github.com/LukaszGrela/adapt_framework.git","ssh_url":"git@github.com:LukaszGrela/adapt_framework.git","clone_url":"https://github.com/LukaszGrela/adapt_framework.git","svn_url":"https://github.com/LukaszGrela/adapt_framework","homepage":null,"size":43421,"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":"adaptlearning:develop","ref":"develop","sha":"01490dc4348c98432a28e9aa5c6bac70c276f167","user":{"login":"adaptlearning","id":5629464,"avatar_url":"https://avatars.githubusercontent.com/u/5629464?v=3","gravatar_id":"","url":"https://api.github.com/users/adaptlearning","html_url":"https://github.com/adaptlearning","followers_url":"https://api.github.com/users/adaptlearning/followers","following_url":"https://api.github.com/users/adaptlearning/following{/other_user}","gists_url":"https://api.github.com/users/adaptlearning/gists{/gist_id}","starred_url":"https://api.github.com/users/adaptlearning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaptlearning/subscriptions","organizations_url":"https://api.github.com/users/adaptlearning/orgs","repos_url":"https://api.github.com/users/adaptlearning/repos","events_url":"https://api.github.com/users/adaptlearning/events{/privacy}","received_events_url":"https://api.github.com/users/adaptlearning/received_events","type":"Organization","site_admin":false},"repo":{"id":13442719,"name":"adapt_framework","full_name":"adaptlearning/adapt_framework","owner":{"login":"adaptlearning","id":5629464,"avatar_url":"https://avatars.githubusercontent.com/u/5629464?v=3","gravatar_id":"","url":"https://api.github.com/users/adaptlearning","html_url":"https://github.com/adaptlearning","followers_url":"https://api.github.com/users/adaptlearning/followers","following_url":"https://api.github.com/users/adaptlearning/following{/other_user}","gists_url":"https://api.github.com/users/adaptlearning/gists{/gist_id}","starred_url":"https://api.github.com/users/adaptlearning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaptlearning/subscriptions","organizations_url":"https://api.github.com/users/adaptlearning/orgs","repos_url":"https://api.github.com/users/adaptlearning/repos","events_url":"https://api.github.com/users/adaptlearning/events{/privacy}","received_events_url":"https://api.github.com/users/adaptlearning/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adaptlearning/adapt_framework","description":"This is the output framework of the Adapt Learning open source project ","fork":false,"url":"https://api.github.com/repos/adaptlearning/adapt_framework","forks_url":"https://api.github.com/repos/adaptlearning/adapt_framework/forks","keys_url":"https://api.github.com/repos/adaptlearning/adapt_framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adaptlearning/adapt_framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adaptlearning/adapt_framework/teams","hooks_url":"https://api.github.com/repos/adaptlearning/adapt_framework/hooks","issue_events_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/events{/number}","events_url":"https://api.github.com/repos/adaptlearning/adapt_framework/events","assignees_url":"https://api.github.com/repos/adaptlearning/adapt_framework/assignees{/user}","branches_url":"https://api.github.com/repos/adaptlearning/adapt_framework/branches{/branch}","tags_url":"https://api.github.com/repos/adaptlearning/adapt_framework/tags","blobs_url":"https://api.github.com/repos/adaptlearning/adapt_framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adaptlearning/adapt_framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adaptlearning/adapt_framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/adaptlearning/adapt_framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adaptlearning/adapt_framework/statuses/{sha}","languages_url":"https://api.github.com/repos/adaptlearning/adapt_framework/languages","stargazers_url":"https://api.github.com/repos/adaptlearning/adapt_framework/stargazers","contributors_url":"https://api.github.com/repos/adaptlearning/adapt_framework/contributors","subscribers_url":"https://api.github.com/repos/adaptlearning/adapt_framework/subscribers","subscription_url":"https://api.github.com/repos/adaptlearning/adapt_framework/subscription","commits_url":"https://api.github.com/repos/adaptlearning/adapt_framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/adaptlearning/adapt_framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/adaptlearning/adapt_framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/adaptlearning/adapt_framework/contents/{+path}","compare_url":"https://api.github.com/repos/adaptlearning/adapt_framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adaptlearning/adapt_framework/merges","archive_url":"https://api.github.com/repos/adaptlearning/adapt_framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adaptlearning/adapt_framework/downloads","issues_url":"https://api.github.com/repos/adaptlearning/adapt_framework/issues{/number}","pulls_url":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls{/number}","milestones_url":"https://api.github.com/repos/adaptlearning/adapt_framework/milestones{/number}","notifications_url":"https://api.github.com/repos/adaptlearning/adapt_framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adaptlearning/adapt_framework/labels{/name}","releases_url":"https://api.github.com/repos/adaptlearning/adapt_framework/releases{/id}","created_at":"2013-10-09T13:15:44Z","updated_at":"2015-03-12T11:09:41Z","pushed_at":"2015-03-12T09:23:18Z","git_url":"git://github.com/adaptlearning/adapt_framework.git","ssh_url":"git@github.com:adaptlearning/adapt_framework.git","clone_url":"https://github.com/adaptlearning/adapt_framework.git","svn_url":"https://github.com/adaptlearning/adapt_framework","homepage":null,"size":56180,"stargazers_count":120,"watchers_count":120,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":69,"forks":70,"open_issues":69,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549"},"html":{"href":"https://github.com/adaptlearning/adapt_framework/pull/549"},"issue":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/549"},"comments":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/issues/549/comments"},"review_comments":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549/comments"},"review_comment":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/pulls/549/commits"},"statuses":{"href":"https://api.github.com/repos/adaptlearning/adapt_framework/statuses/043fb34bbf5ad15476e0d400c8b18a19a5b4dff3"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":140,"deletions":6,"changed_files":1}}