{"action":"created","comment":{"url":"https://api.github.com/repos/infobloxopen/themis/pulls/comments/195369461","pull_request_review_id":128723284,"id":195369461,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTM2OTQ2MQ==","diff_hunk":"@@ -0,0 +1,54 @@\n+package pdp\n+\n+type functionTry struct {\n+\targs []Expression\n+}\n+\n+func makeFunctionTry(args []Expression) Expression {\n+\treturn functionTry{\n+\t\targs: args,\n+\t}\n+}\n+\n+func (f functionTry) GetResultType() Type {\n+\tif len(f.args) > 0 {\n+\t\treturn f.args[0].GetResultType()\n+\t}\n+\n+\treturn TypeUndefined\n+}\n+\n+func (f functionTry) describe() string {\n+\treturn \"try\"\n+}\n+\n+func (f functionTry) Calculate(ctx *Context) (AttributeValue, error) {\n+\tvar (\n+\t\tv   AttributeValue\n+\t\terr error\n+\t)\n+\n+\tfor _, arg := range f.args {\n+\t\tv, err = arg.Calculate(ctx)","path":"pdp/expr_try.go","position":32,"original_position":32,"commit_id":"bf7bc28adec1221096ba5b7ce66140215c01988f","original_commit_id":"bf7bc28adec1221096ba5b7ce66140215c01988f","user":{"login":"rdrozhdzh","id":30860269,"node_id":"MDQ6VXNlcjMwODYwMjY5","avatar_url":"https://avatars3.githubusercontent.com/u/30860269?v=4","gravatar_id":"","url":"https://api.github.com/users/rdrozhdzh","html_url":"https://github.com/rdrozhdzh","followers_url":"https://api.github.com/users/rdrozhdzh/followers","following_url":"https://api.github.com/users/rdrozhdzh/following{/other_user}","gists_url":"https://api.github.com/users/rdrozhdzh/gists{/gist_id}","starred_url":"https://api.github.com/users/rdrozhdzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdrozhdzh/subscriptions","organizations_url":"https://api.github.com/users/rdrozhdzh/orgs","repos_url":"https://api.github.com/users/rdrozhdzh/repos","events_url":"https://api.github.com/users/rdrozhdzh/events{/privacy}","received_events_url":"https://api.github.com/users/rdrozhdzh/received_events","type":"User","site_admin":false},"body":"ok, looks good","created_at":"2018-06-14T10:12:48Z","updated_at":"2018-06-14T10:12:49Z","html_url":"https://github.com/infobloxopen/themis/pull/178#discussion_r195369461","pull_request_url":"https://api.github.com/repos/infobloxopen/themis/pulls/178","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/comments/195369461"},"html":{"href":"https://github.com/infobloxopen/themis/pull/178#discussion_r195369461"},"pull_request":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/178"}},"in_reply_to_id":195152099},"pull_request":{"url":"https://api.github.com/repos/infobloxopen/themis/pulls/178","id":194615648,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NjE1NjQ4","html_url":"https://github.com/infobloxopen/themis/pull/178","diff_url":"https://github.com/infobloxopen/themis/pull/178.diff","patch_url":"https://github.com/infobloxopen/themis/pull/178.patch","issue_url":"https://api.github.com/repos/infobloxopen/themis/issues/178","number":178,"state":"open","locked":false,"title":"Added try and concat functions","user":{"login":"vasili-v","id":3368552,"node_id":"MDQ6VXNlcjMzNjg1NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/3368552?v=4","gravatar_id":"","url":"https://api.github.com/users/vasili-v","html_url":"https://github.com/vasili-v","followers_url":"https://api.github.com/users/vasili-v/followers","following_url":"https://api.github.com/users/vasili-v/following{/other_user}","gists_url":"https://api.github.com/users/vasili-v/gists{/gist_id}","starred_url":"https://api.github.com/users/vasili-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasili-v/subscriptions","organizations_url":"https://api.github.com/users/vasili-v/orgs","repos_url":"https://api.github.com/users/vasili-v/repos","events_url":"https://api.github.com/users/vasili-v/events{/privacy}","received_events_url":"https://api.github.com/users/vasili-v/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-13T14:55:36Z","updated_at":"2018-06-14T10:12:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d36fb218f452f64413a8b4a0bf879fb8d93d2866","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/infobloxopen/themis/pulls/178/commits","review_comments_url":"https://api.github.com/repos/infobloxopen/themis/pulls/178/comments","review_comment_url":"https://api.github.com/repos/infobloxopen/themis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infobloxopen/themis/issues/178/comments","statuses_url":"https://api.github.com/repos/infobloxopen/themis/statuses/bf7bc28adec1221096ba5b7ce66140215c01988f","head":{"label":"vasili-v:try-concat","ref":"try-concat","sha":"bf7bc28adec1221096ba5b7ce66140215c01988f","user":{"login":"vasili-v","id":3368552,"node_id":"MDQ6VXNlcjMzNjg1NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/3368552?v=4","gravatar_id":"","url":"https://api.github.com/users/vasili-v","html_url":"https://github.com/vasili-v","followers_url":"https://api.github.com/users/vasili-v/followers","following_url":"https://api.github.com/users/vasili-v/following{/other_user}","gists_url":"https://api.github.com/users/vasili-v/gists{/gist_id}","starred_url":"https://api.github.com/users/vasili-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasili-v/subscriptions","organizations_url":"https://api.github.com/users/vasili-v/orgs","repos_url":"https://api.github.com/users/vasili-v/repos","events_url":"https://api.github.com/users/vasili-v/events{/privacy}","received_events_url":"https://api.github.com/users/vasili-v/received_events","type":"User","site_admin":false},"repo":{"id":81563704,"node_id":"MDEwOlJlcG9zaXRvcnk4MTU2MzcwNA==","name":"themis","full_name":"vasili-v/themis","owner":{"login":"vasili-v","id":3368552,"node_id":"MDQ6VXNlcjMzNjg1NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/3368552?v=4","gravatar_id":"","url":"https://api.github.com/users/vasili-v","html_url":"https://github.com/vasili-v","followers_url":"https://api.github.com/users/vasili-v/followers","following_url":"https://api.github.com/users/vasili-v/following{/other_user}","gists_url":"https://api.github.com/users/vasili-v/gists{/gist_id}","starred_url":"https://api.github.com/users/vasili-v/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasili-v/subscriptions","organizations_url":"https://api.github.com/users/vasili-v/orgs","repos_url":"https://api.github.com/users/vasili-v/repos","events_url":"https://api.github.com/users/vasili-v/events{/privacy}","received_events_url":"https://api.github.com/users/vasili-v/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vasili-v/themis","description":null,"fork":true,"url":"https://api.github.com/repos/vasili-v/themis","forks_url":"https://api.github.com/repos/vasili-v/themis/forks","keys_url":"https://api.github.com/repos/vasili-v/themis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vasili-v/themis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vasili-v/themis/teams","hooks_url":"https://api.github.com/repos/vasili-v/themis/hooks","issue_events_url":"https://api.github.com/repos/vasili-v/themis/issues/events{/number}","events_url":"https://api.github.com/repos/vasili-v/themis/events","assignees_url":"https://api.github.com/repos/vasili-v/themis/assignees{/user}","branches_url":"https://api.github.com/repos/vasili-v/themis/branches{/branch}","tags_url":"https://api.github.com/repos/vasili-v/themis/tags","blobs_url":"https://api.github.com/repos/vasili-v/themis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vasili-v/themis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vasili-v/themis/git/refs{/sha}","trees_url":"https://api.github.com/repos/vasili-v/themis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vasili-v/themis/statuses/{sha}","languages_url":"https://api.github.com/repos/vasili-v/themis/languages","stargazers_url":"https://api.github.com/repos/vasili-v/themis/stargazers","contributors_url":"https://api.github.com/repos/vasili-v/themis/contributors","subscribers_url":"https://api.github.com/repos/vasili-v/themis/subscribers","subscription_url":"https://api.github.com/repos/vasili-v/themis/subscription","commits_url":"https://api.github.com/repos/vasili-v/themis/commits{/sha}","git_commits_url":"https://api.github.com/repos/vasili-v/themis/git/commits{/sha}","comments_url":"https://api.github.com/repos/vasili-v/themis/comments{/number}","issue_comment_url":"https://api.github.com/repos/vasili-v/themis/issues/comments{/number}","contents_url":"https://api.github.com/repos/vasili-v/themis/contents/{+path}","compare_url":"https://api.github.com/repos/vasili-v/themis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vasili-v/themis/merges","archive_url":"https://api.github.com/repos/vasili-v/themis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vasili-v/themis/downloads","issues_url":"https://api.github.com/repos/vasili-v/themis/issues{/number}","pulls_url":"https://api.github.com/repos/vasili-v/themis/pulls{/number}","milestones_url":"https://api.github.com/repos/vasili-v/themis/milestones{/number}","notifications_url":"https://api.github.com/repos/vasili-v/themis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vasili-v/themis/labels{/name}","releases_url":"https://api.github.com/repos/vasili-v/themis/releases{/id}","deployments_url":"https://api.github.com/repos/vasili-v/themis/deployments","created_at":"2017-02-10T12:34:26Z","updated_at":"2018-06-08T11:04:55Z","pushed_at":"2018-06-13T14:53:43Z","git_url":"git://github.com/vasili-v/themis.git","ssh_url":"git@github.com:vasili-v/themis.git","clone_url":"https://github.com/vasili-v/themis.git","svn_url":"https://github.com/vasili-v/themis","homepage":null,"size":36081,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"infobloxopen:master","ref":"master","sha":"c66c00d3f725786dc1a572a2d1387e00538f8d0d","user":{"login":"infobloxopen","id":8064882,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNjQ4ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/8064882?v=4","gravatar_id":"","url":"https://api.github.com/users/infobloxopen","html_url":"https://github.com/infobloxopen","followers_url":"https://api.github.com/users/infobloxopen/followers","following_url":"https://api.github.com/users/infobloxopen/following{/other_user}","gists_url":"https://api.github.com/users/infobloxopen/gists{/gist_id}","starred_url":"https://api.github.com/users/infobloxopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infobloxopen/subscriptions","organizations_url":"https://api.github.com/users/infobloxopen/orgs","repos_url":"https://api.github.com/users/infobloxopen/repos","events_url":"https://api.github.com/users/infobloxopen/events{/privacy}","received_events_url":"https://api.github.com/users/infobloxopen/received_events","type":"Organization","site_admin":false},"repo":{"id":81562052,"node_id":"MDEwOlJlcG9zaXRvcnk4MTU2MjA1Mg==","name":"themis","full_name":"infobloxopen/themis","owner":{"login":"infobloxopen","id":8064882,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgwNjQ4ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/8064882?v=4","gravatar_id":"","url":"https://api.github.com/users/infobloxopen","html_url":"https://github.com/infobloxopen","followers_url":"https://api.github.com/users/infobloxopen/followers","following_url":"https://api.github.com/users/infobloxopen/following{/other_user}","gists_url":"https://api.github.com/users/infobloxopen/gists{/gist_id}","starred_url":"https://api.github.com/users/infobloxopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infobloxopen/subscriptions","organizations_url":"https://api.github.com/users/infobloxopen/orgs","repos_url":"https://api.github.com/users/infobloxopen/repos","events_url":"https://api.github.com/users/infobloxopen/events{/privacy}","received_events_url":"https://api.github.com/users/infobloxopen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infobloxopen/themis","description":"Themis is a general-purpose policy engine inspired (but not beholden to) the XACML architecture.","fork":false,"url":"https://api.github.com/repos/infobloxopen/themis","forks_url":"https://api.github.com/repos/infobloxopen/themis/forks","keys_url":"https://api.github.com/repos/infobloxopen/themis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infobloxopen/themis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infobloxopen/themis/teams","hooks_url":"https://api.github.com/repos/infobloxopen/themis/hooks","issue_events_url":"https://api.github.com/repos/infobloxopen/themis/issues/events{/number}","events_url":"https://api.github.com/repos/infobloxopen/themis/events","assignees_url":"https://api.github.com/repos/infobloxopen/themis/assignees{/user}","branches_url":"https://api.github.com/repos/infobloxopen/themis/branches{/branch}","tags_url":"https://api.github.com/repos/infobloxopen/themis/tags","blobs_url":"https://api.github.com/repos/infobloxopen/themis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infobloxopen/themis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infobloxopen/themis/git/refs{/sha}","trees_url":"https://api.github.com/repos/infobloxopen/themis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infobloxopen/themis/statuses/{sha}","languages_url":"https://api.github.com/repos/infobloxopen/themis/languages","stargazers_url":"https://api.github.com/repos/infobloxopen/themis/stargazers","contributors_url":"https://api.github.com/repos/infobloxopen/themis/contributors","subscribers_url":"https://api.github.com/repos/infobloxopen/themis/subscribers","subscription_url":"https://api.github.com/repos/infobloxopen/themis/subscription","commits_url":"https://api.github.com/repos/infobloxopen/themis/commits{/sha}","git_commits_url":"https://api.github.com/repos/infobloxopen/themis/git/commits{/sha}","comments_url":"https://api.github.com/repos/infobloxopen/themis/comments{/number}","issue_comment_url":"https://api.github.com/repos/infobloxopen/themis/issues/comments{/number}","contents_url":"https://api.github.com/repos/infobloxopen/themis/contents/{+path}","compare_url":"https://api.github.com/repos/infobloxopen/themis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infobloxopen/themis/merges","archive_url":"https://api.github.com/repos/infobloxopen/themis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infobloxopen/themis/downloads","issues_url":"https://api.github.com/repos/infobloxopen/themis/issues{/number}","pulls_url":"https://api.github.com/repos/infobloxopen/themis/pulls{/number}","milestones_url":"https://api.github.com/repos/infobloxopen/themis/milestones{/number}","notifications_url":"https://api.github.com/repos/infobloxopen/themis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infobloxopen/themis/labels{/name}","releases_url":"https://api.github.com/repos/infobloxopen/themis/releases{/id}","deployments_url":"https://api.github.com/repos/infobloxopen/themis/deployments","created_at":"2017-02-10T12:12:09Z","updated_at":"2018-05-31T11:40:11Z","pushed_at":"2018-06-13T22:21:14Z","git_url":"git://github.com/infobloxopen/themis.git","ssh_url":"git@github.com:infobloxopen/themis.git","clone_url":"https://github.com/infobloxopen/themis.git","svn_url":"https://github.com/infobloxopen/themis","homepage":"","size":35767,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":5,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/178"},"html":{"href":"https://github.com/infobloxopen/themis/pull/178"},"issue":{"href":"https://api.github.com/repos/infobloxopen/themis/issues/178"},"comments":{"href":"https://api.github.com/repos/infobloxopen/themis/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infobloxopen/themis/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/infobloxopen/themis/statuses/bf7bc28adec1221096ba5b7ce66140215c01988f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rdrozhdzh"}}