{"action":"created","comment":{"url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/comments/168001768","pull_request_review_id":96300791,"id":168001768,"diff_hunk":"@@ -0,0 +1,81 @@\n+// @flow\n+\n+import type { Navigation, WifiNetwork } from '../types';\n+\n+import { action, computed, observable, reaction } from 'mobx';\n+import {\n+  WifiConfigureStore,\n+  WifiConnectStore,\n+} from './ApiRequestStores/SoftApApiStores';\n+import SoftApService from '../SoftApService';\n+import { LoadObject } from 'brewskey.js-api';\n+import { waitForLoaded } from './DAOStores';\n+\n+type WifiSetupStep = 1 | 2 | 3 | 4;\n+\n+class WifiSetupStore {\n+  @observable wifiSetupStep: WifiSetupStep = 1;\n+  @observable particleID: string = '';\n+  @observable _wifiSetupLoaderID = null;\n+\n+  constructor(navigation: Navigation) {\n+    reaction(\n+      () => this.wifiSetupStep,\n+      (wifiSetupStep: WifiSetupStep, currentReaction: Object) => {\n+        // todo make replace instead navigate to prevent using hardware back button\n+        navigation.navigate(`wifiSetupStep${wifiSetupStep}`);\n+        if (wifiSetupStep === 4) {\n+          currentReaction.dispose();\n+        }\n+      },\n+    );\n+  }\n+\n+  @computed\n+  get wifiSetupLoader(): LoadObject<void> {\n+    return this._wifiSetupLoaderID\n+      ? WifiConfigureStore.getFromCache(this._wifiSetupLoaderID).map(\n+          (): LoadObject<void> => WifiConnectStore.get(),\n+        )\n+      : LoadObject.empty();\n+  }\n+\n+  @action\n+  onStep1Ready = () => {\n+    this.setWifiSetupStep(2);\n+    this._queryParticleID();\n+  };\n+\n+  @action\n+  setParticleID = (particleID: string) => {\n+    this.particleID = particleID;\n+  };\n+\n+  @action\n+  setWifiSetupStep = (step: WifiSetupStep) => {\n+    this.wifiSetupStep = step;\n+  };\n+\n+  @action\n+  setupWifi = async (wifiNetwork: WifiNetwork = {}): Promise<void> => {\n+    try {\n+      this._wifiSetupLoaderID = WifiConfigureStore.fetch(wifiNetwork);\n+      await waitForLoaded(() => this.wifiSetupLoader, 15000);\n+      this.setWifiSetupStep(4);\n+      // eslint-disable-next-line no-empty\n+    } catch (error) {}","path":"src/stores/WifiSetupStore.js","position":66,"original_position":66,"commit_id":"b12eb892dd7c048e009b74d69e29e0e7c1ecaa7d","original_commit_id":"b12eb892dd7c048e009b74d69e29e0e7c1ecaa7d","user":{"login":"jlkalberer","id":1107396,"avatar_url":"https://avatars1.githubusercontent.com/u/1107396?v=4","gravatar_id":"","url":"https://api.github.com/users/jlkalberer","html_url":"https://github.com/jlkalberer","followers_url":"https://api.github.com/users/jlkalberer/followers","following_url":"https://api.github.com/users/jlkalberer/following{/other_user}","gists_url":"https://api.github.com/users/jlkalberer/gists{/gist_id}","starred_url":"https://api.github.com/users/jlkalberer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlkalberer/subscriptions","organizations_url":"https://api.github.com/users/jlkalberer/orgs","repos_url":"https://api.github.com/users/jlkalberer/repos","events_url":"https://api.github.com/users/jlkalberer/events{/privacy}","received_events_url":"https://api.github.com/users/jlkalberer/received_events","type":"User","site_admin":false},"body":"I just don't want to swallow errors. I don't understand the full context of this code so maybe it's ok?","created_at":"2018-02-13T21:10:02Z","updated_at":"2018-02-13T21:10:02Z","html_url":"https://github.com/Brewskey/Brewskey.App/pull/129#discussion_r168001768","pull_request_url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/comments/168001768"},"html":{"href":"https://github.com/Brewskey/Brewskey.App/pull/129#discussion_r168001768"},"pull_request":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129"}},"in_reply_to_id":167907547},"pull_request":{"url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129","id":168377580,"html_url":"https://github.com/Brewskey/Brewskey.App/pull/129","diff_url":"https://github.com/Brewskey/Brewskey.App/pull/129.diff","patch_url":"https://github.com/Brewskey/Brewskey.App/pull/129.patch","issue_url":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/129","number":129,"state":"open","locked":false,"title":"Device Wifi setup version 1","user":{"login":"AntonPuko","id":8849922,"avatar_url":"https://avatars1.githubusercontent.com/u/8849922?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonPuko","html_url":"https://github.com/AntonPuko","followers_url":"https://api.github.com/users/AntonPuko/followers","following_url":"https://api.github.com/users/AntonPuko/following{/other_user}","gists_url":"https://api.github.com/users/AntonPuko/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonPuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonPuko/subscriptions","organizations_url":"https://api.github.com/users/AntonPuko/orgs","repos_url":"https://api.github.com/users/AntonPuko/repos","events_url":"https://api.github.com/users/AntonPuko/events{/privacy}","received_events_url":"https://api.github.com/users/AntonPuko/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-10T01:21:41Z","updated_at":"2018-02-13T21:10:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"22c20c6a17c4184f0b94c74c67b6a41b1a5664dc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129/commits","review_comments_url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129/comments","review_comment_url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/129/comments","statuses_url":"https://api.github.com/repos/Brewskey/Brewskey.App/statuses/b12eb892dd7c048e009b74d69e29e0e7c1ecaa7d","head":{"label":"AntonPuko:devSetup","ref":"devSetup","sha":"b12eb892dd7c048e009b74d69e29e0e7c1ecaa7d","user":{"login":"AntonPuko","id":8849922,"avatar_url":"https://avatars1.githubusercontent.com/u/8849922?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonPuko","html_url":"https://github.com/AntonPuko","followers_url":"https://api.github.com/users/AntonPuko/followers","following_url":"https://api.github.com/users/AntonPuko/following{/other_user}","gists_url":"https://api.github.com/users/AntonPuko/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonPuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonPuko/subscriptions","organizations_url":"https://api.github.com/users/AntonPuko/orgs","repos_url":"https://api.github.com/users/AntonPuko/repos","events_url":"https://api.github.com/users/AntonPuko/events{/privacy}","received_events_url":"https://api.github.com/users/AntonPuko/received_events","type":"User","site_admin":false},"repo":{"id":88798838,"name":"Brewskey.App","full_name":"AntonPuko/Brewskey.App","owner":{"login":"AntonPuko","id":8849922,"avatar_url":"https://avatars1.githubusercontent.com/u/8849922?v=4","gravatar_id":"","url":"https://api.github.com/users/AntonPuko","html_url":"https://github.com/AntonPuko","followers_url":"https://api.github.com/users/AntonPuko/followers","following_url":"https://api.github.com/users/AntonPuko/following{/other_user}","gists_url":"https://api.github.com/users/AntonPuko/gists{/gist_id}","starred_url":"https://api.github.com/users/AntonPuko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntonPuko/subscriptions","organizations_url":"https://api.github.com/users/AntonPuko/orgs","repos_url":"https://api.github.com/users/AntonPuko/repos","events_url":"https://api.github.com/users/AntonPuko/events{/privacy}","received_events_url":"https://api.github.com/users/AntonPuko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AntonPuko/Brewskey.App","description":"Brewskey mobile apps.","fork":true,"url":"https://api.github.com/repos/AntonPuko/Brewskey.App","forks_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/forks","keys_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/teams","hooks_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/hooks","issue_events_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/issues/events{/number}","events_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/events","assignees_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/assignees{/user}","branches_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/branches{/branch}","tags_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/tags","blobs_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/statuses/{sha}","languages_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/languages","stargazers_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/stargazers","contributors_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/contributors","subscribers_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/subscribers","subscription_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/subscription","commits_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/contents/{+path}","compare_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/merges","archive_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/downloads","issues_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/issues{/number}","pulls_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/pulls{/number}","milestones_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/milestones{/number}","notifications_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/labels{/name}","releases_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/releases{/id}","deployments_url":"https://api.github.com/repos/AntonPuko/Brewskey.App/deployments","created_at":"2017-04-19T23:09:19Z","updated_at":"2017-04-19T23:09:26Z","pushed_at":"2018-02-13T12:55:35Z","git_url":"git://github.com/AntonPuko/Brewskey.App.git","ssh_url":"git@github.com:AntonPuko/Brewskey.App.git","clone_url":"https://github.com/AntonPuko/Brewskey.App.git","svn_url":"https://github.com/AntonPuko/Brewskey.App","homepage":"https://brewskey.com","size":98879,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Brewskey:v2","ref":"v2","sha":"4696113f9f34d42454dc2e0157a91f2c8a31d669","user":{"login":"Brewskey","id":20875563,"avatar_url":"https://avatars0.githubusercontent.com/u/20875563?v=4","gravatar_id":"","url":"https://api.github.com/users/Brewskey","html_url":"https://github.com/Brewskey","followers_url":"https://api.github.com/users/Brewskey/followers","following_url":"https://api.github.com/users/Brewskey/following{/other_user}","gists_url":"https://api.github.com/users/Brewskey/gists{/gist_id}","starred_url":"https://api.github.com/users/Brewskey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brewskey/subscriptions","organizations_url":"https://api.github.com/users/Brewskey/orgs","repos_url":"https://api.github.com/users/Brewskey/repos","events_url":"https://api.github.com/users/Brewskey/events{/privacy}","received_events_url":"https://api.github.com/users/Brewskey/received_events","type":"Organization","site_admin":false},"repo":{"id":32554951,"name":"Brewskey.App","full_name":"Brewskey/Brewskey.App","owner":{"login":"Brewskey","id":20875563,"avatar_url":"https://avatars0.githubusercontent.com/u/20875563?v=4","gravatar_id":"","url":"https://api.github.com/users/Brewskey","html_url":"https://github.com/Brewskey","followers_url":"https://api.github.com/users/Brewskey/followers","following_url":"https://api.github.com/users/Brewskey/following{/other_user}","gists_url":"https://api.github.com/users/Brewskey/gists{/gist_id}","starred_url":"https://api.github.com/users/Brewskey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brewskey/subscriptions","organizations_url":"https://api.github.com/users/Brewskey/orgs","repos_url":"https://api.github.com/users/Brewskey/repos","events_url":"https://api.github.com/users/Brewskey/events{/privacy}","received_events_url":"https://api.github.com/users/Brewskey/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Brewskey/Brewskey.App","description":"Brewskey mobile apps.","fork":false,"url":"https://api.github.com/repos/Brewskey/Brewskey.App","forks_url":"https://api.github.com/repos/Brewskey/Brewskey.App/forks","keys_url":"https://api.github.com/repos/Brewskey/Brewskey.App/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Brewskey/Brewskey.App/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Brewskey/Brewskey.App/teams","hooks_url":"https://api.github.com/repos/Brewskey/Brewskey.App/hooks","issue_events_url":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/events{/number}","events_url":"https://api.github.com/repos/Brewskey/Brewskey.App/events","assignees_url":"https://api.github.com/repos/Brewskey/Brewskey.App/assignees{/user}","branches_url":"https://api.github.com/repos/Brewskey/Brewskey.App/branches{/branch}","tags_url":"https://api.github.com/repos/Brewskey/Brewskey.App/tags","blobs_url":"https://api.github.com/repos/Brewskey/Brewskey.App/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Brewskey/Brewskey.App/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Brewskey/Brewskey.App/git/refs{/sha}","trees_url":"https://api.github.com/repos/Brewskey/Brewskey.App/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Brewskey/Brewskey.App/statuses/{sha}","languages_url":"https://api.github.com/repos/Brewskey/Brewskey.App/languages","stargazers_url":"https://api.github.com/repos/Brewskey/Brewskey.App/stargazers","contributors_url":"https://api.github.com/repos/Brewskey/Brewskey.App/contributors","subscribers_url":"https://api.github.com/repos/Brewskey/Brewskey.App/subscribers","subscription_url":"https://api.github.com/repos/Brewskey/Brewskey.App/subscription","commits_url":"https://api.github.com/repos/Brewskey/Brewskey.App/commits{/sha}","git_commits_url":"https://api.github.com/repos/Brewskey/Brewskey.App/git/commits{/sha}","comments_url":"https://api.github.com/repos/Brewskey/Brewskey.App/comments{/number}","issue_comment_url":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/comments{/number}","contents_url":"https://api.github.com/repos/Brewskey/Brewskey.App/contents/{+path}","compare_url":"https://api.github.com/repos/Brewskey/Brewskey.App/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Brewskey/Brewskey.App/merges","archive_url":"https://api.github.com/repos/Brewskey/Brewskey.App/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Brewskey/Brewskey.App/downloads","issues_url":"https://api.github.com/repos/Brewskey/Brewskey.App/issues{/number}","pulls_url":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls{/number}","milestones_url":"https://api.github.com/repos/Brewskey/Brewskey.App/milestones{/number}","notifications_url":"https://api.github.com/repos/Brewskey/Brewskey.App/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Brewskey/Brewskey.App/labels{/name}","releases_url":"https://api.github.com/repos/Brewskey/Brewskey.App/releases{/id}","deployments_url":"https://api.github.com/repos/Brewskey/Brewskey.App/deployments","created_at":"2015-03-20T01:06:50Z","updated_at":"2017-10-05T01:15:37Z","pushed_at":"2018-02-13T12:55:36Z","git_url":"git://github.com/Brewskey/Brewskey.App.git","ssh_url":"git@github.com:Brewskey/Brewskey.App.git","clone_url":"https://github.com/Brewskey/Brewskey.App.git","svn_url":"https://github.com/Brewskey/Brewskey.App","homepage":"https://brewskey.com","size":116947,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":1,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129"},"html":{"href":"https://github.com/Brewskey/Brewskey.App/pull/129"},"issue":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/129"},"comments":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/issues/129/comments"},"review_comments":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129/comments"},"review_comment":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/pulls/129/commits"},"statuses":{"href":"https://api.github.com/repos/Brewskey/Brewskey.App/statuses/b12eb892dd7c048e009b74d69e29e0e7c1ecaa7d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jlkalberer"}}