{"action":"closed","number":6030,"pull_request":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/6030","id":337571510,"node_id":"MDExOlB1bGxSZXF1ZXN0MzM3NTcxNTEw","html_url":"https://github.com/learningequality/kolibri/pull/6030","diff_url":"https://github.com/learningequality/kolibri/pull/6030.diff","patch_url":"https://github.com/learningequality/kolibri/pull/6030.patch","issue_url":"https://api.github.com/repos/learningequality/kolibri/issues/6030","number":6030,"state":"closed","locked":false,"title":"Granular deletion and visibility setting based on user preference","user":{"login":"rtibbles","id":1680573,"node_id":"MDQ6VXNlcjE2ODA1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1680573?v=4","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"body":"### Summary\r\n* Updates importcontent and annotation machinery to only mark visibility (`ContentNode.available`) in ContentNodes defined by `node_ids` and `exclude_node_ids`.\r\n* Update deletechannel to allow a`node_ids` argument to delete specific nodes within a channel, and not the entire channel.\r\n* Removes the `available` field on `File` as it was unnecessary.\r\n* Renames some annotation functions to be more semantic - focus on '`ContentNode` visibility'\r\n* Adds `node_ids` as a param to the deletion endpoints\r\n* Cleans up and consolidates task validation\r\n* Clears file_size and resource_count estimates for granular deletion - will need follow up work to update this on the task metadata from within the job once #6007 is merged.\r\n\r\n### Reviewer guidance\r\n* When you import a topic inside Khan Academy Arithmetic, does only the Arithmetic topic appear inside the Math topic?\r\n* Can you granularly delete just one topic using the `deletecontent` management command now?\r\n\r\n### References\r\nhttps://www.notion.so/learningequality/Post-import-content-management-c1bba77a25ce438692ed6bc9b9f0d30c\r\n\r\n----\r\n\r\n### Contributor Checklist\r\n\r\n\r\nPR process:\r\n\r\n- [x] PR has the correct target branch and milestone\r\n- [x] PR has 'needs review' or 'work-in-progress' label\r\n- [x] If PR is ready for review, a reviewer has been added. (Don't use 'Assignees')\r\n- [ ] If this is an important user-facing change, PR or related issue has a 'changelog' label\r\n- [ ] If this includes an internal dependency change, a link to the diff is provided\r\n\r\nTesting:\r\n\r\n- [x] Contributor has fully tested the PR manually\r\n- [ ] If there are any front-end changes, before/after screenshots are included\r\n- [ ] Critical user journeys are covered by Gherkin stories\r\n- [x] Critical and brittle code paths are covered by unit tests\r\n\r\n### Reviewer Checklist\r\n\r\n- Automated test coverage is satisfactory\r\n- PR is fully functional\r\n- PR has been tested for [accessibility regressions](http://kolibri-dev.readthedocs.io/en/develop/manual_testing.html#accessibility-a11y-testing)\r\n- External dependency files were updated if necessary (`yarn` and `pip`)\r\n- Documentation is updated\r\n- Contributor is in AUTHORS.md\r\n","created_at":"2019-11-06T20:35:16Z","updated_at":"2019-11-07T22:42:04Z","closed_at":"2019-11-07T22:42:04Z","merged_at":"2019-11-07T22:42:04Z","merge_commit_sha":"9c64c0b3c96658aed2ed5aa320085a85e81d1d71","assignee":null,"assignees":[],"requested_reviewers":[{"login":"micahscopes","id":389782,"node_id":"MDQ6VXNlcjM4OTc4Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/389782?v=4","gravatar_id":"","url":"https://api.github.com/users/micahscopes","html_url":"https://github.com/micahscopes","followers_url":"https://api.github.com/users/micahscopes/followers","following_url":"https://api.github.com/users/micahscopes/following{/other_user}","gists_url":"https://api.github.com/users/micahscopes/gists{/gist_id}","starred_url":"https://api.github.com/users/micahscopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micahscopes/subscriptions","organizations_url":"https://api.github.com/users/micahscopes/orgs","repos_url":"https://api.github.com/users/micahscopes/repos","events_url":"https://api.github.com/users/micahscopes/events{/privacy}","received_events_url":"https://api.github.com/users/micahscopes/received_events","type":"User","site_admin":false},{"login":"jonboiser","id":10248067,"node_id":"MDQ6VXNlcjEwMjQ4MDY3","avatar_url":"https://avatars2.githubusercontent.com/u/10248067?v=4","gravatar_id":"","url":"https://api.github.com/users/jonboiser","html_url":"https://github.com/jonboiser","followers_url":"https://api.github.com/users/jonboiser/followers","following_url":"https://api.github.com/users/jonboiser/following{/other_user}","gists_url":"https://api.github.com/users/jonboiser/gists{/gist_id}","starred_url":"https://api.github.com/users/jonboiser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonboiser/subscriptions","organizations_url":"https://api.github.com/users/jonboiser/orgs","repos_url":"https://api.github.com/users/jonboiser/repos","events_url":"https://api.github.com/users/jonboiser/events{/privacy}","received_events_url":"https://api.github.com/users/jonboiser/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":492822760,"node_id":"MDU6TGFiZWw0OTI4MjI3NjA=","url":"https://api.github.com/repos/learningequality/kolibri/labels/TODO:%20needs%20gherkin%20update","name":"TODO: needs gherkin update","color":"c1e23b","default":false},{"id":410338552,"node_id":"MDU6TGFiZWw0MTAzMzg1NTI=","url":"https://api.github.com/repos/learningequality/kolibri/labels/TODO:%20needs%20review","name":"TODO: needs review","color":"c1e23b","default":false},{"id":831979218,"node_id":"MDU6TGFiZWw4MzE5NzkyMTg=","url":"https://api.github.com/repos/learningequality/kolibri/labels/changelog","name":"changelog","color":"000000","default":false}],"milestone":{"url":"https://api.github.com/repos/learningequality/kolibri/milestones/39","html_url":"https://github.com/learningequality/kolibri/milestone/39","labels_url":"https://api.github.com/repos/learningequality/kolibri/milestones/39/labels","id":4242383,"node_id":"MDk6TWlsZXN0b25lNDI0MjM4Mw==","number":39,"title":"0.13.0","description":"","creator":{"login":"indirectlylit","id":2367265,"node_id":"MDQ6VXNlcjIzNjcyNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2367265?v=4","gravatar_id":"","url":"https://api.github.com/users/indirectlylit","html_url":"https://github.com/indirectlylit","followers_url":"https://api.github.com/users/indirectlylit/followers","following_url":"https://api.github.com/users/indirectlylit/following{/other_user}","gists_url":"https://api.github.com/users/indirectlylit/gists{/gist_id}","starred_url":"https://api.github.com/users/indirectlylit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirectlylit/subscriptions","organizations_url":"https://api.github.com/users/indirectlylit/orgs","repos_url":"https://api.github.com/users/indirectlylit/repos","events_url":"https://api.github.com/users/indirectlylit/events{/privacy}","received_events_url":"https://api.github.com/users/indirectlylit/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":156,"state":"open","created_at":"2019-04-18T19:04:50Z","updated_at":"2019-11-07T22:42:04Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/learningequality/kolibri/pulls/6030/commits","review_comments_url":"https://api.github.com/repos/learningequality/kolibri/pulls/6030/comments","review_comment_url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learningequality/kolibri/issues/6030/comments","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/3d1c6c95c3142fd661b7cc994b55628c5ab4379c","head":{"label":"rtibbles:availability","ref":"availability","sha":"3d1c6c95c3142fd661b7cc994b55628c5ab4379c","user":{"login":"rtibbles","id":1680573,"node_id":"MDQ6VXNlcjE2ODA1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1680573?v=4","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"repo":{"id":50074818,"node_id":"MDEwOlJlcG9zaXRvcnk1MDA3NDgxOA==","name":"kolibri","full_name":"rtibbles/kolibri","private":false,"owner":{"login":"rtibbles","id":1680573,"node_id":"MDQ6VXNlcjE2ODA1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1680573?v=4","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rtibbles/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":true,"url":"https://api.github.com/repos/rtibbles/kolibri","forks_url":"https://api.github.com/repos/rtibbles/kolibri/forks","keys_url":"https://api.github.com/repos/rtibbles/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rtibbles/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rtibbles/kolibri/teams","hooks_url":"https://api.github.com/repos/rtibbles/kolibri/hooks","issue_events_url":"https://api.github.com/repos/rtibbles/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/rtibbles/kolibri/events","assignees_url":"https://api.github.com/repos/rtibbles/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/rtibbles/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/rtibbles/kolibri/tags","blobs_url":"https://api.github.com/repos/rtibbles/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rtibbles/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rtibbles/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/rtibbles/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rtibbles/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/rtibbles/kolibri/languages","stargazers_url":"https://api.github.com/repos/rtibbles/kolibri/stargazers","contributors_url":"https://api.github.com/repos/rtibbles/kolibri/contributors","subscribers_url":"https://api.github.com/repos/rtibbles/kolibri/subscribers","subscription_url":"https://api.github.com/repos/rtibbles/kolibri/subscription","commits_url":"https://api.github.com/repos/rtibbles/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/rtibbles/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/rtibbles/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/rtibbles/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/rtibbles/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/rtibbles/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rtibbles/kolibri/merges","archive_url":"https://api.github.com/repos/rtibbles/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rtibbles/kolibri/downloads","issues_url":"https://api.github.com/repos/rtibbles/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/rtibbles/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/rtibbles/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/rtibbles/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rtibbles/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/rtibbles/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/rtibbles/kolibri/deployments","created_at":"2016-01-21T02:03:42Z","updated_at":"2016-01-31T03:57:29Z","pushed_at":"2019-11-07T21:39:55Z","git_url":"git://github.com/rtibbles/kolibri.git","ssh_url":"git@github.com:rtibbles/kolibri.git","clone_url":"https://github.com/rtibbles/kolibri.git","svn_url":"https://github.com/rtibbles/kolibri","homepage":"http://learningequality.org/kolibri/","size":69083,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"learningequality:develop","ref":"develop","sha":"0b126efccf3f3e7eac57a482bf974db666c4eac9","user":{"login":"learningequality","id":3926525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjY1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3926525?v=4","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"repo":{"id":49976939,"node_id":"MDEwOlJlcG9zaXRvcnk0OTk3NjkzOQ==","name":"kolibri","full_name":"learningequality/kolibri","private":false,"owner":{"login":"learningequality","id":3926525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5MjY1MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3926525?v=4","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/learningequality/kolibri","description":"Kolibri: the offline app for universal education","fork":false,"url":"https://api.github.com/repos/learningequality/kolibri","forks_url":"https://api.github.com/repos/learningequality/kolibri/forks","keys_url":"https://api.github.com/repos/learningequality/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learningequality/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learningequality/kolibri/teams","hooks_url":"https://api.github.com/repos/learningequality/kolibri/hooks","issue_events_url":"https://api.github.com/repos/learningequality/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/learningequality/kolibri/events","assignees_url":"https://api.github.com/repos/learningequality/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/learningequality/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/learningequality/kolibri/tags","blobs_url":"https://api.github.com/repos/learningequality/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learningequality/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learningequality/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/learningequality/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/learningequality/kolibri/languages","stargazers_url":"https://api.github.com/repos/learningequality/kolibri/stargazers","contributors_url":"https://api.github.com/repos/learningequality/kolibri/contributors","subscribers_url":"https://api.github.com/repos/learningequality/kolibri/subscribers","subscription_url":"https://api.github.com/repos/learningequality/kolibri/subscription","commits_url":"https://api.github.com/repos/learningequality/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/learningequality/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/learningequality/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/learningequality/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/learningequality/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/learningequality/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learningequality/kolibri/merges","archive_url":"https://api.github.com/repos/learningequality/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learningequality/kolibri/downloads","issues_url":"https://api.github.com/repos/learningequality/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/learningequality/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/learningequality/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/learningequality/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learningequality/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/learningequality/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/learningequality/kolibri/deployments","created_at":"2016-01-19T19:22:07Z","updated_at":"2019-11-07T13:40:29Z","pushed_at":"2019-11-07T22:42:04Z","git_url":"git://github.com/learningequality/kolibri.git","ssh_url":"git@github.com:learningequality/kolibri.git","clone_url":"https://github.com/learningequality/kolibri.git","svn_url":"https://github.com/learningequality/kolibri","homepage":"https://learningequality.org/kolibri/","size":68831,"stargazers_count":295,"watchers_count":295,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":173,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":368,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":173,"open_issues":368,"watchers":295,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/6030"},"html":{"href":"https://github.com/learningequality/kolibri/pull/6030"},"issue":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/6030"},"comments":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/6030/comments"},"review_comments":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/6030/comments"},"review_comment":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/6030/commits"},"statuses":{"href":"https://api.github.com/repos/learningequality/kolibri/statuses/3d1c6c95c3142fd661b7cc994b55628c5ab4379c"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"rtibbles","id":1680573,"node_id":"MDQ6VXNlcjE2ODA1NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1680573?v=4","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"comments":1,"review_comments":8,"maintainer_can_modify":false,"commits":15,"additions":936,"deletions":293,"changed_files":28}}
{"actor":{"display_login":"rtibbles"}}