{"action":"created","comment":{"url":"https://api.github.com/repos/omisego/elixir-omg/pulls/comments/243275102","pull_request_review_id":187000649,"id":243275102,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzI3NTEwMg==","diff_hunk":"@@ -107,6 +95,16 @@ defmodule OMG.DB.LevelDBServer do\n     {:reply, result, state}\n   end\n \n+  def handle_call({:in_flight_exits_info}, _from, %__MODULE__{db_ref: db_ref} = state) do\n+    result = get_by_type(:in_flight_exit_info, db_ref)\n+    {:reply, result, state}\n+  end\n+\n+  def handle_call({:competitors_info}, _from, %__MODULE__{db_ref: db_ref} = state) do\n+    result = get_by_type(:competitor_info, db_ref)\n+    {:reply, {:ok, result}, state}\n+  end","path":"apps/omg_db/lib/leveldb_server.ex","position":39,"original_position":39,"commit_id":"4cd2f13c97ffc4be1a5a42a647ac1a28df57516d","original_commit_id":"4cd2f13c97ffc4be1a5a42a647ac1a28df57516d","user":{"login":"pik694","id":12941747,"node_id":"MDQ6VXNlcjEyOTQxNzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/12941747?v=4","gravatar_id":"","url":"https://api.github.com/users/pik694","html_url":"https://github.com/pik694","followers_url":"https://api.github.com/users/pik694/followers","following_url":"https://api.github.com/users/pik694/following{/other_user}","gists_url":"https://api.github.com/users/pik694/gists{/gist_id}","starred_url":"https://api.github.com/users/pik694/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pik694/subscriptions","organizations_url":"https://api.github.com/users/pik694/orgs","repos_url":"https://api.github.com/users/pik694/repos","events_url":"https://api.github.com/users/pik694/events{/privacy}","received_events_url":"https://api.github.com/users/pik694/received_events","type":"User","site_admin":false},"body":"ad. 3 - we discussed the convention and I do prefer as it is now - some errors might be caught during compilation and you ensure that the state is of a certain type","created_at":"2018-12-20T13:43:17Z","updated_at":"2018-12-20T13:43:17Z","html_url":"https://github.com/omisego/elixir-omg/pull/330#discussion_r243275102","pull_request_url":"https://api.github.com/repos/omisego/elixir-omg/pulls/330","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/comments/243275102"},"html":{"href":"https://github.com/omisego/elixir-omg/pull/330#discussion_r243275102"},"pull_request":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/330"}},"in_reply_to_id":243251825},"pull_request":{"url":"https://api.github.com/repos/omisego/elixir-omg/pulls/330","id":240146298,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMTQ2Mjk4","html_url":"https://github.com/omisego/elixir-omg/pull/330","diff_url":"https://github.com/omisego/elixir-omg/pull/330.diff","patch_url":"https://github.com/omisego/elixir-omg/pull/330.patch","issue_url":"https://api.github.com/repos/omisego/elixir-omg/issues/330","number":330,"state":"open","locked":false,"title":"Leveldb refactor","user":{"login":"pik694","id":12941747,"node_id":"MDQ6VXNlcjEyOTQxNzQ3","avatar_url":"https://avatars2.githubusercontent.com/u/12941747?v=4","gravatar_id":"","url":"https://api.github.com/users/pik694","html_url":"https://github.com/pik694","followers_url":"https://api.github.com/users/pik694/followers","following_url":"https://api.github.com/users/pik694/following{/other_user}","gists_url":"https://api.github.com/users/pik694/gists{/gist_id}","starred_url":"https://api.github.com/users/pik694/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pik694/subscriptions","organizations_url":"https://api.github.com/users/pik694/orgs","repos_url":"https://api.github.com/users/pik694/repos","events_url":"https://api.github.com/users/pik694/events{/privacy}","received_events_url":"https://api.github.com/users/pik694/received_events","type":"User","site_admin":false},"body":"removes repetitive code, makes adding new  entities more consistent and adds IFE support","created_at":"2018-12-20T11:58:39Z","updated_at":"2018-12-20T13:43:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5ae757d87a6db4285dab530e326aa76f4ec9a40","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/omisego/elixir-omg/pulls/330/commits","review_comments_url":"https://api.github.com/repos/omisego/elixir-omg/pulls/330/comments","review_comment_url":"https://api.github.com/repos/omisego/elixir-omg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omisego/elixir-omg/issues/330/comments","statuses_url":"https://api.github.com/repos/omisego/elixir-omg/statuses/4cd2f13c97ffc4be1a5a42a647ac1a28df57516d","head":{"label":"omisego:leveldb_refactor","ref":"leveldb_refactor","sha":"4cd2f13c97ffc4be1a5a42a647ac1a28df57516d","user":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"repo":{"id":123528600,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1Mjg2MDA=","name":"elixir-omg","full_name":"omisego/elixir-omg","private":false,"owner":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/omisego/elixir-omg","description":null,"fork":false,"url":"https://api.github.com/repos/omisego/elixir-omg","forks_url":"https://api.github.com/repos/omisego/elixir-omg/forks","keys_url":"https://api.github.com/repos/omisego/elixir-omg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omisego/elixir-omg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omisego/elixir-omg/teams","hooks_url":"https://api.github.com/repos/omisego/elixir-omg/hooks","issue_events_url":"https://api.github.com/repos/omisego/elixir-omg/issues/events{/number}","events_url":"https://api.github.com/repos/omisego/elixir-omg/events","assignees_url":"https://api.github.com/repos/omisego/elixir-omg/assignees{/user}","branches_url":"https://api.github.com/repos/omisego/elixir-omg/branches{/branch}","tags_url":"https://api.github.com/repos/omisego/elixir-omg/tags","blobs_url":"https://api.github.com/repos/omisego/elixir-omg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omisego/elixir-omg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omisego/elixir-omg/git/refs{/sha}","trees_url":"https://api.github.com/repos/omisego/elixir-omg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omisego/elixir-omg/statuses/{sha}","languages_url":"https://api.github.com/repos/omisego/elixir-omg/languages","stargazers_url":"https://api.github.com/repos/omisego/elixir-omg/stargazers","contributors_url":"https://api.github.com/repos/omisego/elixir-omg/contributors","subscribers_url":"https://api.github.com/repos/omisego/elixir-omg/subscribers","subscription_url":"https://api.github.com/repos/omisego/elixir-omg/subscription","commits_url":"https://api.github.com/repos/omisego/elixir-omg/commits{/sha}","git_commits_url":"https://api.github.com/repos/omisego/elixir-omg/git/commits{/sha}","comments_url":"https://api.github.com/repos/omisego/elixir-omg/comments{/number}","issue_comment_url":"https://api.github.com/repos/omisego/elixir-omg/issues/comments{/number}","contents_url":"https://api.github.com/repos/omisego/elixir-omg/contents/{+path}","compare_url":"https://api.github.com/repos/omisego/elixir-omg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omisego/elixir-omg/merges","archive_url":"https://api.github.com/repos/omisego/elixir-omg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omisego/elixir-omg/downloads","issues_url":"https://api.github.com/repos/omisego/elixir-omg/issues{/number}","pulls_url":"https://api.github.com/repos/omisego/elixir-omg/pulls{/number}","milestones_url":"https://api.github.com/repos/omisego/elixir-omg/milestones{/number}","notifications_url":"https://api.github.com/repos/omisego/elixir-omg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omisego/elixir-omg/labels{/name}","releases_url":"https://api.github.com/repos/omisego/elixir-omg/releases{/id}","deployments_url":"https://api.github.com/repos/omisego/elixir-omg/deployments","created_at":"2018-03-02T04:05:24Z","updated_at":"2018-12-20T09:13:05Z","pushed_at":"2018-12-20T13:31:17Z","git_url":"git://github.com/omisego/elixir-omg.git","ssh_url":"git@github.com:omisego/elixir-omg.git","clone_url":"https://github.com/omisego/elixir-omg.git","svn_url":"https://github.com/omisego/elixir-omg","homepage":null,"size":6764,"stargazers_count":117,"watchers_count":117,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":13,"watchers":117,"default_branch":"master"}},"base":{"label":"omisego:master","ref":"master","sha":"7b3c0e57026b940f7f96e1703215d94b54be29c3","user":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"repo":{"id":123528600,"node_id":"MDEwOlJlcG9zaXRvcnkxMjM1Mjg2MDA=","name":"elixir-omg","full_name":"omisego/elixir-omg","private":false,"owner":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/omisego/elixir-omg","description":null,"fork":false,"url":"https://api.github.com/repos/omisego/elixir-omg","forks_url":"https://api.github.com/repos/omisego/elixir-omg/forks","keys_url":"https://api.github.com/repos/omisego/elixir-omg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omisego/elixir-omg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omisego/elixir-omg/teams","hooks_url":"https://api.github.com/repos/omisego/elixir-omg/hooks","issue_events_url":"https://api.github.com/repos/omisego/elixir-omg/issues/events{/number}","events_url":"https://api.github.com/repos/omisego/elixir-omg/events","assignees_url":"https://api.github.com/repos/omisego/elixir-omg/assignees{/user}","branches_url":"https://api.github.com/repos/omisego/elixir-omg/branches{/branch}","tags_url":"https://api.github.com/repos/omisego/elixir-omg/tags","blobs_url":"https://api.github.com/repos/omisego/elixir-omg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omisego/elixir-omg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omisego/elixir-omg/git/refs{/sha}","trees_url":"https://api.github.com/repos/omisego/elixir-omg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omisego/elixir-omg/statuses/{sha}","languages_url":"https://api.github.com/repos/omisego/elixir-omg/languages","stargazers_url":"https://api.github.com/repos/omisego/elixir-omg/stargazers","contributors_url":"https://api.github.com/repos/omisego/elixir-omg/contributors","subscribers_url":"https://api.github.com/repos/omisego/elixir-omg/subscribers","subscription_url":"https://api.github.com/repos/omisego/elixir-omg/subscription","commits_url":"https://api.github.com/repos/omisego/elixir-omg/commits{/sha}","git_commits_url":"https://api.github.com/repos/omisego/elixir-omg/git/commits{/sha}","comments_url":"https://api.github.com/repos/omisego/elixir-omg/comments{/number}","issue_comment_url":"https://api.github.com/repos/omisego/elixir-omg/issues/comments{/number}","contents_url":"https://api.github.com/repos/omisego/elixir-omg/contents/{+path}","compare_url":"https://api.github.com/repos/omisego/elixir-omg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omisego/elixir-omg/merges","archive_url":"https://api.github.com/repos/omisego/elixir-omg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omisego/elixir-omg/downloads","issues_url":"https://api.github.com/repos/omisego/elixir-omg/issues{/number}","pulls_url":"https://api.github.com/repos/omisego/elixir-omg/pulls{/number}","milestones_url":"https://api.github.com/repos/omisego/elixir-omg/milestones{/number}","notifications_url":"https://api.github.com/repos/omisego/elixir-omg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omisego/elixir-omg/labels{/name}","releases_url":"https://api.github.com/repos/omisego/elixir-omg/releases{/id}","deployments_url":"https://api.github.com/repos/omisego/elixir-omg/deployments","created_at":"2018-03-02T04:05:24Z","updated_at":"2018-12-20T09:13:05Z","pushed_at":"2018-12-20T13:31:17Z","git_url":"git://github.com/omisego/elixir-omg.git","ssh_url":"git@github.com:omisego/elixir-omg.git","clone_url":"https://github.com/omisego/elixir-omg.git","svn_url":"https://github.com/omisego/elixir-omg","homepage":null,"size":6764,"stargazers_count":117,"watchers_count":117,"language":"Elixir","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":13,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/330"},"html":{"href":"https://github.com/omisego/elixir-omg/pull/330"},"issue":{"href":"https://api.github.com/repos/omisego/elixir-omg/issues/330"},"comments":{"href":"https://api.github.com/repos/omisego/elixir-omg/issues/330/comments"},"review_comments":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/330/comments"},"review_comment":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omisego/elixir-omg/pulls/330/commits"},"statuses":{"href":"https://api.github.com/repos/omisego/elixir-omg/statuses/4cd2f13c97ffc4be1a5a42a647ac1a28df57516d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"pik694"}}