{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4518","repository_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4518/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4518/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4518/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4518","id":139321930,"number":4518,"title":"Tag tree actions","user":{"login":"will-moore","id":900055,"avatar_url":"https://avatars.githubusercontent.com/u/900055?v=3","gravatar_id":"","url":"https://api.github.com/users/will-moore","html_url":"https://github.com/will-moore","followers_url":"https://api.github.com/users/will-moore/followers","following_url":"https://api.github.com/users/will-moore/following{/other_user}","gists_url":"https://api.github.com/users/will-moore/gists{/gist_id}","starred_url":"https://api.github.com/users/will-moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-moore/subscriptions","organizations_url":"https://api.github.com/users/will-moore/orgs","repos_url":"https://api.github.com/users/will-moore/repos","events_url":"https://api.github.com/users/will-moore/events{/privacy}","received_events_url":"https://api.github.com/users/will-moore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/develop","name":"develop","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2016-03-08T16:24:10Z","updated_at":"2016-03-18T11:26:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4518","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4518","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4518.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4518.patch"},"body":"This PR updates the web with the same Tag & Tag set functionality as Insight.\r\n\r\n![screen shot 2016-03-08 at 16 33 26](https://cloud.githubusercontent.com/assets/900055/13608188/939b00fe-e54b-11e5-9fd8-062062a1ac67.png)\r\n\r\nTo test:\r\n - Browse tags tree\r\n - Creation of tags / tag sets should appear as orphans in tree, unless tag is created with tag set selected (should be created as child of tag set).\r\n     - Create Tag and Tag set from toolbar buttons\r\n     - Create Tag and Tag set from right-click menu\r\n - Cut, Copy and Paste all data types, from toolbar and Right-click menu:\r\n    - Tag / Tagset\r\n    - Dataset / Project\r\n    - Image / Dataset\r\n    - Plate / Screen\r\n - Drag and Drop all data types that can be Cut as above\r\n - Tagged objects can also be Copied from below Tag (NOT Cut, as in Insight)\r\n - Delete Tag & Tag set\r\n\r\nNB: @pwalczysko, @bramalingam and I had a discussion about whether you should be able to Cut OR Copy orphaned objects E.g.:\r\n - Dataset in P/D/I tree\r\n - Orphaned Image in P/D/I tree\r\n - Tag in Tag tree\r\n\r\nGenerally agreed that you should be able to Copy these (not current policy in Insight or Web & not changed in this PR).\r\nRe: this PR, we allow to Copy:\r\n - Tagged Project/Dataset/Image etc in Tag tree (where you are not Cutting the parent link)\r\nThis is conceptually similar to Copy of an Orphaned object (also not Cutting any parent link).\r\n"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/198314803","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4518#issuecomment-198314803","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4518","id":198314803,"user":{"login":"will-moore","id":900055,"avatar_url":"https://avatars.githubusercontent.com/u/900055?v=3","gravatar_id":"","url":"https://api.github.com/users/will-moore","html_url":"https://github.com/will-moore","followers_url":"https://api.github.com/users/will-moore/followers","following_url":"https://api.github.com/users/will-moore/following{/other_user}","gists_url":"https://api.github.com/users/will-moore/gists{/gist_id}","starred_url":"https://api.github.com/users/will-moore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-moore/subscriptions","organizations_url":"https://api.github.com/users/will-moore/orgs","repos_url":"https://api.github.com/users/will-moore/repos","events_url":"https://api.github.com/users/will-moore/events{/privacy}","received_events_url":"https://api.github.com/users/will-moore/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T11:26:42Z","updated_at":"2016-03-18T11:26:42Z","body":"@chris-allan OK, I think I will start to work on those tests in another PR. That way I'll be writing and testing them locally without this PR in, and they will be tested against this PR by ci.\r\nThe first 5.3.0 task after moving existing webclient api/ methods to webgateway is to break up manage_action_containers() into smaller functions linked to new api urls. But having tests for existing functionality will also help to catch bugs in that process.\r\nThe ```api_links``` url which uses ```get_object_links()``` and ```create_link()``` is the only part of the existing /api functionality that is missing tests, so they were on my TODO list anyway."}}