{"action":"created","issue":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4134","labels_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4134/labels{/name}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4134/comments","events_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4134/events","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4134","id":104921244,"number":4134,"title":"List empty tagsets when using omero tag list","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":[{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/labels/dev_5_1","name":"dev_5_1","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-04T16:13:49Z","updated_at":"2015-09-08T07:02:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/4134","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4134","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4134.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4134.patch"},"body":"This PR adds to the fix in https://github.com/ximenesuk/openmicroscopy/commit/32e3434a7b8d46b2d446005fe71e5ed1669e17af which included empty tagsets in the `listsets` command to include empty tagsets in the `list` command as a separate section below the tree view.\r\n\r\nTo test create some tags and tagsets and have some of those tagsets empty. To create empty tagsets from the CLI you need to create populated tagsets and then remove the contents, e.g.\r\n```\r\n$ omero tag create --name \"tag1\"\r\nTagAnnotation:437\r\n$ omero tag create --name \"tag2\"\r\nTagAnnotation:438\r\n$ omero tag create --name \"tag3\"\r\nTagAnnotation:439\r\n$ omero tag createset --name \"tagset1\" --tag 437\r\nTagAnnotation:440\r\n$ omero tag createset --name \"tagset-empty\" --tag 438\r\nTagAnnotation:441\r\n$ omero delete TagAnnotation:438\r\nomero.cmd.Delete2 TagAnnotation 438... ok\r\n$ omero tag list\r\n+- 440:'tagset1'\r\n|\\\r\n| +- 437:'tag1'\r\n\r\nOrphaned tags:\r\n> 439:'tag3'\r\n\r\nEmpty tagsets:\r\n> 441:'tagset-empty'\r\n```\r\nThis should also work when using the `--tagset` and `--uid` options.\r\n\r\nTwo tests have been expanded to test for both orphaned tags and empty tagsets.\r\n\r\n--rebased-to #4142"},"comment":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/comments/138456290","html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/4134#issuecomment-138456290","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/4134","id":138456290,"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},"created_at":"2015-09-08T07:02:35Z","updated_at":"2015-09-08T07:02:35Z","body":"Does this PR need anything else done or can it be merged?\r\n"}}