{"action":"closed","number":84,"pull_request":{"url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84","id":176751219,"html_url":"https://github.com/tenders-exposed/elvis-backend-node/pull/84","diff_url":"https://github.com/tenders-exposed/elvis-backend-node/pull/84.diff","patch_url":"https://github.com/tenders-exposed/elvis-backend-node/pull/84.patch","issue_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/84","number":84,"state":"closed","locked":false,"title":"Add id to Bid and Lot","user":{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars1.githubusercontent.com/u/8862002?v=4","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false},"body":"As I explained [in #82](https://github.com/tenders-exposed/elvis-backend-node/issues/82#issuecomment-373661339) the mere fetching by `@rid` is slow if no index is used.\r\nSo I added a unique UUID to `Bid` and `Lot` called `id` that we only use internally to make queries, especially compound ones,  more efficient.\r\n\r\nSince we use this made up `id` and can't uniquely identify `Bid` and `Lot` from other fields (#67), we have to delete and recreate the bids and lots when we reimport the data so this `id` is not persistent and can't be used for endpoints. ","created_at":"2018-03-22T11:38:55Z","updated_at":"2018-03-22T13:27:57Z","closed_at":"2018-03-22T13:27:56Z","merged_at":"2018-03-22T13:27:56Z","merge_commit_sha":"70e708bbce5f1bdc999c73c6af820427535d1467","assignee":{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars1.githubusercontent.com/u/8862002?v=4","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false},"assignees":[{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars1.githubusercontent.com/u/8862002?v=4","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":732151331,"url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84/commits","review_comments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84/comments","review_comment_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/84/comments","statuses_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/statuses/8a1b0ce44760ede79a25b7c83d18a1fd3239334a","head":{"label":"tenders-exposed:feature/improve-performance","ref":"feature/improve-performance","sha":"8a1b0ce44760ede79a25b7c83d18a1fd3239334a","user":{"login":"tenders-exposed","id":15035878,"avatar_url":"https://avatars2.githubusercontent.com/u/15035878?v=4","gravatar_id":"","url":"https://api.github.com/users/tenders-exposed","html_url":"https://github.com/tenders-exposed","followers_url":"https://api.github.com/users/tenders-exposed/followers","following_url":"https://api.github.com/users/tenders-exposed/following{/other_user}","gists_url":"https://api.github.com/users/tenders-exposed/gists{/gist_id}","starred_url":"https://api.github.com/users/tenders-exposed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenders-exposed/subscriptions","organizations_url":"https://api.github.com/users/tenders-exposed/orgs","repos_url":"https://api.github.com/users/tenders-exposed/repos","events_url":"https://api.github.com/users/tenders-exposed/events{/privacy}","received_events_url":"https://api.github.com/users/tenders-exposed/received_events","type":"Organization","site_admin":false},"repo":{"id":108458380,"name":"elvis-backend-node","full_name":"tenders-exposed/elvis-backend-node","owner":{"login":"tenders-exposed","id":15035878,"avatar_url":"https://avatars2.githubusercontent.com/u/15035878?v=4","gravatar_id":"","url":"https://api.github.com/users/tenders-exposed","html_url":"https://github.com/tenders-exposed","followers_url":"https://api.github.com/users/tenders-exposed/followers","following_url":"https://api.github.com/users/tenders-exposed/following{/other_user}","gists_url":"https://api.github.com/users/tenders-exposed/gists{/gist_id}","starred_url":"https://api.github.com/users/tenders-exposed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenders-exposed/subscriptions","organizations_url":"https://api.github.com/users/tenders-exposed/orgs","repos_url":"https://api.github.com/users/tenders-exposed/repos","events_url":"https://api.github.com/users/tenders-exposed/events{/privacy}","received_events_url":"https://api.github.com/users/tenders-exposed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tenders-exposed/elvis-backend-node","description":"Search and visualize public procurements for EU countries http://tenders.exposed/","fork":false,"url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node","forks_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/forks","keys_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/teams","hooks_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/hooks","issue_events_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/events{/number}","events_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/events","assignees_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/assignees{/user}","branches_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/branches{/branch}","tags_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/tags","blobs_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/statuses/{sha}","languages_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/languages","stargazers_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/stargazers","contributors_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/contributors","subscribers_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/subscribers","subscription_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/subscription","commits_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/contents/{+path}","compare_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/merges","archive_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/downloads","issues_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues{/number}","pulls_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls{/number}","milestones_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/milestones{/number}","notifications_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/labels{/name}","releases_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/releases{/id}","deployments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/deployments","created_at":"2017-10-26T19:48:46Z","updated_at":"2018-03-21T10:50:26Z","pushed_at":"2018-03-22T13:27:56Z","git_url":"git://github.com/tenders-exposed/elvis-backend-node.git","ssh_url":"git@github.com:tenders-exposed/elvis-backend-node.git","clone_url":"https://github.com/tenders-exposed/elvis-backend-node.git","svn_url":"https://github.com/tenders-exposed/elvis-backend-node","homepage":"","size":380,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":37,"watchers":1,"default_branch":"master"}},"base":{"label":"tenders-exposed:develop","ref":"develop","sha":"c191bb6b2324a0cf811c43e2dd7177aa54f5d6d3","user":{"login":"tenders-exposed","id":15035878,"avatar_url":"https://avatars2.githubusercontent.com/u/15035878?v=4","gravatar_id":"","url":"https://api.github.com/users/tenders-exposed","html_url":"https://github.com/tenders-exposed","followers_url":"https://api.github.com/users/tenders-exposed/followers","following_url":"https://api.github.com/users/tenders-exposed/following{/other_user}","gists_url":"https://api.github.com/users/tenders-exposed/gists{/gist_id}","starred_url":"https://api.github.com/users/tenders-exposed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenders-exposed/subscriptions","organizations_url":"https://api.github.com/users/tenders-exposed/orgs","repos_url":"https://api.github.com/users/tenders-exposed/repos","events_url":"https://api.github.com/users/tenders-exposed/events{/privacy}","received_events_url":"https://api.github.com/users/tenders-exposed/received_events","type":"Organization","site_admin":false},"repo":{"id":108458380,"name":"elvis-backend-node","full_name":"tenders-exposed/elvis-backend-node","owner":{"login":"tenders-exposed","id":15035878,"avatar_url":"https://avatars2.githubusercontent.com/u/15035878?v=4","gravatar_id":"","url":"https://api.github.com/users/tenders-exposed","html_url":"https://github.com/tenders-exposed","followers_url":"https://api.github.com/users/tenders-exposed/followers","following_url":"https://api.github.com/users/tenders-exposed/following{/other_user}","gists_url":"https://api.github.com/users/tenders-exposed/gists{/gist_id}","starred_url":"https://api.github.com/users/tenders-exposed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tenders-exposed/subscriptions","organizations_url":"https://api.github.com/users/tenders-exposed/orgs","repos_url":"https://api.github.com/users/tenders-exposed/repos","events_url":"https://api.github.com/users/tenders-exposed/events{/privacy}","received_events_url":"https://api.github.com/users/tenders-exposed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tenders-exposed/elvis-backend-node","description":"Search and visualize public procurements for EU countries http://tenders.exposed/","fork":false,"url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node","forks_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/forks","keys_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/teams","hooks_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/hooks","issue_events_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/events{/number}","events_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/events","assignees_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/assignees{/user}","branches_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/branches{/branch}","tags_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/tags","blobs_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/statuses/{sha}","languages_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/languages","stargazers_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/stargazers","contributors_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/contributors","subscribers_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/subscribers","subscription_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/subscription","commits_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/contents/{+path}","compare_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/merges","archive_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/downloads","issues_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues{/number}","pulls_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls{/number}","milestones_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/milestones{/number}","notifications_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/labels{/name}","releases_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/releases{/id}","deployments_url":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/deployments","created_at":"2017-10-26T19:48:46Z","updated_at":"2018-03-21T10:50:26Z","pushed_at":"2018-03-22T13:27:56Z","git_url":"git://github.com/tenders-exposed/elvis-backend-node.git","ssh_url":"git@github.com:tenders-exposed/elvis-backend-node.git","clone_url":"https://github.com/tenders-exposed/elvis-backend-node.git","svn_url":"https://github.com/tenders-exposed/elvis-backend-node","homepage":"","size":380,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":37,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84"},"html":{"href":"https://github.com/tenders-exposed/elvis-backend-node/pull/84"},"issue":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/84"},"comments":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/tenders-exposed/elvis-backend-node/statuses/8a1b0ce44760ede79a25b7c83d18a1fd3239334a"}},"author_association":"OWNER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"georgiana-b","id":8862002,"avatar_url":"https://avatars1.githubusercontent.com/u/8862002?v=4","gravatar_id":"","url":"https://api.github.com/users/georgiana-b","html_url":"https://github.com/georgiana-b","followers_url":"https://api.github.com/users/georgiana-b/followers","following_url":"https://api.github.com/users/georgiana-b/following{/other_user}","gists_url":"https://api.github.com/users/georgiana-b/gists{/gist_id}","starred_url":"https://api.github.com/users/georgiana-b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgiana-b/subscriptions","organizations_url":"https://api.github.com/users/georgiana-b/orgs","repos_url":"https://api.github.com/users/georgiana-b/repos","events_url":"https://api.github.com/users/georgiana-b/events{/privacy}","received_events_url":"https://api.github.com/users/georgiana-b/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":148,"deletions":46,"changed_files":24}}
{"actor":{"display_login":"georgiana-b"}}