{"action":"created","issue":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/647","labels_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/647/comments","events_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/647/events","html_url":"https://github.com/OpenBazaar/OpenBazaar-Client/pull/647","id":130534933,"number":647,"title":"Init sequence","user":{"login":"rmisio","id":794517,"avatar_url":"https://avatars.githubusercontent.com/u/794517?v=3","gravatar_id":"","url":"https://api.github.com/users/rmisio","html_url":"https://github.com/rmisio","followers_url":"https://api.github.com/users/rmisio/followers","following_url":"https://api.github.com/users/rmisio/following{/other_user}","gists_url":"https://api.github.com/users/rmisio/gists{/gist_id}","starred_url":"https://api.github.com/users/rmisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmisio/subscriptions","organizations_url":"https://api.github.com/users/rmisio/orgs","repos_url":"https://api.github.com/users/rmisio/repos","events_url":"https://api.github.com/users/rmisio/events{/privacy}","received_events_url":"https://api.github.com/users/rmisio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T01:00:05Z","updated_at":"2016-02-02T06:59:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/pulls/647","html_url":"https://github.com/OpenBazaar/OpenBazaar-Client/pull/647","diff_url":"https://github.com/OpenBazaar/OpenBazaar-Client/pull/647.diff","patch_url":"https://github.com/OpenBazaar/OpenBazaar-Client/pull/647.patch"},"body":"\r\n\r\nFirstly, this depends on this server branch (in @cpacia fork).\r\nhttps://github.com/cpacia/OpenBazaar-Server/tree/profile\r\n\r\nThe main relevant change in that fork is that the profile will return as empty if the user has never posted to the profile endpoint (basically serving as a flag of whether onboarding needs to be done or not). Since those changes break the existing client and this client won't work without the changes, we'll need to test using that server and then sync up the two respective merges.\r\n\r\nAnyways, make sure you are using the forked server for the following tests. I just cloned it into a separate folder and ran it from there (make sure you're on the profile branch).\r\n\r\nTo test (not an exhaustive list of the myriads of scenarios that can play out here!):\r\n\r\n1.) ensure your server ip is local (localhost or 127.0.0.1)\r\n2.) delete your db file\r\n3.) start your server and client\r\n--- the onboarding modal should come up\r\n4.) quickly get through onboarding and click I Agree while guid gen is still in progress\r\n--- the Still generating guid modal is displayed. Once guid gen is complete, you are taken to your User's page.\r\n\r\n--------\r\n\r\n1.) ensure your server ip is local (localhost or 127.0.0.1)\r\n2.) delete your db file\r\n3.) start your server and client\r\n--- the onboarding modal should come up\r\n4.) get through onboarding, but do not click I Agree until after the guid gen process is complete.\r\n--- you are immediately taken to your User's page.\r\n\r\n--------\r\n\r\n1.) ensure your server is not running\r\n2.) start your client\r\n--- the server connect modal should appear\r\n3.) start up your server\r\n4.) If the modal has already finished all it's connection attempts, click retry.\r\n--- depending on whether your onboarding had previously been completed, you will either be routed to the Onboarding modal or to your User's page.\r\n\r\n--------\r\n\r\nFor remote servers, we have a completely different code-path and a slightly different experience for the user. You probably want to test the scenarios outlined above, using a remote server ip. \r\n1.) modify your hosts file and creating an entry mapping some verbose name (e.g. happy-hippo) to 127.0.0.1. This way, you're existing server will masquerade as a remote server, but the client will think it's hitting a remote one (at least the UI will).\r\n2.) get yourself to the Server connect modal and change the server ip to the value you mapped in hosts. Once you click Save changes, you'll be ushered into the remote initialization sequence.\r\n--- At this point, you could also recreate the test above, but on a remote server. The main differences are that the Server connect modal will have additional messaging. You will also not automatically be taken to onboarding, since the client has no way of know if the guid is being generated or if it's simply a dead server.\r\n"},"comment":{"url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/comments/178412164","html_url":"https://github.com/OpenBazaar/OpenBazaar-Client/pull/647#issuecomment-178412164","issue_url":"https://api.github.com/repos/OpenBazaar/OpenBazaar-Client/issues/647","id":178412164,"user":{"login":"drwasho","id":3887694,"avatar_url":"https://avatars.githubusercontent.com/u/3887694?v=3","gravatar_id":"","url":"https://api.github.com/users/drwasho","html_url":"https://github.com/drwasho","followers_url":"https://api.github.com/users/drwasho/followers","following_url":"https://api.github.com/users/drwasho/following{/other_user}","gists_url":"https://api.github.com/users/drwasho/gists{/gist_id}","starred_url":"https://api.github.com/users/drwasho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drwasho/subscriptions","organizations_url":"https://api.github.com/users/drwasho/orgs","repos_url":"https://api.github.com/users/drwasho/repos","events_url":"https://api.github.com/users/drwasho/events{/privacy}","received_events_url":"https://api.github.com/users/drwasho/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T06:59:17Z","updated_at":"2016-02-02T06:59:17Z","body":"Followed all of the instructions (so I'm using @cpacia's `profile` branch), but onboarding isn't being triggered... the client is just hanging. There is this in the console log: `Uncaught SyntaxError: Unexpected token u`"}}