{"action":"created","comment":{"url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments/366414207","pull_request_review_id":342632747,"id":366414207,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM2NjQxNDIwNw==","diff_hunk":"@@ -149,6 +152,22 @@ export class EtoApi {\n     });\n   }\n \n+  public getBookBuildingStatsList(etosIds: string[]): Promise<Dictionary<IBookBuildingStats>> {\n+    return this.httpClient\n+      .get<TBookBuildingsStatsList>({\n+        baseUrl: BASE_PATH,\n+        url: `/bookbuilding-stats?eto_ids=${etosIds}`,\n+      })\n+      .then(response => {\n+        const etosStats: Dictionary<IBookBuildingStats> = response.body.bookbuildingStats;\n+        // backend returns eto with ID in different casing, so it has to be lowercase\n+        for (let key in etosStats) {","path":"packages/web/app/lib/api/eto/EtoApi.ts","position":null,"original_position":30,"commit_id":"b3dff153c5eb1a62c8c500c1b276274414ba365b","original_commit_id":"5fb41573bbe3d15608a46ec0413e8092f828c3a3","user":{"login":"DmitriyNoa","id":9481629,"node_id":"MDQ6VXNlcjk0ODE2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/9481629?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyNoa","html_url":"https://github.com/DmitriyNoa","followers_url":"https://api.github.com/users/DmitriyNoa/followers","following_url":"https://api.github.com/users/DmitriyNoa/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyNoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyNoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyNoa/subscriptions","organizations_url":"https://api.github.com/users/DmitriyNoa/orgs","repos_url":"https://api.github.com/users/DmitriyNoa/repos","events_url":"https://api.github.com/users/DmitriyNoa/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyNoa/received_events","type":"User","site_admin":false},"body":"So the issue was in HttpCelint toSnakeCase function that snake cases the response from the backend and it affected the etoId as they were used as object keys. Changed to use web2-utils method to transform etoId back to valid format.","created_at":"2020-01-14T15:46:01Z","updated_at":"2020-01-14T15:46:01Z","html_url":"https://github.com/Neufund/platform-frontend/pull/3888#discussion_r366414207","pull_request_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments/366414207"},"html":{"href":"https://github.com/Neufund/platform-frontend/pull/3888#discussion_r366414207"},"pull_request":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888"}},"in_reply_to_id":366331204},"pull_request":{"url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888","id":361395551,"node_id":"MDExOlB1bGxSZXF1ZXN0MzYxMzk1NTUx","html_url":"https://github.com/Neufund/platform-frontend/pull/3888","diff_url":"https://github.com/Neufund/platform-frontend/pull/3888.diff","patch_url":"https://github.com/Neufund/platform-frontend/pull/3888.patch","issue_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/3888","number":3888,"state":"open","locked":false,"title":"3762 optimize getting bookbuilding stats","user":{"login":"DmitriyNoa","id":9481629,"node_id":"MDQ6VXNlcjk0ODE2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/9481629?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyNoa","html_url":"https://github.com/DmitriyNoa","followers_url":"https://api.github.com/users/DmitriyNoa/followers","following_url":"https://api.github.com/users/DmitriyNoa/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyNoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyNoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyNoa/subscriptions","organizations_url":"https://api.github.com/users/DmitriyNoa/orgs","repos_url":"https://api.github.com/users/DmitriyNoa/repos","events_url":"https://api.github.com/users/DmitriyNoa/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyNoa/received_events","type":"User","site_admin":false},"body":"","created_at":"2020-01-10T10:58:30Z","updated_at":"2020-01-14T15:46:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b48b570216b889f8d11fc5b71a340bb4450614c","assignee":{"login":"DmitriyNoa","id":9481629,"node_id":"MDQ6VXNlcjk0ODE2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/9481629?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyNoa","html_url":"https://github.com/DmitriyNoa","followers_url":"https://api.github.com/users/DmitriyNoa/followers","following_url":"https://api.github.com/users/DmitriyNoa/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyNoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyNoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyNoa/subscriptions","organizations_url":"https://api.github.com/users/DmitriyNoa/orgs","repos_url":"https://api.github.com/users/DmitriyNoa/repos","events_url":"https://api.github.com/users/DmitriyNoa/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyNoa/received_events","type":"User","site_admin":false},"assignees":[{"login":"DmitriyNoa","id":9481629,"node_id":"MDQ6VXNlcjk0ODE2Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/9481629?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitriyNoa","html_url":"https://github.com/DmitriyNoa","followers_url":"https://api.github.com/users/DmitriyNoa/followers","following_url":"https://api.github.com/users/DmitriyNoa/following{/other_user}","gists_url":"https://api.github.com/users/DmitriyNoa/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitriyNoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitriyNoa/subscriptions","organizations_url":"https://api.github.com/users/DmitriyNoa/orgs","repos_url":"https://api.github.com/users/DmitriyNoa/repos","events_url":"https://api.github.com/users/DmitriyNoa/events{/privacy}","received_events_url":"https://api.github.com/users/DmitriyNoa/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"desfero","id":7031578,"node_id":"MDQ6VXNlcjcwMzE1Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/7031578?v=4","gravatar_id":"","url":"https://api.github.com/users/desfero","html_url":"https://github.com/desfero","followers_url":"https://api.github.com/users/desfero/followers","following_url":"https://api.github.com/users/desfero/following{/other_user}","gists_url":"https://api.github.com/users/desfero/gists{/gist_id}","starred_url":"https://api.github.com/users/desfero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/desfero/subscriptions","organizations_url":"https://api.github.com/users/desfero/orgs","repos_url":"https://api.github.com/users/desfero/repos","events_url":"https://api.github.com/users/desfero/events{/privacy}","received_events_url":"https://api.github.com/users/desfero/received_events","type":"User","site_admin":false},{"login":"AlexeyTuboltsev","id":14041336,"node_id":"MDQ6VXNlcjE0MDQxMzM2","avatar_url":"https://avatars0.githubusercontent.com/u/14041336?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexeyTuboltsev","html_url":"https://github.com/AlexeyTuboltsev","followers_url":"https://api.github.com/users/AlexeyTuboltsev/followers","following_url":"https://api.github.com/users/AlexeyTuboltsev/following{/other_user}","gists_url":"https://api.github.com/users/AlexeyTuboltsev/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexeyTuboltsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexeyTuboltsev/subscriptions","organizations_url":"https://api.github.com/users/AlexeyTuboltsev/orgs","repos_url":"https://api.github.com/users/AlexeyTuboltsev/repos","events_url":"https://api.github.com/users/AlexeyTuboltsev/events{/privacy}","received_events_url":"https://api.github.com/users/AlexeyTuboltsev/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1047802886,"node_id":"MDU6TGFiZWwxMDQ3ODAyODg2","url":"https://api.github.com/repos/Neufund/platform-frontend/labels/TECH","name":"TECH","color":"bc7114","default":false,"description":"Technical ticket that should not change business logic"}],"milestone":null,"commits_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888/commits","review_comments_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888/comments","review_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/3888/comments","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/b3dff153c5eb1a62c8c500c1b276274414ba365b","head":{"label":"Neufund:3762-optimize-getting-bookbuilding-stats-and-user-pledges","ref":"3762-optimize-getting-bookbuilding-stats-and-user-pledges","sha":"b3dff153c5eb1a62c8c500c1b276274414ba365b","user":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"repo":{"id":116978635,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5Nzg2MzU=","name":"platform-frontend","full_name":"Neufund/platform-frontend","private":false,"owner":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Neufund/platform-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Neufund/platform-frontend","forks_url":"https://api.github.com/repos/Neufund/platform-frontend/forks","keys_url":"https://api.github.com/repos/Neufund/platform-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neufund/platform-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neufund/platform-frontend/teams","hooks_url":"https://api.github.com/repos/Neufund/platform-frontend/hooks","issue_events_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Neufund/platform-frontend/events","assignees_url":"https://api.github.com/repos/Neufund/platform-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Neufund/platform-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Neufund/platform-frontend/tags","blobs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neufund/platform-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neufund/platform-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Neufund/platform-frontend/languages","stargazers_url":"https://api.github.com/repos/Neufund/platform-frontend/stargazers","contributors_url":"https://api.github.com/repos/Neufund/platform-frontend/contributors","subscribers_url":"https://api.github.com/repos/Neufund/platform-frontend/subscribers","subscription_url":"https://api.github.com/repos/Neufund/platform-frontend/subscription","commits_url":"https://api.github.com/repos/Neufund/platform-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neufund/platform-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neufund/platform-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Neufund/platform-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neufund/platform-frontend/merges","archive_url":"https://api.github.com/repos/Neufund/platform-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neufund/platform-frontend/downloads","issues_url":"https://api.github.com/repos/Neufund/platform-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Neufund/platform-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Neufund/platform-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neufund/platform-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Neufund/platform-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Neufund/platform-frontend/deployments","created_at":"2018-01-10T15:57:08Z","updated_at":"2020-01-14T15:11:36Z","pushed_at":"2020-01-14T15:36:52Z","git_url":"git://github.com/Neufund/platform-frontend.git","ssh_url":"git@github.com:Neufund/platform-frontend.git","clone_url":"https://github.com/Neufund/platform-frontend.git","svn_url":"https://github.com/Neufund/platform-frontend","homepage":"https://platform.neufund.org/","size":127189,"stargazers_count":21,"watchers_count":21,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":211,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":211,"watchers":21,"default_branch":"master"}},"base":{"label":"Neufund:master","ref":"master","sha":"036793857841a97cd02f179b72485406f5262dcd","user":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"repo":{"id":116978635,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5Nzg2MzU=","name":"platform-frontend","full_name":"Neufund/platform-frontend","private":false,"owner":{"login":"Neufund","id":25393169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MzkzMTY5","avatar_url":"https://avatars2.githubusercontent.com/u/25393169?v=4","gravatar_id":"","url":"https://api.github.com/users/Neufund","html_url":"https://github.com/Neufund","followers_url":"https://api.github.com/users/Neufund/followers","following_url":"https://api.github.com/users/Neufund/following{/other_user}","gists_url":"https://api.github.com/users/Neufund/gists{/gist_id}","starred_url":"https://api.github.com/users/Neufund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neufund/subscriptions","organizations_url":"https://api.github.com/users/Neufund/orgs","repos_url":"https://api.github.com/users/Neufund/repos","events_url":"https://api.github.com/users/Neufund/events{/privacy}","received_events_url":"https://api.github.com/users/Neufund/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Neufund/platform-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/Neufund/platform-frontend","forks_url":"https://api.github.com/repos/Neufund/platform-frontend/forks","keys_url":"https://api.github.com/repos/Neufund/platform-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neufund/platform-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neufund/platform-frontend/teams","hooks_url":"https://api.github.com/repos/Neufund/platform-frontend/hooks","issue_events_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/Neufund/platform-frontend/events","assignees_url":"https://api.github.com/repos/Neufund/platform-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/Neufund/platform-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/Neufund/platform-frontend/tags","blobs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neufund/platform-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neufund/platform-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neufund/platform-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neufund/platform-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/Neufund/platform-frontend/languages","stargazers_url":"https://api.github.com/repos/Neufund/platform-frontend/stargazers","contributors_url":"https://api.github.com/repos/Neufund/platform-frontend/contributors","subscribers_url":"https://api.github.com/repos/Neufund/platform-frontend/subscribers","subscription_url":"https://api.github.com/repos/Neufund/platform-frontend/subscription","commits_url":"https://api.github.com/repos/Neufund/platform-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neufund/platform-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neufund/platform-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neufund/platform-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neufund/platform-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/Neufund/platform-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neufund/platform-frontend/merges","archive_url":"https://api.github.com/repos/Neufund/platform-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neufund/platform-frontend/downloads","issues_url":"https://api.github.com/repos/Neufund/platform-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/Neufund/platform-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/Neufund/platform-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/Neufund/platform-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neufund/platform-frontend/labels{/name}","releases_url":"https://api.github.com/repos/Neufund/platform-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/Neufund/platform-frontend/deployments","created_at":"2018-01-10T15:57:08Z","updated_at":"2020-01-14T15:11:36Z","pushed_at":"2020-01-14T15:36:52Z","git_url":"git://github.com/Neufund/platform-frontend.git","ssh_url":"git@github.com:Neufund/platform-frontend.git","clone_url":"https://github.com/Neufund/platform-frontend.git","svn_url":"https://github.com/Neufund/platform-frontend","homepage":"https://platform.neufund.org/","size":127189,"stargazers_count":21,"watchers_count":21,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":211,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":10,"open_issues":211,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888"},"html":{"href":"https://github.com/Neufund/platform-frontend/pull/3888"},"issue":{"href":"https://api.github.com/repos/Neufund/platform-frontend/issues/3888"},"comments":{"href":"https://api.github.com/repos/Neufund/platform-frontend/issues/3888/comments"},"review_comments":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888/comments"},"review_comment":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Neufund/platform-frontend/pulls/3888/commits"},"statuses":{"href":"https://api.github.com/repos/Neufund/platform-frontend/statuses/b3dff153c5eb1a62c8c500c1b276274414ba365b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"DmitriyNoa"}}