{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9","id":50190149,"html_url":"https://github.com/govro/ckanext-inventory/pull/9","diff_url":"https://github.com/govro/ckanext-inventory/pull/9.diff","patch_url":"https://github.com/govro/ckanext-inventory/pull/9.patch","issue_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/9","number":9,"state":"closed","locked":false,"title":"User Request Form","user":{"login":"palcu","id":772220,"avatar_url":"https://avatars.githubusercontent.com/u/772220?v=3","gravatar_id":"","url":"https://api.github.com/users/palcu","html_url":"https://github.com/palcu","followers_url":"https://api.github.com/users/palcu/followers","following_url":"https://api.github.com/users/palcu/following{/other_user}","gists_url":"https://api.github.com/users/palcu/gists{/gist_id}","starred_url":"https://api.github.com/users/palcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcu/subscriptions","organizations_url":"https://api.github.com/users/palcu/orgs","repos_url":"https://api.github.com/users/palcu/repos","events_url":"https://api.github.com/users/palcu/events{/privacy}","received_events_url":"https://api.github.com/users/palcu/received_events","type":"User","site_admin":false},"body":"# Need\r\n\r\n```gherkin\r\nAs an external dataset manager without an account\r\nI should request an account in a specific organization\r\n```\r\n\r\n# Deliverables\r\n\r\n- Public form, like the [register one](http://data.gov.ro/user/register)\r\n- Add CIF field to the form and check if there is an organization with that extra field\r\n- Set the user as [pending](https://github.com/ckan/ckan/blob/2f8d75c4da1ce5bf1fe9c59ab0f9aa8e3cd32270/ckan/model/user.py#L222-L223)\r\n\r\n# Solution\r\n\r\n- [x] go through the [tutorial](http://docs.ckan.org/en/ckan-2.4.1/extensions/adding-custom-fields.html) of adding an extra field on a dataset, but use it for a group\r\n  * the field will be called `inventory_organization_id` and it will have the CIF for our use case\r\n- [x] research how to add the field and checks in the register form\r\n- [x] add the user to the organization\r\n- [x] set the user in pending","created_at":"2015-11-09T22:52:08Z","updated_at":"2015-11-09T23:12:36Z","closed_at":"2015-11-09T23:12:36Z","merged_at":"2015-11-09T23:12:36Z","merge_commit_sha":"b947af29e2eef4f83d25e2ff3d58bae36abc5035","assignee":{"login":"palcu","id":772220,"avatar_url":"https://avatars.githubusercontent.com/u/772220?v=3","gravatar_id":"","url":"https://api.github.com/users/palcu","html_url":"https://github.com/palcu","followers_url":"https://api.github.com/users/palcu/followers","following_url":"https://api.github.com/users/palcu/following{/other_user}","gists_url":"https://api.github.com/users/palcu/gists{/gist_id}","starred_url":"https://api.github.com/users/palcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcu/subscriptions","organizations_url":"https://api.github.com/users/palcu/orgs","repos_url":"https://api.github.com/users/palcu/repos","events_url":"https://api.github.com/users/palcu/events{/privacy}","received_events_url":"https://api.github.com/users/palcu/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/govro/ckanext-inventory/milestones/1","html_url":"https://github.com/govro/ckanext-inventory/milestones/Phase%201%20(MVP)","labels_url":"https://api.github.com/repos/govro/ckanext-inventory/milestones/1/labels","id":1367655,"number":1,"title":"Phase 1 (MVP)","description":"","creator":{"login":"palcu","id":772220,"avatar_url":"https://avatars.githubusercontent.com/u/772220?v=3","gravatar_id":"","url":"https://api.github.com/users/palcu","html_url":"https://github.com/palcu","followers_url":"https://api.github.com/users/palcu/followers","following_url":"https://api.github.com/users/palcu/following{/other_user}","gists_url":"https://api.github.com/users/palcu/gists{/gist_id}","starred_url":"https://api.github.com/users/palcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcu/subscriptions","organizations_url":"https://api.github.com/users/palcu/orgs","repos_url":"https://api.github.com/users/palcu/repos","events_url":"https://api.github.com/users/palcu/events{/privacy}","received_events_url":"https://api.github.com/users/palcu/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":2,"state":"open","created_at":"2015-10-21T05:41:46Z","updated_at":"2015-11-09T23:12:36Z","due_on":"2015-12-01T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9/commits","review_comments_url":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9/comments","review_comment_url":"https://api.github.com/repos/govro/ckanext-inventory/pulls/comments{/number}","comments_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/9/comments","statuses_url":"https://api.github.com/repos/govro/ckanext-inventory/statuses/75e0883a94b889aa00bb1e8cf23d56cd29c224cc","head":{"label":"govro:9-user-request-form","ref":"9-user-request-form","sha":"75e0883a94b889aa00bb1e8cf23d56cd29c224cc","user":{"login":"govro","id":12530309,"avatar_url":"https://avatars.githubusercontent.com/u/12530309?v=3","gravatar_id":"","url":"https://api.github.com/users/govro","html_url":"https://github.com/govro","followers_url":"https://api.github.com/users/govro/followers","following_url":"https://api.github.com/users/govro/following{/other_user}","gists_url":"https://api.github.com/users/govro/gists{/gist_id}","starred_url":"https://api.github.com/users/govro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govro/subscriptions","organizations_url":"https://api.github.com/users/govro/orgs","repos_url":"https://api.github.com/users/govro/repos","events_url":"https://api.github.com/users/govro/events{/privacy}","received_events_url":"https://api.github.com/users/govro/received_events","type":"Organization","site_admin":false},"repo":{"id":44655062,"name":"ckanext-inventory","full_name":"govro/ckanext-inventory","owner":{"login":"govro","id":12530309,"avatar_url":"https://avatars.githubusercontent.com/u/12530309?v=3","gravatar_id":"","url":"https://api.github.com/users/govro","html_url":"https://github.com/govro","followers_url":"https://api.github.com/users/govro/followers","following_url":"https://api.github.com/users/govro/following{/other_user}","gists_url":"https://api.github.com/users/govro/gists{/gist_id}","starred_url":"https://api.github.com/users/govro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govro/subscriptions","organizations_url":"https://api.github.com/users/govro/orgs","repos_url":"https://api.github.com/users/govro/repos","events_url":"https://api.github.com/users/govro/events{/privacy}","received_events_url":"https://api.github.com/users/govro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/govro/ckanext-inventory","description":"CKAN extension for receiving dataset inventories from organizations","fork":false,"url":"https://api.github.com/repos/govro/ckanext-inventory","forks_url":"https://api.github.com/repos/govro/ckanext-inventory/forks","keys_url":"https://api.github.com/repos/govro/ckanext-inventory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/govro/ckanext-inventory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/govro/ckanext-inventory/teams","hooks_url":"https://api.github.com/repos/govro/ckanext-inventory/hooks","issue_events_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/events{/number}","events_url":"https://api.github.com/repos/govro/ckanext-inventory/events","assignees_url":"https://api.github.com/repos/govro/ckanext-inventory/assignees{/user}","branches_url":"https://api.github.com/repos/govro/ckanext-inventory/branches{/branch}","tags_url":"https://api.github.com/repos/govro/ckanext-inventory/tags","blobs_url":"https://api.github.com/repos/govro/ckanext-inventory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/govro/ckanext-inventory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/govro/ckanext-inventory/git/refs{/sha}","trees_url":"https://api.github.com/repos/govro/ckanext-inventory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/govro/ckanext-inventory/statuses/{sha}","languages_url":"https://api.github.com/repos/govro/ckanext-inventory/languages","stargazers_url":"https://api.github.com/repos/govro/ckanext-inventory/stargazers","contributors_url":"https://api.github.com/repos/govro/ckanext-inventory/contributors","subscribers_url":"https://api.github.com/repos/govro/ckanext-inventory/subscribers","subscription_url":"https://api.github.com/repos/govro/ckanext-inventory/subscription","commits_url":"https://api.github.com/repos/govro/ckanext-inventory/commits{/sha}","git_commits_url":"https://api.github.com/repos/govro/ckanext-inventory/git/commits{/sha}","comments_url":"https://api.github.com/repos/govro/ckanext-inventory/comments{/number}","issue_comment_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/comments{/number}","contents_url":"https://api.github.com/repos/govro/ckanext-inventory/contents/{+path}","compare_url":"https://api.github.com/repos/govro/ckanext-inventory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/govro/ckanext-inventory/merges","archive_url":"https://api.github.com/repos/govro/ckanext-inventory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/govro/ckanext-inventory/downloads","issues_url":"https://api.github.com/repos/govro/ckanext-inventory/issues{/number}","pulls_url":"https://api.github.com/repos/govro/ckanext-inventory/pulls{/number}","milestones_url":"https://api.github.com/repos/govro/ckanext-inventory/milestones{/number}","notifications_url":"https://api.github.com/repos/govro/ckanext-inventory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/govro/ckanext-inventory/labels{/name}","releases_url":"https://api.github.com/repos/govro/ckanext-inventory/releases{/id}","created_at":"2015-10-21T05:40:53Z","updated_at":"2015-10-26T16:05:58Z","pushed_at":"2015-11-09T23:12:36Z","git_url":"git://github.com/govro/ckanext-inventory.git","ssh_url":"git@github.com:govro/ckanext-inventory.git","clone_url":"https://github.com/govro/ckanext-inventory.git","svn_url":"https://github.com/govro/ckanext-inventory","homepage":"","size":188,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"govro:master","ref":"master","sha":"1541b8cdee9853556ccd1f46f841695517863f40","user":{"login":"govro","id":12530309,"avatar_url":"https://avatars.githubusercontent.com/u/12530309?v=3","gravatar_id":"","url":"https://api.github.com/users/govro","html_url":"https://github.com/govro","followers_url":"https://api.github.com/users/govro/followers","following_url":"https://api.github.com/users/govro/following{/other_user}","gists_url":"https://api.github.com/users/govro/gists{/gist_id}","starred_url":"https://api.github.com/users/govro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govro/subscriptions","organizations_url":"https://api.github.com/users/govro/orgs","repos_url":"https://api.github.com/users/govro/repos","events_url":"https://api.github.com/users/govro/events{/privacy}","received_events_url":"https://api.github.com/users/govro/received_events","type":"Organization","site_admin":false},"repo":{"id":44655062,"name":"ckanext-inventory","full_name":"govro/ckanext-inventory","owner":{"login":"govro","id":12530309,"avatar_url":"https://avatars.githubusercontent.com/u/12530309?v=3","gravatar_id":"","url":"https://api.github.com/users/govro","html_url":"https://github.com/govro","followers_url":"https://api.github.com/users/govro/followers","following_url":"https://api.github.com/users/govro/following{/other_user}","gists_url":"https://api.github.com/users/govro/gists{/gist_id}","starred_url":"https://api.github.com/users/govro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/govro/subscriptions","organizations_url":"https://api.github.com/users/govro/orgs","repos_url":"https://api.github.com/users/govro/repos","events_url":"https://api.github.com/users/govro/events{/privacy}","received_events_url":"https://api.github.com/users/govro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/govro/ckanext-inventory","description":"CKAN extension for receiving dataset inventories from organizations","fork":false,"url":"https://api.github.com/repos/govro/ckanext-inventory","forks_url":"https://api.github.com/repos/govro/ckanext-inventory/forks","keys_url":"https://api.github.com/repos/govro/ckanext-inventory/keys{/key_id}","collaborators_url":"https://api.github.com/repos/govro/ckanext-inventory/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/govro/ckanext-inventory/teams","hooks_url":"https://api.github.com/repos/govro/ckanext-inventory/hooks","issue_events_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/events{/number}","events_url":"https://api.github.com/repos/govro/ckanext-inventory/events","assignees_url":"https://api.github.com/repos/govro/ckanext-inventory/assignees{/user}","branches_url":"https://api.github.com/repos/govro/ckanext-inventory/branches{/branch}","tags_url":"https://api.github.com/repos/govro/ckanext-inventory/tags","blobs_url":"https://api.github.com/repos/govro/ckanext-inventory/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/govro/ckanext-inventory/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/govro/ckanext-inventory/git/refs{/sha}","trees_url":"https://api.github.com/repos/govro/ckanext-inventory/git/trees{/sha}","statuses_url":"https://api.github.com/repos/govro/ckanext-inventory/statuses/{sha}","languages_url":"https://api.github.com/repos/govro/ckanext-inventory/languages","stargazers_url":"https://api.github.com/repos/govro/ckanext-inventory/stargazers","contributors_url":"https://api.github.com/repos/govro/ckanext-inventory/contributors","subscribers_url":"https://api.github.com/repos/govro/ckanext-inventory/subscribers","subscription_url":"https://api.github.com/repos/govro/ckanext-inventory/subscription","commits_url":"https://api.github.com/repos/govro/ckanext-inventory/commits{/sha}","git_commits_url":"https://api.github.com/repos/govro/ckanext-inventory/git/commits{/sha}","comments_url":"https://api.github.com/repos/govro/ckanext-inventory/comments{/number}","issue_comment_url":"https://api.github.com/repos/govro/ckanext-inventory/issues/comments{/number}","contents_url":"https://api.github.com/repos/govro/ckanext-inventory/contents/{+path}","compare_url":"https://api.github.com/repos/govro/ckanext-inventory/compare/{base}...{head}","merges_url":"https://api.github.com/repos/govro/ckanext-inventory/merges","archive_url":"https://api.github.com/repos/govro/ckanext-inventory/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/govro/ckanext-inventory/downloads","issues_url":"https://api.github.com/repos/govro/ckanext-inventory/issues{/number}","pulls_url":"https://api.github.com/repos/govro/ckanext-inventory/pulls{/number}","milestones_url":"https://api.github.com/repos/govro/ckanext-inventory/milestones{/number}","notifications_url":"https://api.github.com/repos/govro/ckanext-inventory/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/govro/ckanext-inventory/labels{/name}","releases_url":"https://api.github.com/repos/govro/ckanext-inventory/releases{/id}","created_at":"2015-10-21T05:40:53Z","updated_at":"2015-10-26T16:05:58Z","pushed_at":"2015-11-09T23:12:36Z","git_url":"git://github.com/govro/ckanext-inventory.git","ssh_url":"git@github.com:govro/ckanext-inventory.git","clone_url":"https://github.com/govro/ckanext-inventory.git","svn_url":"https://github.com/govro/ckanext-inventory","homepage":"","size":188,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9"},"html":{"href":"https://github.com/govro/ckanext-inventory/pull/9"},"issue":{"href":"https://api.github.com/repos/govro/ckanext-inventory/issues/9"},"comments":{"href":"https://api.github.com/repos/govro/ckanext-inventory/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/govro/ckanext-inventory/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/govro/ckanext-inventory/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/govro/ckanext-inventory/statuses/75e0883a94b889aa00bb1e8cf23d56cd29c224cc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"palcu","id":772220,"avatar_url":"https://avatars.githubusercontent.com/u/772220?v=3","gravatar_id":"","url":"https://api.github.com/users/palcu","html_url":"https://github.com/palcu","followers_url":"https://api.github.com/users/palcu/followers","following_url":"https://api.github.com/users/palcu/following{/other_user}","gists_url":"https://api.github.com/users/palcu/gists{/gist_id}","starred_url":"https://api.github.com/users/palcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palcu/subscriptions","organizations_url":"https://api.github.com/users/palcu/orgs","repos_url":"https://api.github.com/users/palcu/repos","events_url":"https://api.github.com/users/palcu/events{/privacy}","received_events_url":"https://api.github.com/users/palcu/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":13,"additions":188,"deletions":10,"changed_files":10}}