{"action":"created","comment":{"url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/comments/34600168","id":34600168,"diff_hunk":"@@ -132,61 +153,80 @@ -(IBAction) dismiss{\n }\n \n - (void)transitionToNextScreen{\n-    if (self.alreadyTransitioned) {\n-        return;\n-    }\n-    self.alreadyTransitioned = YES;\n-    \n-    // The screen we transition to will depend on what products are available based on the developers filter preferences.\n-    NSArray *groups = [OLProductGroup groupsWithFilters:self.filterProducts];\n-    \n-    UIStoryboard *sb = [UIStoryboard storyboardWithName:@\"OLKiteStoryboard\" bundle:nil];\n-    NSString *nextVcNavIdentifier;\n-    OLProduct *product;\n-    if (groups.count == 0) {\n-        if ([UIAlertController class]){\n-            UIAlertController *ac = [UIAlertController alertControllerWithTitle:NSLocalizedString(@\"Store Maintenance\", @\"\") message:NSLocalizedString(@\"Our store is currently undergoing maintence so no products are available for purchase at this time. Please try again a little later.\", @\"\") preferredStyle:UIAlertControllerStyleAlert];\n-            [ac addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@\"OK\", @\"\") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {\n-                [self dismiss];\n-            }]];\n-            [self presentViewController:ac animated:YES completion:NULL];\n+    __weak OLKiteViewController *welf = self;\n+    [self.transitionOperation addExecutionBlock:^{\n+        // The screen we transition to will depend on what products are available based on the developers filter preferences.\n+        NSArray *groups = [OLProductGroup groupsWithFilters:welf.filterProducts];\n+        \n+        UIStoryboard *sb = [UIStoryboard storyboardWithName:@\"OLKiteStoryboard\" bundle:nil];\n+        NSString *nextVcNavIdentifier;\n+        OLProduct *product;\n+        if (groups.count == 0) {\n+            if ([UIAlertController class]){\n+                UIAlertController *ac = [UIAlertController alertControllerWithTitle:NSLocalizedString(@\"Store Maintenance\", @\"\") message:NSLocalizedString(@\"Our store is currently undergoing maintence so no products are available for purchase at this time. Please try again a little later.\", @\"\") preferredStyle:UIAlertControllerStyleAlert];\n+                [ac addAction:[UIAlertAction actionWithTitle:NSLocalizedString(@\"OK\", @\"\") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {\n+                    [welf dismiss];\n+                }]];\n+                [welf presentViewController:ac animated:YES completion:NULL];\n+            }\n+            else{\n+                UIAlertView *av = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@\"Store Maintenance\", @\"\") message:NSLocalizedString(@\"Our store is currently undergoing maintence so no products are available for purchase at this time. Please try again a little later.\", @\"\") delegate:welf cancelButtonTitle:NSLocalizedString(@\"OK\", @\"\")  otherButtonTitles:nil];\n+                av.tag = kTagNoProductsAlertView;\n+                av.delegate = welf;\n+                [av show];","path":"Kite SDK/PSPrintSDK/OLKiteViewController.m","position":175,"original_position":175,"commit_id":"4dedaf947155264a9a17ef7aa79476ccb06c7761","original_commit_id":"4dedaf947155264a9a17ef7aa79476ccb06c7761","user":{"login":"dbotha","id":760653,"avatar_url":"https://avatars.githubusercontent.com/u/760653?v=3","gravatar_id":"","url":"https://api.github.com/users/dbotha","html_url":"https://github.com/dbotha","followers_url":"https://api.github.com/users/dbotha/followers","following_url":"https://api.github.com/users/dbotha/following{/other_user}","gists_url":"https://api.github.com/users/dbotha/gists{/gist_id}","starred_url":"https://api.github.com/users/dbotha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbotha/subscriptions","organizations_url":"https://api.github.com/users/dbotha/orgs","repos_url":"https://api.github.com/users/dbotha/repos","events_url":"https://api.github.com/users/dbotha/events{/privacy}","received_events_url":"https://api.github.com/users/dbotha/received_events","type":"User","site_admin":false},"body":"not thread safe","created_at":"2015-07-14T18:13:13Z","updated_at":"2015-07-14T18:13:13Z","html_url":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193#discussion_r34600168","pull_request_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193","_links":{"self":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/comments/34600168"},"html":{"href":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193#discussion_r34600168"},"pull_request":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193","id":39658957,"html_url":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193","diff_url":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193.diff","patch_url":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193.patch","issue_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/193","number":193,"state":"open","locked":false,"title":"Done button on receipt screen.","user":{"login":"kkarayannis","id":181362,"avatar_url":"https://avatars.githubusercontent.com/u/181362?v=3","gravatar_id":"","url":"https://api.github.com/users/kkarayannis","html_url":"https://github.com/kkarayannis","followers_url":"https://api.github.com/users/kkarayannis/followers","following_url":"https://api.github.com/users/kkarayannis/following{/other_user}","gists_url":"https://api.github.com/users/kkarayannis/gists{/gist_id}","starred_url":"https://api.github.com/users/kkarayannis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkarayannis/subscriptions","organizations_url":"https://api.github.com/users/kkarayannis/orgs","repos_url":"https://api.github.com/users/kkarayannis/repos","events_url":"https://api.github.com/users/kkarayannis/events{/privacy}","received_events_url":"https://api.github.com/users/kkarayannis/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-10T07:31:45Z","updated_at":"2015-07-14T18:13:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c330de1048348ae1363220b80ccc317e9e53b96","assignee":{"login":"dbotha","id":760653,"avatar_url":"https://avatars.githubusercontent.com/u/760653?v=3","gravatar_id":"","url":"https://api.github.com/users/dbotha","html_url":"https://github.com/dbotha","followers_url":"https://api.github.com/users/dbotha/followers","following_url":"https://api.github.com/users/dbotha/following{/other_user}","gists_url":"https://api.github.com/users/dbotha/gists{/gist_id}","starred_url":"https://api.github.com/users/dbotha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbotha/subscriptions","organizations_url":"https://api.github.com/users/dbotha/orgs","repos_url":"https://api.github.com/users/dbotha/repos","events_url":"https://api.github.com/users/dbotha/events{/privacy}","received_events_url":"https://api.github.com/users/dbotha/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193/commits","review_comments_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193/comments","review_comment_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/193/comments","statuses_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/statuses/4dedaf947155264a9a17ef7aa79476ccb06c7761","head":{"label":"OceanLabs:launch-into-shipping","ref":"launch-into-shipping","sha":"4dedaf947155264a9a17ef7aa79476ccb06c7761","user":{"login":"OceanLabs","id":5639181,"avatar_url":"https://avatars.githubusercontent.com/u/5639181?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanLabs","html_url":"https://github.com/OceanLabs","followers_url":"https://api.github.com/users/OceanLabs/followers","following_url":"https://api.github.com/users/OceanLabs/following{/other_user}","gists_url":"https://api.github.com/users/OceanLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanLabs/subscriptions","organizations_url":"https://api.github.com/users/OceanLabs/orgs","repos_url":"https://api.github.com/users/OceanLabs/repos","events_url":"https://api.github.com/users/OceanLabs/events{/privacy}","received_events_url":"https://api.github.com/users/OceanLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":18214081,"name":"iOS-Print-SDK","full_name":"OceanLabs/iOS-Print-SDK","owner":{"login":"OceanLabs","id":5639181,"avatar_url":"https://avatars.githubusercontent.com/u/5639181?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanLabs","html_url":"https://github.com/OceanLabs","followers_url":"https://api.github.com/users/OceanLabs/followers","following_url":"https://api.github.com/users/OceanLabs/following{/other_user}","gists_url":"https://api.github.com/users/OceanLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanLabs/subscriptions","organizations_url":"https://api.github.com/users/OceanLabs/orgs","repos_url":"https://api.github.com/users/OceanLabs/repos","events_url":"https://api.github.com/users/OceanLabs/events{/privacy}","received_events_url":"https://api.github.com/users/OceanLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OceanLabs/iOS-Print-SDK","description":"iOS Print SDK. Easily add print on demand functionality to your app within minutes! Print Postcards, Magnets, Photo Prints, Posters, Stickers, T-Shirts, PhotoBooks, etc.","fork":false,"url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK","forks_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/forks","keys_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/teams","hooks_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/hooks","issue_events_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/events","assignees_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/tags","blobs_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/languages","stargazers_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/stargazers","contributors_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/contributors","subscribers_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/subscribers","subscription_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/subscription","commits_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/merges","archive_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/downloads","issues_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/labels{/name}","releases_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/releases{/id}","created_at":"2014-03-28T14:07:04Z","updated_at":"2015-06-29T13:20:53Z","pushed_at":"2015-07-14T14:57:31Z","git_url":"git://github.com/OceanLabs/iOS-Print-SDK.git","ssh_url":"git@github.com:OceanLabs/iOS-Print-SDK.git","clone_url":"https://github.com/OceanLabs/iOS-Print-SDK.git","svn_url":"https://github.com/OceanLabs/iOS-Print-SDK","homepage":"https://www.kite.ly","size":17338,"stargazers_count":24,"watchers_count":24,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":24,"default_branch":"master"}},"base":{"label":"OceanLabs:master","ref":"master","sha":"e6b3a9cbfa0525f5a7c8e22f0f4c2974d31997a5","user":{"login":"OceanLabs","id":5639181,"avatar_url":"https://avatars.githubusercontent.com/u/5639181?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanLabs","html_url":"https://github.com/OceanLabs","followers_url":"https://api.github.com/users/OceanLabs/followers","following_url":"https://api.github.com/users/OceanLabs/following{/other_user}","gists_url":"https://api.github.com/users/OceanLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanLabs/subscriptions","organizations_url":"https://api.github.com/users/OceanLabs/orgs","repos_url":"https://api.github.com/users/OceanLabs/repos","events_url":"https://api.github.com/users/OceanLabs/events{/privacy}","received_events_url":"https://api.github.com/users/OceanLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":18214081,"name":"iOS-Print-SDK","full_name":"OceanLabs/iOS-Print-SDK","owner":{"login":"OceanLabs","id":5639181,"avatar_url":"https://avatars.githubusercontent.com/u/5639181?v=3","gravatar_id":"","url":"https://api.github.com/users/OceanLabs","html_url":"https://github.com/OceanLabs","followers_url":"https://api.github.com/users/OceanLabs/followers","following_url":"https://api.github.com/users/OceanLabs/following{/other_user}","gists_url":"https://api.github.com/users/OceanLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/OceanLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OceanLabs/subscriptions","organizations_url":"https://api.github.com/users/OceanLabs/orgs","repos_url":"https://api.github.com/users/OceanLabs/repos","events_url":"https://api.github.com/users/OceanLabs/events{/privacy}","received_events_url":"https://api.github.com/users/OceanLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OceanLabs/iOS-Print-SDK","description":"iOS Print SDK. Easily add print on demand functionality to your app within minutes! Print Postcards, Magnets, Photo Prints, Posters, Stickers, T-Shirts, PhotoBooks, etc.","fork":false,"url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK","forks_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/forks","keys_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/teams","hooks_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/hooks","issue_events_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/events{/number}","events_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/events","assignees_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/assignees{/user}","branches_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/branches{/branch}","tags_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/tags","blobs_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/statuses/{sha}","languages_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/languages","stargazers_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/stargazers","contributors_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/contributors","subscribers_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/subscribers","subscription_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/subscription","commits_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/contents/{+path}","compare_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/merges","archive_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/downloads","issues_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues{/number}","pulls_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls{/number}","milestones_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/milestones{/number}","notifications_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/labels{/name}","releases_url":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/releases{/id}","created_at":"2014-03-28T14:07:04Z","updated_at":"2015-06-29T13:20:53Z","pushed_at":"2015-07-14T14:57:31Z","git_url":"git://github.com/OceanLabs/iOS-Print-SDK.git","ssh_url":"git@github.com:OceanLabs/iOS-Print-SDK.git","clone_url":"https://github.com/OceanLabs/iOS-Print-SDK.git","svn_url":"https://github.com/OceanLabs/iOS-Print-SDK","homepage":"https://www.kite.ly","size":17338,"stargazers_count":24,"watchers_count":24,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":33,"forks":3,"open_issues":33,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193"},"html":{"href":"https://github.com/OceanLabs/iOS-Print-SDK/pull/193"},"issue":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/193"},"comments":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/OceanLabs/iOS-Print-SDK/statuses/4dedaf947155264a9a17ef7aa79476ccb06c7761"}}}}