{"action":"created","comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/32205192","id":32205192,"diff_hunk":"@@ -18,23 +18,30 @@\n \n HELP = \"\"\"Move data between groups\n \n-Example Usage:\n+Move entire graphs of data based on the ID of the top-node.","path":"components/tools/OmeroPy/src/omero/plugins/chgrp.py","position":5,"original_position":5,"commit_id":"29efd9a8e85fe840e720b55b4a99efd7f8c13b7e","original_commit_id":"29efd9a8e85fe840e720b55b4a99efd7f8c13b7e","user":{"login":"joshmoore","id":88113,"avatar_url":"https://avatars.githubusercontent.com/u/88113?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmoore","html_url":"https://github.com/joshmoore","followers_url":"https://api.github.com/users/joshmoore/followers","following_url":"https://api.github.com/users/joshmoore/following{/other_user}","gists_url":"https://api.github.com/users/joshmoore/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmoore/subscriptions","organizations_url":"https://api.github.com/users/joshmoore/orgs","repos_url":"https://api.github.com/users/joshmoore/repos","events_url":"https://api.github.com/users/joshmoore/events{/privacy}","received_events_url":"https://api.github.com/users/joshmoore/received_events","type":"User","site_admin":false},"body":"This leaves the header looking somewhat redundant:\r\n```\r\nMove data between groups\r\n\r\nMove entire graphs of data based on the ID of the top-node.\r\n```","created_at":"2015-06-11T09:49:17Z","updated_at":"2015-06-11T09:49:17Z","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3864#discussion_r32205192","pull_request_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864","_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments/32205192"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/3864#discussion_r32205192"},"pull_request":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864"}}},"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864","id":37279620,"html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3864","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3864.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3864.patch","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3864","number":3864,"state":"open","locked":false,"title":"Modify delete and chgrp reporting","user":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"body":"This PR modifies the `--report` option of `delete` to order object ids and compress to ranges when possible. The same option for `chgrp` is brought to the same level with some refactoring. As the report is now relatively concise the exclusion of some classes has been lifted - this also means that some reports will not be artificially empty. Finally, both usage docstrings have been updated with a few more examples.\r\n\r\nTesting\r\n-------\r\n\r\nTry a variety of `delete` and `chgrp` commands with `--report` (and `--dry-run` to prevent and actual moves or deletes. The output should be something like this:\r\n```\r\nomero delete Image:52,51 --report --dry-run\r\n...\r\nomero.cmd.Delete2 Image 52,51... ok\r\nSteps: 1\r\nElapsed time: 0.268 secs.\r\nFlags: []\r\nDeleted objects\r\nChannel:51,52\r\nImage:51,52\r\nLogicalChannel:51,52\r\nOriginalFile:105-110,112-117\r\nPixels:51,52\r\nChannelBinding:51,52\r\nQuantumDef:51,52\r\nRenderingDef:51,52\r\nThumbnail:51,52\r\nFileset:51,52\r\nFilesetEntry:51-60\r\nFilesetJobLink:51-60\r\nIndexingJob:55,60\r\nJobOriginalFileLink:51,52\r\nMetadataImportJob:52,57\r\nPixelDataJob:53,58\r\nThumbnailGenerationJob:54,59\r\nUploadJob:51,56\r\nStatsInfo:6,7\r\n```\r\nIf there is a straightforward `chgrp` scenario that results in the deletion of objects then please try that too. /cc @joshmoore @mtbc \r\n\r\nCheck the `--help` for both commands.","created_at":"2015-06-09T17:43:03Z","updated_at":"2015-06-11T09:49:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d08f0e68649181757830249fc58536195041c9c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864/commits","review_comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864/comments","review_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3864/comments","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/29efd9a8e85fe840e720b55b4a99efd7f8c13b7e","head":{"label":"ximenesuk:cli-delete-chgrp","ref":"cli-delete-chgrp","sha":"29efd9a8e85fe840e720b55b4a99efd7f8c13b7e","user":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"repo":{"id":2423257,"name":"openmicroscopy","full_name":"ximenesuk/openmicroscopy","owner":{"login":"ximenesuk","id":1065145,"avatar_url":"https://avatars.githubusercontent.com/u/1065145?v=3","gravatar_id":"","url":"https://api.github.com/users/ximenesuk","html_url":"https://github.com/ximenesuk","followers_url":"https://api.github.com/users/ximenesuk/followers","following_url":"https://api.github.com/users/ximenesuk/following{/other_user}","gists_url":"https://api.github.com/users/ximenesuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ximenesuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ximenesuk/subscriptions","organizations_url":"https://api.github.com/users/ximenesuk/orgs","repos_url":"https://api.github.com/users/ximenesuk/repos","events_url":"https://api.github.com/users/ximenesuk/events{/privacy}","received_events_url":"https://api.github.com/users/ximenesuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ximenesuk/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":true,"url":"https://api.github.com/repos/ximenesuk/openmicroscopy","forks_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/forks","keys_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/events","assignees_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/merges","archive_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/ximenesuk/openmicroscopy/releases{/id}","created_at":"2011-09-20T15:22:01Z","updated_at":"2014-06-03T07:49:27Z","pushed_at":"2015-06-10T10:05:23Z","git_url":"git://github.com/ximenesuk/openmicroscopy.git","ssh_url":"git@github.com:ximenesuk/openmicroscopy.git","clone_url":"https://github.com/ximenesuk/openmicroscopy.git","svn_url":"https://github.com/ximenesuk/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":1747461,"stargazers_count":3,"watchers_count":3,"language":"Java","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":3,"default_branch":"develop"}},"base":{"label":"openmicroscopy:develop","ref":"develop","sha":"08c213a865af0e5f4ed4855f8df77ab817efacbb","user":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"repo":{"id":2228226,"name":"openmicroscopy","full_name":"openmicroscopy/openmicroscopy","owner":{"login":"openmicroscopy","id":975861,"avatar_url":"https://avatars.githubusercontent.com/u/975861?v=3","gravatar_id":"","url":"https://api.github.com/users/openmicroscopy","html_url":"https://github.com/openmicroscopy","followers_url":"https://api.github.com/users/openmicroscopy/followers","following_url":"https://api.github.com/users/openmicroscopy/following{/other_user}","gists_url":"https://api.github.com/users/openmicroscopy/gists{/gist_id}","starred_url":"https://api.github.com/users/openmicroscopy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openmicroscopy/subscriptions","organizations_url":"https://api.github.com/users/openmicroscopy/orgs","repos_url":"https://api.github.com/users/openmicroscopy/repos","events_url":"https://api.github.com/users/openmicroscopy/events{/privacy}","received_events_url":"https://api.github.com/users/openmicroscopy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openmicroscopy/openmicroscopy","description":"OME (Open Microscopy Environment) develops open-source software and data format standards for the storage and manipulation of biological light microscopy data. A joint project between universities, research establishments and industry in Europe and the USA, OME has over 20 active researchers with strong links to the microscopy community. Funded by private and public research grants, OME has been a major force on the international microscopy stage since 2000.","fork":false,"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","forks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/forks","keys_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/events","assignees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/merges","archive_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/releases{/id}","created_at":"2011-08-18T14:26:02Z","updated_at":"2015-06-04T13:55:03Z","pushed_at":"2015-06-11T08:46:48Z","git_url":"git://github.com/openmicroscopy/openmicroscopy.git","ssh_url":"git@github.com:openmicroscopy/openmicroscopy.git","clone_url":"https://github.com/openmicroscopy/openmicroscopy.git","svn_url":"https://github.com/openmicroscopy/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":2159384,"stargazers_count":67,"watchers_count":67,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":16,"forks":68,"open_issues":16,"watchers":67,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/3864"},"issue":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3864"},"comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3864/comments"},"review_comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864/comments"},"review_comment":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3864/commits"},"statuses":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/29efd9a8e85fe840e720b55b4a99efd7f8c13b7e"}}}}