{"action":"created","comment":{"url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments/35001044","id":35001044,"diff_hunk":"@@ -0,0 +1,12 @@\n+#!/bin/sh\n+die () {\n+    echo >&2 \"$@\"\n+    exit 1\n+}\n+\n+[ \"$#\" -eq 2 ] || die \"2 arguments required, $# provided. arg1: organisation, arg2: field name\"\n+\n+curl http://localhost:8983/solr/ndm/query?q=organization:$1\\&rows=70000\\&fl=$2 | \\\n+   jq '.response.docs' | \\\n+   jq \"[.[].$2]\" | \\\n+   jq 'unique'","path":"ckanext/stcndm/bin/get_unique_field_values.sh","position":12,"original_position":12,"commit_id":"152b9992a5412bce226b7f2e9bea2c783518a4c9","original_commit_id":"152b9992a5412bce226b7f2e9bea2c783518a4c9","user":{"login":"wardi","id":153258,"avatar_url":"https://avatars.githubusercontent.com/u/153258?v=3","gravatar_id":"","url":"https://api.github.com/users/wardi","html_url":"https://github.com/wardi","followers_url":"https://api.github.com/users/wardi/followers","following_url":"https://api.github.com/users/wardi/following{/other_user}","gists_url":"https://api.github.com/users/wardi/gists{/gist_id}","starred_url":"https://api.github.com/users/wardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardi/subscriptions","organizations_url":"https://api.github.com/users/wardi/orgs","repos_url":"https://api.github.com/users/wardi/repos","events_url":"https://api.github.com/users/wardi/events{/privacy}","received_events_url":"https://api.github.com/users/wardi/received_events","type":"User","site_admin":false},"body":"Cool! didn't know you could do this so easily with jq","created_at":"2015-07-20T14:38:07Z","updated_at":"2015-07-20T14:38:07Z","html_url":"https://github.com/open-data/ckanext-stcndm/pull/27#discussion_r35001044","pull_request_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments/35001044"},"html":{"href":"https://github.com/open-data/ckanext-stcndm/pull/27#discussion_r35001044"},"pull_request":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27","id":40357803,"html_url":"https://github.com/open-data/ckanext-stcndm/pull/27","diff_url":"https://github.com/open-data/ckanext-stcndm/pull/27.diff","patch_url":"https://github.com/open-data/ckanext-stcndm/pull/27.patch","issue_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/27","number":27,"state":"closed","locked":false,"title":"Work on importing IMDB to new NDM","user":{"login":"marcfor","id":13170046,"avatar_url":"https://avatars.githubusercontent.com/u/13170046?v=3","gravatar_id":"","url":"https://api.github.com/users/marcfor","html_url":"https://github.com/marcfor","followers_url":"https://api.github.com/users/marcfor/followers","following_url":"https://api.github.com/users/marcfor/following{/other_user}","gists_url":"https://api.github.com/users/marcfor/gists{/gist_id}","starred_url":"https://api.github.com/users/marcfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcfor/subscriptions","organizations_url":"https://api.github.com/users/marcfor/orgs","repos_url":"https://api.github.com/users/marcfor/repos","events_url":"https://api.github.com/users/marcfor/events{/privacy}","received_events_url":"https://api.github.com/users/marcfor/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-20T14:31:05Z","updated_at":"2015-07-20T14:38:07Z","closed_at":"2015-07-20T14:31:14Z","merged_at":"2015-07-20T14:31:14Z","merge_commit_sha":"e80bd1c1d5135015289ce301708225b40df11433","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27/commits","review_comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27/comments","review_comment_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/27/comments","statuses_url":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/152b9992a5412bce226b7f2e9bea2c783518a4c9","head":{"label":"marcfor:master","ref":"master","sha":"152b9992a5412bce226b7f2e9bea2c783518a4c9","user":{"login":"marcfor","id":13170046,"avatar_url":"https://avatars.githubusercontent.com/u/13170046?v=3","gravatar_id":"","url":"https://api.github.com/users/marcfor","html_url":"https://github.com/marcfor","followers_url":"https://api.github.com/users/marcfor/followers","following_url":"https://api.github.com/users/marcfor/following{/other_user}","gists_url":"https://api.github.com/users/marcfor/gists{/gist_id}","starred_url":"https://api.github.com/users/marcfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcfor/subscriptions","organizations_url":"https://api.github.com/users/marcfor/orgs","repos_url":"https://api.github.com/users/marcfor/repos","events_url":"https://api.github.com/users/marcfor/events{/privacy}","received_events_url":"https://api.github.com/users/marcfor/received_events","type":"User","site_admin":false},"repo":{"id":38620839,"name":"ckanext-stcndm","full_name":"marcfor/ckanext-stcndm","owner":{"login":"marcfor","id":13170046,"avatar_url":"https://avatars.githubusercontent.com/u/13170046?v=3","gravatar_id":"","url":"https://api.github.com/users/marcfor","html_url":"https://github.com/marcfor","followers_url":"https://api.github.com/users/marcfor/followers","following_url":"https://api.github.com/users/marcfor/following{/other_user}","gists_url":"https://api.github.com/users/marcfor/gists{/gist_id}","starred_url":"https://api.github.com/users/marcfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcfor/subscriptions","organizations_url":"https://api.github.com/users/marcfor/orgs","repos_url":"https://api.github.com/users/marcfor/repos","events_url":"https://api.github.com/users/marcfor/events{/privacy}","received_events_url":"https://api.github.com/users/marcfor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marcfor/ckanext-stcndm","description":"","fork":true,"url":"https://api.github.com/repos/marcfor/ckanext-stcndm","forks_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/forks","keys_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/teams","hooks_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/hooks","issue_events_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/issues/events{/number}","events_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/events","assignees_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/assignees{/user}","branches_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/branches{/branch}","tags_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/tags","blobs_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/statuses/{sha}","languages_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/languages","stargazers_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/stargazers","contributors_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/contributors","subscribers_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/subscribers","subscription_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/subscription","commits_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/contents/{+path}","compare_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/merges","archive_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/downloads","issues_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/issues{/number}","pulls_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/pulls{/number}","milestones_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/milestones{/number}","notifications_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/labels{/name}","releases_url":"https://api.github.com/repos/marcfor/ckanext-stcndm/releases{/id}","created_at":"2015-07-06T13:31:55Z","updated_at":"2015-07-06T13:31:55Z","pushed_at":"2015-07-20T14:26:13Z","git_url":"git://github.com/marcfor/ckanext-stcndm.git","ssh_url":"git@github.com:marcfor/ckanext-stcndm.git","clone_url":"https://github.com/marcfor/ckanext-stcndm.git","svn_url":"https://github.com/marcfor/ckanext-stcndm","homepage":null,"size":236,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"open-data:master","ref":"master","sha":"fa2f3ec4c3ba0a8136bc03b0d49eaf5f49757534","user":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"repo":{"id":38455327,"name":"ckanext-stcndm","full_name":"open-data/ckanext-stcndm","owner":{"login":"open-data","id":2651841,"avatar_url":"https://avatars.githubusercontent.com/u/2651841?v=3","gravatar_id":"","url":"https://api.github.com/users/open-data","html_url":"https://github.com/open-data","followers_url":"https://api.github.com/users/open-data/followers","following_url":"https://api.github.com/users/open-data/following{/other_user}","gists_url":"https://api.github.com/users/open-data/gists{/gist_id}","starred_url":"https://api.github.com/users/open-data/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-data/subscriptions","organizations_url":"https://api.github.com/users/open-data/orgs","repos_url":"https://api.github.com/users/open-data/repos","events_url":"https://api.github.com/users/open-data/events{/privacy}","received_events_url":"https://api.github.com/users/open-data/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-data/ckanext-stcndm","description":"","fork":false,"url":"https://api.github.com/repos/open-data/ckanext-stcndm","forks_url":"https://api.github.com/repos/open-data/ckanext-stcndm/forks","keys_url":"https://api.github.com/repos/open-data/ckanext-stcndm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-data/ckanext-stcndm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-data/ckanext-stcndm/teams","hooks_url":"https://api.github.com/repos/open-data/ckanext-stcndm/hooks","issue_events_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/events{/number}","events_url":"https://api.github.com/repos/open-data/ckanext-stcndm/events","assignees_url":"https://api.github.com/repos/open-data/ckanext-stcndm/assignees{/user}","branches_url":"https://api.github.com/repos/open-data/ckanext-stcndm/branches{/branch}","tags_url":"https://api.github.com/repos/open-data/ckanext-stcndm/tags","blobs_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/{sha}","languages_url":"https://api.github.com/repos/open-data/ckanext-stcndm/languages","stargazers_url":"https://api.github.com/repos/open-data/ckanext-stcndm/stargazers","contributors_url":"https://api.github.com/repos/open-data/ckanext-stcndm/contributors","subscribers_url":"https://api.github.com/repos/open-data/ckanext-stcndm/subscribers","subscription_url":"https://api.github.com/repos/open-data/ckanext-stcndm/subscription","commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-data/ckanext-stcndm/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-data/ckanext-stcndm/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-data/ckanext-stcndm/contents/{+path}","compare_url":"https://api.github.com/repos/open-data/ckanext-stcndm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-data/ckanext-stcndm/merges","archive_url":"https://api.github.com/repos/open-data/ckanext-stcndm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-data/ckanext-stcndm/downloads","issues_url":"https://api.github.com/repos/open-data/ckanext-stcndm/issues{/number}","pulls_url":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls{/number}","milestones_url":"https://api.github.com/repos/open-data/ckanext-stcndm/milestones{/number}","notifications_url":"https://api.github.com/repos/open-data/ckanext-stcndm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-data/ckanext-stcndm/labels{/name}","releases_url":"https://api.github.com/repos/open-data/ckanext-stcndm/releases{/id}","created_at":"2015-07-02T20:27:39Z","updated_at":"2015-07-02T20:27:51Z","pushed_at":"2015-07-20T14:31:14Z","git_url":"git://github.com/open-data/ckanext-stcndm.git","ssh_url":"git@github.com:open-data/ckanext-stcndm.git","clone_url":"https://github.com/open-data/ckanext-stcndm.git","svn_url":"https://github.com/open-data/ckanext-stcndm","homepage":null,"size":526,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27"},"html":{"href":"https://github.com/open-data/ckanext-stcndm/pull/27"},"issue":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/27"},"comments":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/open-data/ckanext-stcndm/statuses/152b9992a5412bce226b7f2e9bea2c783518a4c9"}}}}