{"action":"closed","number":3786,"pull_request":{"url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786","id":34627605,"html_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3786","diff_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3786.diff","patch_url":"https://github.com/openmicroscopy/openmicroscopy/pull/3786.patch","issue_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3786","number":3786,"state":"closed","locked":false,"title":"5.1.2: session api additions","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":"In order to complete the CLI session workflow changes, a few API changes were needed.\r\n\r\n * `omero.cmd.UpdateSessionTimeoutRequest` can now be used to modify the `timeToLive` and `timeToIdle` values. cc: @sbesson \r\n * `omero.cmd.CurrentSessionsRequest` can now be used to query the in-memory state of all sessions as opposed to the in-database state. Inactive sessions will be timed-out in the process of querying and will *not* be included in the list. cc: @kennethgillen \r\n\r\n#### Testing ####\r\n\r\nCheck the various CLI commands, their various arguments, and their associated help:\r\n * `bin/omero sessions group`\r\n * `bin/omero sessions timeout`\r\n * `bin/omero sessions who`\r\n\r\n#### Caveat ####\r\n\r\nClients should take care when talking to pre-5.1.2 servers to handle the `null` return value from `session.submit`:\r\n\r\nhttps://github.com/openmicroscopy/openmicroscopy/pull/3786/files#diff-e44a2f62042695e699c5c5a9725de6d4R655\r\n```\r\n+        except omero.ClientError, ce:\r\n+            if ce.err == \"Null handle\":\r\n+                v = client.getConfigService().getVersion()\r\n+                self.ctx.die(561,\r\n+                             \"Operation unsupported. Server version: %s\" % v)\r\n```","created_at":"2015-05-04T10:25:41Z","updated_at":"2015-05-19T19:42:38Z","closed_at":"2015-05-19T19:42:38Z","merged_at":"2015-05-19T19:42:38Z","merge_commit_sha":"6eda34eaf91d9be07a0fe53e7e881ed4c77c398b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786/commits","review_comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786/comments","review_comment_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3786/comments","statuses_url":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/7ffbebe5318bf8e4736e49cf824dfafb7c2d11b9","head":{"label":"joshmoore:5-1-2-session-api","ref":"5-1-2-session-api","sha":"7ffbebe5318bf8e4736e49cf824dfafb7c2d11b9","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},"repo":{"id":2347571,"name":"openmicroscopy","full_name":"joshmoore/openmicroscopy","owner":{"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},"private":false,"html_url":"https://github.com/joshmoore/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/joshmoore/openmicroscopy","forks_url":"https://api.github.com/repos/joshmoore/openmicroscopy/forks","keys_url":"https://api.github.com/repos/joshmoore/openmicroscopy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshmoore/openmicroscopy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshmoore/openmicroscopy/teams","hooks_url":"https://api.github.com/repos/joshmoore/openmicroscopy/hooks","issue_events_url":"https://api.github.com/repos/joshmoore/openmicroscopy/issues/events{/number}","events_url":"https://api.github.com/repos/joshmoore/openmicroscopy/events","assignees_url":"https://api.github.com/repos/joshmoore/openmicroscopy/assignees{/user}","branches_url":"https://api.github.com/repos/joshmoore/openmicroscopy/branches{/branch}","tags_url":"https://api.github.com/repos/joshmoore/openmicroscopy/tags","blobs_url":"https://api.github.com/repos/joshmoore/openmicroscopy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshmoore/openmicroscopy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshmoore/openmicroscopy/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshmoore/openmicroscopy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshmoore/openmicroscopy/statuses/{sha}","languages_url":"https://api.github.com/repos/joshmoore/openmicroscopy/languages","stargazers_url":"https://api.github.com/repos/joshmoore/openmicroscopy/stargazers","contributors_url":"https://api.github.com/repos/joshmoore/openmicroscopy/contributors","subscribers_url":"https://api.github.com/repos/joshmoore/openmicroscopy/subscribers","subscription_url":"https://api.github.com/repos/joshmoore/openmicroscopy/subscription","commits_url":"https://api.github.com/repos/joshmoore/openmicroscopy/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshmoore/openmicroscopy/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshmoore/openmicroscopy/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshmoore/openmicroscopy/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshmoore/openmicroscopy/contents/{+path}","compare_url":"https://api.github.com/repos/joshmoore/openmicroscopy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshmoore/openmicroscopy/merges","archive_url":"https://api.github.com/repos/joshmoore/openmicroscopy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshmoore/openmicroscopy/downloads","issues_url":"https://api.github.com/repos/joshmoore/openmicroscopy/issues{/number}","pulls_url":"https://api.github.com/repos/joshmoore/openmicroscopy/pulls{/number}","milestones_url":"https://api.github.com/repos/joshmoore/openmicroscopy/milestones{/number}","notifications_url":"https://api.github.com/repos/joshmoore/openmicroscopy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshmoore/openmicroscopy/labels{/name}","releases_url":"https://api.github.com/repos/joshmoore/openmicroscopy/releases{/id}","created_at":"2011-09-08T09:53:15Z","updated_at":"2014-06-25T08:25:48Z","pushed_at":"2015-05-19T19:41:05Z","git_url":"git://github.com/joshmoore/openmicroscopy.git","ssh_url":"git@github.com:joshmoore/openmicroscopy.git","clone_url":"https://github.com/joshmoore/openmicroscopy.git","svn_url":"https://github.com/joshmoore/openmicroscopy","homepage":"http://www.openmicroscopy.org","size":1992552,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"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":4,"default_branch":"omero43-ice34"}},"base":{"label":"openmicroscopy:develop","ref":"develop","sha":"aaa1ed2640c773334156512243a58fa539cbe1d1","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-05-14T07:07:12Z","pushed_at":"2015-05-19T19:42:38Z","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":2158133,"stargazers_count":66,"watchers_count":66,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":22,"forks":64,"open_issues":22,"watchers":66,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786"},"html":{"href":"https://github.com/openmicroscopy/openmicroscopy/pull/3786"},"issue":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3786"},"comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/issues/3786/comments"},"review_comments":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786/comments"},"review_comment":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/pulls/3786/commits"},"statuses":{"href":"https://api.github.com/repos/openmicroscopy/openmicroscopy/statuses/7ffbebe5318bf8e4736e49cf824dfafb7c2d11b9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"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},"comments":36,"review_comments":12,"commits":33,"additions":888,"deletions":79,"changed_files":16}}