{"action":"created","comment":{"url":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments/143751823","pull_request_review_id":68309381,"id":143751823,"diff_hunk":"@@ -16,3 +16,5 @@ let map f = Stdext.Listext.List.filter_map (default_on_missing_ref (fun x -> Som\n \n let flat_map f l = List.map (default_on_missing_ref f []) l |> List.flatten\n \n+let filter_map f l = map f l |> filter ((<>) None) |> map Xapi_stdext_monadic.Opt.unbox","path":"ocaml/xapi/valid_ref_list.ml","position":4,"original_position":4,"commit_id":"8e1774db4728a146e77e6fc7de6dd16ba301f16a","original_commit_id":"8e1774db4728a146e77e6fc7de6dd16ba301f16a","user":{"login":"thomassa","id":605052,"avatar_url":"https://avatars3.githubusercontent.com/u/605052?v=4","gravatar_id":"","url":"https://api.github.com/users/thomassa","html_url":"https://github.com/thomassa","followers_url":"https://api.github.com/users/thomassa/followers","following_url":"https://api.github.com/users/thomassa/following{/other_user}","gists_url":"https://api.github.com/users/thomassa/gists{/gist_id}","starred_url":"https://api.github.com/users/thomassa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomassa/subscriptions","organizations_url":"https://api.github.com/users/thomassa/orgs","repos_url":"https://api.github.com/users/thomassa/repos","events_url":"https://api.github.com/users/thomassa/events{/privacy}","received_events_url":"https://api.github.com/users/thomassa/received_events","type":"User","site_admin":false},"body":"For the `filter` and the second `map` we can use the versions from `List`.","created_at":"2017-10-10T14:50:05Z","updated_at":"2017-10-10T14:50:05Z","html_url":"https://github.com/xapi-project/xen-api/pull/3272#discussion_r143751823","pull_request_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments/143751823"},"html":{"href":"https://github.com/xapi-project/xen-api/pull/3272#discussion_r143751823"},"pull_request":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272"}}},"pull_request":{"url":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272","id":145513595,"html_url":"https://github.com/xapi-project/xen-api/pull/3272","diff_url":"https://github.com/xapi-project/xen-api/pull/3272.diff","patch_url":"https://github.com/xapi-project/xen-api/pull/3272.patch","issue_url":"https://api.github.com/repos/xapi-project/xen-api/issues/3272","number":3272,"state":"open","locked":false,"title":"CP-23536: Add event loop listening to network changes and updating the firewall for the NBD server.","user":{"login":"gaborigloi","id":10549240,"avatar_url":"https://avatars3.githubusercontent.com/u/10549240?v=4","gravatar_id":"","url":"https://api.github.com/users/gaborigloi","html_url":"https://github.com/gaborigloi","followers_url":"https://api.github.com/users/gaborigloi/followers","following_url":"https://api.github.com/users/gaborigloi/following{/other_user}","gists_url":"https://api.github.com/users/gaborigloi/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborigloi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborigloi/subscriptions","organizations_url":"https://api.github.com/users/gaborigloi/orgs","repos_url":"https://api.github.com/users/gaborigloi/repos","events_url":"https://api.github.com/users/gaborigloi/events{/privacy}","received_events_url":"https://api.github.com/users/gaborigloi/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-10-09T18:01:15Z","updated_at":"2017-10-10T14:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f55d354b8ea15d4eb4bc6700330dd3a182841ee","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272/commits","review_comments_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272/comments","review_comment_url":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xapi-project/xen-api/issues/3272/comments","statuses_url":"https://api.github.com/repos/xapi-project/xen-api/statuses/8e1774db4728a146e77e6fc7de6dd16ba301f16a","head":{"label":"gaborigloi:feature/CBT_network_event_loop","ref":"feature/CBT_network_event_loop","sha":"8e1774db4728a146e77e6fc7de6dd16ba301f16a","user":{"login":"gaborigloi","id":10549240,"avatar_url":"https://avatars3.githubusercontent.com/u/10549240?v=4","gravatar_id":"","url":"https://api.github.com/users/gaborigloi","html_url":"https://github.com/gaborigloi","followers_url":"https://api.github.com/users/gaborigloi/followers","following_url":"https://api.github.com/users/gaborigloi/following{/other_user}","gists_url":"https://api.github.com/users/gaborigloi/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborigloi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborigloi/subscriptions","organizations_url":"https://api.github.com/users/gaborigloi/orgs","repos_url":"https://api.github.com/users/gaborigloi/repos","events_url":"https://api.github.com/users/gaborigloi/events{/privacy}","received_events_url":"https://api.github.com/users/gaborigloi/received_events","type":"User","site_admin":false},"repo":{"id":69560008,"name":"xen-api","full_name":"gaborigloi/xen-api","owner":{"login":"gaborigloi","id":10549240,"avatar_url":"https://avatars3.githubusercontent.com/u/10549240?v=4","gravatar_id":"","url":"https://api.github.com/users/gaborigloi","html_url":"https://github.com/gaborigloi","followers_url":"https://api.github.com/users/gaborigloi/followers","following_url":"https://api.github.com/users/gaborigloi/following{/other_user}","gists_url":"https://api.github.com/users/gaborigloi/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborigloi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborigloi/subscriptions","organizations_url":"https://api.github.com/users/gaborigloi/orgs","repos_url":"https://api.github.com/users/gaborigloi/repos","events_url":"https://api.github.com/users/gaborigloi/events{/privacy}","received_events_url":"https://api.github.com/users/gaborigloi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gaborigloi/xen-api","description":"The Xapi Project's XenAPI Server","fork":true,"url":"https://api.github.com/repos/gaborigloi/xen-api","forks_url":"https://api.github.com/repos/gaborigloi/xen-api/forks","keys_url":"https://api.github.com/repos/gaborigloi/xen-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaborigloi/xen-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaborigloi/xen-api/teams","hooks_url":"https://api.github.com/repos/gaborigloi/xen-api/hooks","issue_events_url":"https://api.github.com/repos/gaborigloi/xen-api/issues/events{/number}","events_url":"https://api.github.com/repos/gaborigloi/xen-api/events","assignees_url":"https://api.github.com/repos/gaborigloi/xen-api/assignees{/user}","branches_url":"https://api.github.com/repos/gaborigloi/xen-api/branches{/branch}","tags_url":"https://api.github.com/repos/gaborigloi/xen-api/tags","blobs_url":"https://api.github.com/repos/gaborigloi/xen-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaborigloi/xen-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaborigloi/xen-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaborigloi/xen-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaborigloi/xen-api/statuses/{sha}","languages_url":"https://api.github.com/repos/gaborigloi/xen-api/languages","stargazers_url":"https://api.github.com/repos/gaborigloi/xen-api/stargazers","contributors_url":"https://api.github.com/repos/gaborigloi/xen-api/contributors","subscribers_url":"https://api.github.com/repos/gaborigloi/xen-api/subscribers","subscription_url":"https://api.github.com/repos/gaborigloi/xen-api/subscription","commits_url":"https://api.github.com/repos/gaborigloi/xen-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaborigloi/xen-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaborigloi/xen-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaborigloi/xen-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaborigloi/xen-api/contents/{+path}","compare_url":"https://api.github.com/repos/gaborigloi/xen-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaborigloi/xen-api/merges","archive_url":"https://api.github.com/repos/gaborigloi/xen-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaborigloi/xen-api/downloads","issues_url":"https://api.github.com/repos/gaborigloi/xen-api/issues{/number}","pulls_url":"https://api.github.com/repos/gaborigloi/xen-api/pulls{/number}","milestones_url":"https://api.github.com/repos/gaborigloi/xen-api/milestones{/number}","notifications_url":"https://api.github.com/repos/gaborigloi/xen-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaborigloi/xen-api/labels{/name}","releases_url":"https://api.github.com/repos/gaborigloi/xen-api/releases{/id}","deployments_url":"https://api.github.com/repos/gaborigloi/xen-api/deployments","created_at":"2016-09-29T11:11:42Z","updated_at":"2016-09-29T11:11:46Z","pushed_at":"2017-10-10T14:25:42Z","git_url":"git://github.com/gaborigloi/xen-api.git","ssh_url":"git@github.com:gaborigloi/xen-api.git","clone_url":"https://github.com/gaborigloi/xen-api.git","svn_url":"https://github.com/gaborigloi/xen-api","homepage":"http://xenproject.org/developers/teams/xapi.html","size":30814,"stargazers_count":0,"watchers_count":0,"language":"OCaml","has_issues":false,"has_projects":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":0,"default_branch":"master"}},"base":{"label":"xapi-project:feature/CBT","ref":"feature/CBT","sha":"96305b868422fb631382ad96c2e33d931437bac9","user":{"login":"xapi-project","id":317268,"avatar_url":"https://avatars3.githubusercontent.com/u/317268?v=4","gravatar_id":"","url":"https://api.github.com/users/xapi-project","html_url":"https://github.com/xapi-project","followers_url":"https://api.github.com/users/xapi-project/followers","following_url":"https://api.github.com/users/xapi-project/following{/other_user}","gists_url":"https://api.github.com/users/xapi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xapi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xapi-project/subscriptions","organizations_url":"https://api.github.com/users/xapi-project/orgs","repos_url":"https://api.github.com/users/xapi-project/repos","events_url":"https://api.github.com/users/xapi-project/events{/privacy}","received_events_url":"https://api.github.com/users/xapi-project/received_events","type":"Organization","site_admin":false},"repo":{"id":960233,"name":"xen-api","full_name":"xapi-project/xen-api","owner":{"login":"xapi-project","id":317268,"avatar_url":"https://avatars3.githubusercontent.com/u/317268?v=4","gravatar_id":"","url":"https://api.github.com/users/xapi-project","html_url":"https://github.com/xapi-project","followers_url":"https://api.github.com/users/xapi-project/followers","following_url":"https://api.github.com/users/xapi-project/following{/other_user}","gists_url":"https://api.github.com/users/xapi-project/gists{/gist_id}","starred_url":"https://api.github.com/users/xapi-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xapi-project/subscriptions","organizations_url":"https://api.github.com/users/xapi-project/orgs","repos_url":"https://api.github.com/users/xapi-project/repos","events_url":"https://api.github.com/users/xapi-project/events{/privacy}","received_events_url":"https://api.github.com/users/xapi-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xapi-project/xen-api","description":"The Xapi Project's XenAPI Server","fork":false,"url":"https://api.github.com/repos/xapi-project/xen-api","forks_url":"https://api.github.com/repos/xapi-project/xen-api/forks","keys_url":"https://api.github.com/repos/xapi-project/xen-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xapi-project/xen-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xapi-project/xen-api/teams","hooks_url":"https://api.github.com/repos/xapi-project/xen-api/hooks","issue_events_url":"https://api.github.com/repos/xapi-project/xen-api/issues/events{/number}","events_url":"https://api.github.com/repos/xapi-project/xen-api/events","assignees_url":"https://api.github.com/repos/xapi-project/xen-api/assignees{/user}","branches_url":"https://api.github.com/repos/xapi-project/xen-api/branches{/branch}","tags_url":"https://api.github.com/repos/xapi-project/xen-api/tags","blobs_url":"https://api.github.com/repos/xapi-project/xen-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xapi-project/xen-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xapi-project/xen-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/xapi-project/xen-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xapi-project/xen-api/statuses/{sha}","languages_url":"https://api.github.com/repos/xapi-project/xen-api/languages","stargazers_url":"https://api.github.com/repos/xapi-project/xen-api/stargazers","contributors_url":"https://api.github.com/repos/xapi-project/xen-api/contributors","subscribers_url":"https://api.github.com/repos/xapi-project/xen-api/subscribers","subscription_url":"https://api.github.com/repos/xapi-project/xen-api/subscription","commits_url":"https://api.github.com/repos/xapi-project/xen-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/xapi-project/xen-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/xapi-project/xen-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/xapi-project/xen-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/xapi-project/xen-api/contents/{+path}","compare_url":"https://api.github.com/repos/xapi-project/xen-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xapi-project/xen-api/merges","archive_url":"https://api.github.com/repos/xapi-project/xen-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xapi-project/xen-api/downloads","issues_url":"https://api.github.com/repos/xapi-project/xen-api/issues{/number}","pulls_url":"https://api.github.com/repos/xapi-project/xen-api/pulls{/number}","milestones_url":"https://api.github.com/repos/xapi-project/xen-api/milestones{/number}","notifications_url":"https://api.github.com/repos/xapi-project/xen-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xapi-project/xen-api/labels{/name}","releases_url":"https://api.github.com/repos/xapi-project/xen-api/releases{/id}","deployments_url":"https://api.github.com/repos/xapi-project/xen-api/deployments","created_at":"2010-10-04T10:52:57Z","updated_at":"2017-10-04T19:19:11Z","pushed_at":"2017-10-10T14:48:20Z","git_url":"git://github.com/xapi-project/xen-api.git","ssh_url":"git@github.com:xapi-project/xen-api.git","clone_url":"https://github.com/xapi-project/xen-api.git","svn_url":"https://github.com/xapi-project/xen-api","homepage":"http://xenproject.org/developers/teams/xapi.html","size":28754,"stargazers_count":243,"watchers_count":243,"language":"OCaml","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":190,"mirror_url":null,"open_issues_count":21,"forks":190,"open_issues":21,"watchers":243,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272"},"html":{"href":"https://github.com/xapi-project/xen-api/pull/3272"},"issue":{"href":"https://api.github.com/repos/xapi-project/xen-api/issues/3272"},"comments":{"href":"https://api.github.com/repos/xapi-project/xen-api/issues/3272/comments"},"review_comments":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272/comments"},"review_comment":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xapi-project/xen-api/pulls/3272/commits"},"statuses":{"href":"https://api.github.com/repos/xapi-project/xen-api/statuses/8e1774db4728a146e77e6fc7de6dd16ba301f16a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thomassa"}}