{"action":"closed","number":286,"pull_request":{"url":"https://api.github.com/repos/armada-ths/ais/pulls/286","id":135702212,"html_url":"https://github.com/armada-ths/ais/pull/286","diff_url":"https://github.com/armada-ths/ais/pull/286.diff","patch_url":"https://github.com/armada-ths/ais/pull/286.patch","issue_url":"https://api.github.com/repos/armada-ths/ais/issues/286","number":286,"state":"closed","locked":false,"title":"Script to fix db","user":{"login":"ellwes","id":12495394,"avatar_url":"https://avatars2.githubusercontent.com/u/12495394?v=4","gravatar_id":"","url":"https://api.github.com/users/ellwes","html_url":"https://github.com/ellwes","followers_url":"https://api.github.com/users/ellwes/followers","following_url":"https://api.github.com/users/ellwes/following{/other_user}","gists_url":"https://api.github.com/users/ellwes/gists{/gist_id}","starred_url":"https://api.github.com/users/ellwes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellwes/subscriptions","organizations_url":"https://api.github.com/users/ellwes/orgs","repos_url":"https://api.github.com/users/ellwes/repos","events_url":"https://api.github.com/users/ellwes/events{/privacy}","received_events_url":"https://api.github.com/users/ellwes/received_events","type":"User","site_admin":false},"body":"Adds a script that will fix faulty orders in the db (due to an earlier bug).\r\n\r\nProblem: In the db there are some orders from last year where the exhibitor is from this year and the product is from last year.\r\nReason: When a company submitted pr, the exhibitor from last year was overwritten and last year orders were connected to this year exhibitor. This bug is now solved.\r\nTest:\r\nIn admin-view: Create an exhibitor for this year. Create a product for last year and one for this year.  Create following orders:\r\nTwo that is connected to this year exhibitor and last year product.\r\nOne that is connected to this year exhibitor and this years product.\r\nOne that is connected to last year product and last year exhibitor.\r\nRun script.\r\nCheck that only one new exhibitor is created and that both faulty orders are connected to that exhibitor. The other orders should remain as before. \r\n","created_at":"2017-08-14T22:39:07Z","updated_at":"2017-08-14T23:55:33Z","closed_at":"2017-08-14T23:55:33Z","merged_at":"2017-08-14T23:55:33Z","merge_commit_sha":"1355e706dc5e8ccd08840f107e1ed25afe3ab278","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/armada-ths/ais/pulls/286/commits","review_comments_url":"https://api.github.com/repos/armada-ths/ais/pulls/286/comments","review_comment_url":"https://api.github.com/repos/armada-ths/ais/pulls/comments{/number}","comments_url":"https://api.github.com/repos/armada-ths/ais/issues/286/comments","statuses_url":"https://api.github.com/repos/armada-ths/ais/statuses/a2e9d55d08ed38f824968035468187063a207ac4","head":{"label":"armada-ths:fix-db-script","ref":"fix-db-script","sha":"a2e9d55d08ed38f824968035468187063a207ac4","user":{"login":"armada-ths","id":6577346,"avatar_url":"https://avatars3.githubusercontent.com/u/6577346?v=4","gravatar_id":"","url":"https://api.github.com/users/armada-ths","html_url":"https://github.com/armada-ths","followers_url":"https://api.github.com/users/armada-ths/followers","following_url":"https://api.github.com/users/armada-ths/following{/other_user}","gists_url":"https://api.github.com/users/armada-ths/gists{/gist_id}","starred_url":"https://api.github.com/users/armada-ths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armada-ths/subscriptions","organizations_url":"https://api.github.com/users/armada-ths/orgs","repos_url":"https://api.github.com/users/armada-ths/repos","events_url":"https://api.github.com/users/armada-ths/events{/privacy}","received_events_url":"https://api.github.com/users/armada-ths/received_events","type":"Organization","site_admin":false},"repo":{"id":38750053,"name":"ais","full_name":"armada-ths/ais","owner":{"login":"armada-ths","id":6577346,"avatar_url":"https://avatars3.githubusercontent.com/u/6577346?v=4","gravatar_id":"","url":"https://api.github.com/users/armada-ths","html_url":"https://github.com/armada-ths","followers_url":"https://api.github.com/users/armada-ths/followers","following_url":"https://api.github.com/users/armada-ths/following{/other_user}","gists_url":"https://api.github.com/users/armada-ths/gists{/gist_id}","starred_url":"https://api.github.com/users/armada-ths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armada-ths/subscriptions","organizations_url":"https://api.github.com/users/armada-ths/orgs","repos_url":"https://api.github.com/users/armada-ths/repos","events_url":"https://api.github.com/users/armada-ths/events{/privacy}","received_events_url":"https://api.github.com/users/armada-ths/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/armada-ths/ais","description":"Python/Django AIS","fork":false,"url":"https://api.github.com/repos/armada-ths/ais","forks_url":"https://api.github.com/repos/armada-ths/ais/forks","keys_url":"https://api.github.com/repos/armada-ths/ais/keys{/key_id}","collaborators_url":"https://api.github.com/repos/armada-ths/ais/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/armada-ths/ais/teams","hooks_url":"https://api.github.com/repos/armada-ths/ais/hooks","issue_events_url":"https://api.github.com/repos/armada-ths/ais/issues/events{/number}","events_url":"https://api.github.com/repos/armada-ths/ais/events","assignees_url":"https://api.github.com/repos/armada-ths/ais/assignees{/user}","branches_url":"https://api.github.com/repos/armada-ths/ais/branches{/branch}","tags_url":"https://api.github.com/repos/armada-ths/ais/tags","blobs_url":"https://api.github.com/repos/armada-ths/ais/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/armada-ths/ais/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/armada-ths/ais/git/refs{/sha}","trees_url":"https://api.github.com/repos/armada-ths/ais/git/trees{/sha}","statuses_url":"https://api.github.com/repos/armada-ths/ais/statuses/{sha}","languages_url":"https://api.github.com/repos/armada-ths/ais/languages","stargazers_url":"https://api.github.com/repos/armada-ths/ais/stargazers","contributors_url":"https://api.github.com/repos/armada-ths/ais/contributors","subscribers_url":"https://api.github.com/repos/armada-ths/ais/subscribers","subscription_url":"https://api.github.com/repos/armada-ths/ais/subscription","commits_url":"https://api.github.com/repos/armada-ths/ais/commits{/sha}","git_commits_url":"https://api.github.com/repos/armada-ths/ais/git/commits{/sha}","comments_url":"https://api.github.com/repos/armada-ths/ais/comments{/number}","issue_comment_url":"https://api.github.com/repos/armada-ths/ais/issues/comments{/number}","contents_url":"https://api.github.com/repos/armada-ths/ais/contents/{+path}","compare_url":"https://api.github.com/repos/armada-ths/ais/compare/{base}...{head}","merges_url":"https://api.github.com/repos/armada-ths/ais/merges","archive_url":"https://api.github.com/repos/armada-ths/ais/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/armada-ths/ais/downloads","issues_url":"https://api.github.com/repos/armada-ths/ais/issues{/number}","pulls_url":"https://api.github.com/repos/armada-ths/ais/pulls{/number}","milestones_url":"https://api.github.com/repos/armada-ths/ais/milestones{/number}","notifications_url":"https://api.github.com/repos/armada-ths/ais/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/armada-ths/ais/labels{/name}","releases_url":"https://api.github.com/repos/armada-ths/ais/releases{/id}","deployments_url":"https://api.github.com/repos/armada-ths/ais/deployments","created_at":"2015-07-08T11:29:50Z","updated_at":"2017-05-04T22:21:20Z","pushed_at":"2017-08-14T23:55:33Z","git_url":"git://github.com/armada-ths/ais.git","ssh_url":"git@github.com:armada-ths/ais.git","clone_url":"https://github.com/armada-ths/ais.git","svn_url":"https://github.com/armada-ths/ais","homepage":"","size":8983,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":11,"default_branch":"master"}},"base":{"label":"armada-ths:ais2","ref":"ais2","sha":"c9ea55e36e867e98bce923460c8a72dcc322a17b","user":{"login":"armada-ths","id":6577346,"avatar_url":"https://avatars3.githubusercontent.com/u/6577346?v=4","gravatar_id":"","url":"https://api.github.com/users/armada-ths","html_url":"https://github.com/armada-ths","followers_url":"https://api.github.com/users/armada-ths/followers","following_url":"https://api.github.com/users/armada-ths/following{/other_user}","gists_url":"https://api.github.com/users/armada-ths/gists{/gist_id}","starred_url":"https://api.github.com/users/armada-ths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armada-ths/subscriptions","organizations_url":"https://api.github.com/users/armada-ths/orgs","repos_url":"https://api.github.com/users/armada-ths/repos","events_url":"https://api.github.com/users/armada-ths/events{/privacy}","received_events_url":"https://api.github.com/users/armada-ths/received_events","type":"Organization","site_admin":false},"repo":{"id":38750053,"name":"ais","full_name":"armada-ths/ais","owner":{"login":"armada-ths","id":6577346,"avatar_url":"https://avatars3.githubusercontent.com/u/6577346?v=4","gravatar_id":"","url":"https://api.github.com/users/armada-ths","html_url":"https://github.com/armada-ths","followers_url":"https://api.github.com/users/armada-ths/followers","following_url":"https://api.github.com/users/armada-ths/following{/other_user}","gists_url":"https://api.github.com/users/armada-ths/gists{/gist_id}","starred_url":"https://api.github.com/users/armada-ths/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armada-ths/subscriptions","organizations_url":"https://api.github.com/users/armada-ths/orgs","repos_url":"https://api.github.com/users/armada-ths/repos","events_url":"https://api.github.com/users/armada-ths/events{/privacy}","received_events_url":"https://api.github.com/users/armada-ths/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/armada-ths/ais","description":"Python/Django AIS","fork":false,"url":"https://api.github.com/repos/armada-ths/ais","forks_url":"https://api.github.com/repos/armada-ths/ais/forks","keys_url":"https://api.github.com/repos/armada-ths/ais/keys{/key_id}","collaborators_url":"https://api.github.com/repos/armada-ths/ais/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/armada-ths/ais/teams","hooks_url":"https://api.github.com/repos/armada-ths/ais/hooks","issue_events_url":"https://api.github.com/repos/armada-ths/ais/issues/events{/number}","events_url":"https://api.github.com/repos/armada-ths/ais/events","assignees_url":"https://api.github.com/repos/armada-ths/ais/assignees{/user}","branches_url":"https://api.github.com/repos/armada-ths/ais/branches{/branch}","tags_url":"https://api.github.com/repos/armada-ths/ais/tags","blobs_url":"https://api.github.com/repos/armada-ths/ais/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/armada-ths/ais/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/armada-ths/ais/git/refs{/sha}","trees_url":"https://api.github.com/repos/armada-ths/ais/git/trees{/sha}","statuses_url":"https://api.github.com/repos/armada-ths/ais/statuses/{sha}","languages_url":"https://api.github.com/repos/armada-ths/ais/languages","stargazers_url":"https://api.github.com/repos/armada-ths/ais/stargazers","contributors_url":"https://api.github.com/repos/armada-ths/ais/contributors","subscribers_url":"https://api.github.com/repos/armada-ths/ais/subscribers","subscription_url":"https://api.github.com/repos/armada-ths/ais/subscription","commits_url":"https://api.github.com/repos/armada-ths/ais/commits{/sha}","git_commits_url":"https://api.github.com/repos/armada-ths/ais/git/commits{/sha}","comments_url":"https://api.github.com/repos/armada-ths/ais/comments{/number}","issue_comment_url":"https://api.github.com/repos/armada-ths/ais/issues/comments{/number}","contents_url":"https://api.github.com/repos/armada-ths/ais/contents/{+path}","compare_url":"https://api.github.com/repos/armada-ths/ais/compare/{base}...{head}","merges_url":"https://api.github.com/repos/armada-ths/ais/merges","archive_url":"https://api.github.com/repos/armada-ths/ais/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/armada-ths/ais/downloads","issues_url":"https://api.github.com/repos/armada-ths/ais/issues{/number}","pulls_url":"https://api.github.com/repos/armada-ths/ais/pulls{/number}","milestones_url":"https://api.github.com/repos/armada-ths/ais/milestones{/number}","notifications_url":"https://api.github.com/repos/armada-ths/ais/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/armada-ths/ais/labels{/name}","releases_url":"https://api.github.com/repos/armada-ths/ais/releases{/id}","deployments_url":"https://api.github.com/repos/armada-ths/ais/deployments","created_at":"2015-07-08T11:29:50Z","updated_at":"2017-05-04T22:21:20Z","pushed_at":"2017-08-14T23:55:33Z","git_url":"git://github.com/armada-ths/ais.git","ssh_url":"git@github.com:armada-ths/ais.git","clone_url":"https://github.com/armada-ths/ais.git","svn_url":"https://github.com/armada-ths/ais","homepage":"","size":8983,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/armada-ths/ais/pulls/286"},"html":{"href":"https://github.com/armada-ths/ais/pull/286"},"issue":{"href":"https://api.github.com/repos/armada-ths/ais/issues/286"},"comments":{"href":"https://api.github.com/repos/armada-ths/ais/issues/286/comments"},"review_comments":{"href":"https://api.github.com/repos/armada-ths/ais/pulls/286/comments"},"review_comment":{"href":"https://api.github.com/repos/armada-ths/ais/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/armada-ths/ais/pulls/286/commits"},"statuses":{"href":"https://api.github.com/repos/armada-ths/ais/statuses/a2e9d55d08ed38f824968035468187063a207ac4"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ellwes","id":12495394,"avatar_url":"https://avatars2.githubusercontent.com/u/12495394?v=4","gravatar_id":"","url":"https://api.github.com/users/ellwes","html_url":"https://github.com/ellwes","followers_url":"https://api.github.com/users/ellwes/followers","following_url":"https://api.github.com/users/ellwes/following{/other_user}","gists_url":"https://api.github.com/users/ellwes/gists{/gist_id}","starred_url":"https://api.github.com/users/ellwes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellwes/subscriptions","organizations_url":"https://api.github.com/users/ellwes/orgs","repos_url":"https://api.github.com/users/ellwes/repos","events_url":"https://api.github.com/users/ellwes/events{/privacy}","received_events_url":"https://api.github.com/users/ellwes/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":23,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"ellwes"}}