{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3725","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3725/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3725/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3725/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3725","id":68922847,"number":3725,"title":"Refactor plugins using Delete2 & Chgrp2 requests","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T13:23:17Z","updated_at":"2015-04-16T14:42:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3725","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3725","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3725.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3725.patch"},"body":"This PR refactors the CLI plugins `delete` and `chgrp` to use the new `Delete2` and `Chgrp2` requests respectively.\r\n\r\nThe `--opt` and `--edit` options are removed. The latter was broken by the request changes. The former is effectively replaced by `--include` and `--exclude`.\r\n\r\nFurther unit and integration tests are required to test new options and functionality\r\n\r\nTesting\r\n-------\r\nRelevant cli unit and integration tests should still pass.\r\n\r\nA number of simple delete and chgrp should be checked, see `--help` for examples. In addition more complex \"skiphead\" requests should be tried, for examples see below.\r\n\r\nDelete all images under project 53 but leave any annotations:\r\n```\r\n$ omero delete Project/Image:53 --exclude Annotation\r\n```\r\n\r\nEffectively \"orphan\" all images under projects 51 and 52 and also those under dataset 53:\r\n```\r\n$ omero delete Project/Dataset/DatasetImageLink:51,52 Dataset/DatasetImageLink:53\r\n```\r\n\r\nThe subcommand `group perms` should be checked:\r\n```\r\n$ omero group perms --name pg-0 --perms \"rwr---\"\r\nChanged permissions for group pg-0 (id=3) to rwr---\r\n$ omero group perms --id 3 --perms \"rw----\"\r\nChanged permissions for group pg-0 (id=3) to rw----\r\n```\r\n\r\nIn addition `omero fs rename` should be checked.\r\n\r\n\r\n--no-rebase\r\n"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/93751878","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3725#issuecomment-93751878","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3725","id":93751878,"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},"created_at":"2015-04-16T14:42:51Z","updated_at":"2015-04-16T14:42:51Z","body":"NB and/or RFE: how difficult would it be to integrate the `dry-run` logic at this point?"}}