{"action":"created","comment":{"url":"https://api.github.com/repos/quattor/template-library-core/pulls/comments/208378693","pull_request_review_id":144176501,"id":208378693,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODM3ODY5Mw==","diff_hunk":"@@ -218,3 +218,19 @@ function full_hostname_from_object = {\n     return (OBJECT);\n };\n \n+\n+@documentation{\n+    desc = Function to deduplicate the content of a list, only the first occurence of each element in the list will be kept in the final list returned to the caller\n+}\n+function unique_list = {","path":"pan/functions.pan","position":8,"original_position":8,"commit_id":"53760c786e9c69b0955ceb513003af5dc55ff352","original_commit_id":"53760c786e9c69b0955ceb513003af5dc55ff352","user":{"login":"XaF","id":1548665,"node_id":"MDQ6VXNlcjE1NDg2NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1548665?v=4","gravatar_id":"","url":"https://api.github.com/users/XaF","html_url":"https://github.com/XaF","followers_url":"https://api.github.com/users/XaF/followers","following_url":"https://api.github.com/users/XaF/following{/other_user}","gists_url":"https://api.github.com/users/XaF/gists{/gist_id}","starred_url":"https://api.github.com/users/XaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaF/subscriptions","organizations_url":"https://api.github.com/users/XaF/orgs","repos_url":"https://api.github.com/users/XaF/repos","events_url":"https://api.github.com/users/XaF/events{/privacy}","received_events_url":"https://api.github.com/users/XaF/received_events","type":"User","site_admin":false},"body":"The aim is to deduplicate a list of strings / long when generating the profile of a host, to manage a new entitlement structure (to be submitted later). The ordering is not important for us, so if this can be done a better & faster way, I'm all for it!","created_at":"2018-08-07T20:43:49Z","updated_at":"2018-08-07T20:43:50Z","html_url":"https://github.com/quattor/template-library-core/pull/185#discussion_r208378693","pull_request_url":"https://api.github.com/repos/quattor/template-library-core/pulls/185","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/comments/208378693"},"html":{"href":"https://github.com/quattor/template-library-core/pull/185#discussion_r208378693"},"pull_request":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/185"}},"in_reply_to_id":208372836},"pull_request":{"url":"https://api.github.com/repos/quattor/template-library-core/pulls/185","id":206801152,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2ODAxMTUy","html_url":"https://github.com/quattor/template-library-core/pull/185","diff_url":"https://github.com/quattor/template-library-core/pull/185.diff","patch_url":"https://github.com/quattor/template-library-core/pull/185.patch","issue_url":"https://api.github.com/repos/quattor/template-library-core/issues/185","number":185,"state":"open","locked":false,"title":"Add a unique_list function","user":{"login":"XaF","id":1548665,"node_id":"MDQ6VXNlcjE1NDg2NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1548665?v=4","gravatar_id":"","url":"https://api.github.com/users/XaF","html_url":"https://github.com/XaF","followers_url":"https://api.github.com/users/XaF/followers","following_url":"https://api.github.com/users/XaF/following{/other_user}","gists_url":"https://api.github.com/users/XaF/gists{/gist_id}","starred_url":"https://api.github.com/users/XaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaF/subscriptions","organizations_url":"https://api.github.com/users/XaF/orgs","repos_url":"https://api.github.com/users/XaF/repos","events_url":"https://api.github.com/users/XaF/events{/privacy}","received_events_url":"https://api.github.com/users/XaF/received_events","type":"User","site_admin":false},"body":"The unique_list function takes a list as parameter, and returns\r\na list without any duplicated elements. The order of the elements\r\nis maintained (i.e. if the first occurrence of an element appears in\r\nthe list before the first occurrence of another, the former will\r\nprecede the latter in the final list).","created_at":"2018-08-07T19:22:38Z","updated_at":"2018-08-07T20:43:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3c397de165aa950b1e593d8304eb996d658adb7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/quattor/template-library-core/pulls/185/commits","review_comments_url":"https://api.github.com/repos/quattor/template-library-core/pulls/185/comments","review_comment_url":"https://api.github.com/repos/quattor/template-library-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/quattor/template-library-core/issues/185/comments","statuses_url":"https://api.github.com/repos/quattor/template-library-core/statuses/53760c786e9c69b0955ceb513003af5dc55ff352","head":{"label":"XaF:patch-2","ref":"patch-2","sha":"53760c786e9c69b0955ceb513003af5dc55ff352","user":{"login":"XaF","id":1548665,"node_id":"MDQ6VXNlcjE1NDg2NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1548665?v=4","gravatar_id":"","url":"https://api.github.com/users/XaF","html_url":"https://github.com/XaF","followers_url":"https://api.github.com/users/XaF/followers","following_url":"https://api.github.com/users/XaF/following{/other_user}","gists_url":"https://api.github.com/users/XaF/gists{/gist_id}","starred_url":"https://api.github.com/users/XaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaF/subscriptions","organizations_url":"https://api.github.com/users/XaF/orgs","repos_url":"https://api.github.com/users/XaF/repos","events_url":"https://api.github.com/users/XaF/events{/privacy}","received_events_url":"https://api.github.com/users/XaF/received_events","type":"User","site_admin":false},"repo":{"id":143916482,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM5MTY0ODI=","name":"template-library-core","full_name":"XaF/template-library-core","owner":{"login":"XaF","id":1548665,"node_id":"MDQ6VXNlcjE1NDg2NjU=","avatar_url":"https://avatars1.githubusercontent.com/u/1548665?v=4","gravatar_id":"","url":"https://api.github.com/users/XaF","html_url":"https://github.com/XaF","followers_url":"https://api.github.com/users/XaF/followers","following_url":"https://api.github.com/users/XaF/following{/other_user}","gists_url":"https://api.github.com/users/XaF/gists{/gist_id}","starred_url":"https://api.github.com/users/XaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaF/subscriptions","organizations_url":"https://api.github.com/users/XaF/orgs","repos_url":"https://api.github.com/users/XaF/repos","events_url":"https://api.github.com/users/XaF/events{/privacy}","received_events_url":"https://api.github.com/users/XaF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XaF/template-library-core","description":"Pan templates for the configuration modules","fork":true,"url":"https://api.github.com/repos/XaF/template-library-core","forks_url":"https://api.github.com/repos/XaF/template-library-core/forks","keys_url":"https://api.github.com/repos/XaF/template-library-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XaF/template-library-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XaF/template-library-core/teams","hooks_url":"https://api.github.com/repos/XaF/template-library-core/hooks","issue_events_url":"https://api.github.com/repos/XaF/template-library-core/issues/events{/number}","events_url":"https://api.github.com/repos/XaF/template-library-core/events","assignees_url":"https://api.github.com/repos/XaF/template-library-core/assignees{/user}","branches_url":"https://api.github.com/repos/XaF/template-library-core/branches{/branch}","tags_url":"https://api.github.com/repos/XaF/template-library-core/tags","blobs_url":"https://api.github.com/repos/XaF/template-library-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XaF/template-library-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XaF/template-library-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/XaF/template-library-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XaF/template-library-core/statuses/{sha}","languages_url":"https://api.github.com/repos/XaF/template-library-core/languages","stargazers_url":"https://api.github.com/repos/XaF/template-library-core/stargazers","contributors_url":"https://api.github.com/repos/XaF/template-library-core/contributors","subscribers_url":"https://api.github.com/repos/XaF/template-library-core/subscribers","subscription_url":"https://api.github.com/repos/XaF/template-library-core/subscription","commits_url":"https://api.github.com/repos/XaF/template-library-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/XaF/template-library-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/XaF/template-library-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/XaF/template-library-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/XaF/template-library-core/contents/{+path}","compare_url":"https://api.github.com/repos/XaF/template-library-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XaF/template-library-core/merges","archive_url":"https://api.github.com/repos/XaF/template-library-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XaF/template-library-core/downloads","issues_url":"https://api.github.com/repos/XaF/template-library-core/issues{/number}","pulls_url":"https://api.github.com/repos/XaF/template-library-core/pulls{/number}","milestones_url":"https://api.github.com/repos/XaF/template-library-core/milestones{/number}","notifications_url":"https://api.github.com/repos/XaF/template-library-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XaF/template-library-core/labels{/name}","releases_url":"https://api.github.com/repos/XaF/template-library-core/releases{/id}","deployments_url":"https://api.github.com/repos/XaF/template-library-core/deployments","created_at":"2018-08-07T19:11:52Z","updated_at":"2018-08-07T19:11:56Z","pushed_at":"2018-08-07T19:22:30Z","git_url":"git://github.com/XaF/template-library-core.git","ssh_url":"git@github.com:XaF/template-library-core.git","clone_url":"https://github.com/XaF/template-library-core.git","svn_url":"https://github.com/XaF/template-library-core","homepage":null,"size":7028,"stargazers_count":0,"watchers_count":0,"language":"Pan","has_issues":false,"has_projects":true,"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":"quattor:master","ref":"master","sha":"2ff00f7ac569b6157839be0f1124dbfcbe6d706d","user":{"login":"quattor","id":1557169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTcxNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1557169?v=4","gravatar_id":"","url":"https://api.github.com/users/quattor","html_url":"https://github.com/quattor","followers_url":"https://api.github.com/users/quattor/followers","following_url":"https://api.github.com/users/quattor/following{/other_user}","gists_url":"https://api.github.com/users/quattor/gists{/gist_id}","starred_url":"https://api.github.com/users/quattor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quattor/subscriptions","organizations_url":"https://api.github.com/users/quattor/orgs","repos_url":"https://api.github.com/users/quattor/repos","events_url":"https://api.github.com/users/quattor/events{/privacy}","received_events_url":"https://api.github.com/users/quattor/received_events","type":"Organization","site_admin":false},"repo":{"id":12486277,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ4NjI3Nw==","name":"template-library-core","full_name":"quattor/template-library-core","owner":{"login":"quattor","id":1557169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1NTcxNjk=","avatar_url":"https://avatars1.githubusercontent.com/u/1557169?v=4","gravatar_id":"","url":"https://api.github.com/users/quattor","html_url":"https://github.com/quattor","followers_url":"https://api.github.com/users/quattor/followers","following_url":"https://api.github.com/users/quattor/following{/other_user}","gists_url":"https://api.github.com/users/quattor/gists{/gist_id}","starred_url":"https://api.github.com/users/quattor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quattor/subscriptions","organizations_url":"https://api.github.com/users/quattor/orgs","repos_url":"https://api.github.com/users/quattor/repos","events_url":"https://api.github.com/users/quattor/events{/privacy}","received_events_url":"https://api.github.com/users/quattor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/quattor/template-library-core","description":"Pan templates for the configuration modules","fork":false,"url":"https://api.github.com/repos/quattor/template-library-core","forks_url":"https://api.github.com/repos/quattor/template-library-core/forks","keys_url":"https://api.github.com/repos/quattor/template-library-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quattor/template-library-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quattor/template-library-core/teams","hooks_url":"https://api.github.com/repos/quattor/template-library-core/hooks","issue_events_url":"https://api.github.com/repos/quattor/template-library-core/issues/events{/number}","events_url":"https://api.github.com/repos/quattor/template-library-core/events","assignees_url":"https://api.github.com/repos/quattor/template-library-core/assignees{/user}","branches_url":"https://api.github.com/repos/quattor/template-library-core/branches{/branch}","tags_url":"https://api.github.com/repos/quattor/template-library-core/tags","blobs_url":"https://api.github.com/repos/quattor/template-library-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quattor/template-library-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quattor/template-library-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/quattor/template-library-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quattor/template-library-core/statuses/{sha}","languages_url":"https://api.github.com/repos/quattor/template-library-core/languages","stargazers_url":"https://api.github.com/repos/quattor/template-library-core/stargazers","contributors_url":"https://api.github.com/repos/quattor/template-library-core/contributors","subscribers_url":"https://api.github.com/repos/quattor/template-library-core/subscribers","subscription_url":"https://api.github.com/repos/quattor/template-library-core/subscription","commits_url":"https://api.github.com/repos/quattor/template-library-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/quattor/template-library-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/quattor/template-library-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/quattor/template-library-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/quattor/template-library-core/contents/{+path}","compare_url":"https://api.github.com/repos/quattor/template-library-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quattor/template-library-core/merges","archive_url":"https://api.github.com/repos/quattor/template-library-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quattor/template-library-core/downloads","issues_url":"https://api.github.com/repos/quattor/template-library-core/issues{/number}","pulls_url":"https://api.github.com/repos/quattor/template-library-core/pulls{/number}","milestones_url":"https://api.github.com/repos/quattor/template-library-core/milestones{/number}","notifications_url":"https://api.github.com/repos/quattor/template-library-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quattor/template-library-core/labels{/name}","releases_url":"https://api.github.com/repos/quattor/template-library-core/releases{/id}","deployments_url":"https://api.github.com/repos/quattor/template-library-core/deployments","created_at":"2013-08-30T12:52:11Z","updated_at":"2018-07-31T08:09:12Z","pushed_at":"2018-08-07T19:22:39Z","git_url":"git://github.com/quattor/template-library-core.git","ssh_url":"git@github.com:quattor/template-library-core.git","clone_url":"https://github.com/quattor/template-library-core.git","svn_url":"https://github.com/quattor/template-library-core","homepage":null,"size":7021,"stargazers_count":2,"watchers_count":2,"language":"Pan","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":19,"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":23,"open_issues":19,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/185"},"html":{"href":"https://github.com/quattor/template-library-core/pull/185"},"issue":{"href":"https://api.github.com/repos/quattor/template-library-core/issues/185"},"comments":{"href":"https://api.github.com/repos/quattor/template-library-core/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/quattor/template-library-core/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/quattor/template-library-core/statuses/53760c786e9c69b0955ceb513003af5dc55ff352"}},"author_association":"NONE"}}
{"actor":{"display_login":"XaF"}}