{"action":"created","comment":{"url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/comments/139313247","pull_request_review_id":63229713,"id":139313247,"diff_hunk":"@@ -182,16 +194,35 @@ private void refresh() {\n \n   public void onMoreNewestButtonClicked() {\n     enterSearchingState();\n-    replayService.getNewestReplays(TOP_MORE_ELEMENT_COUNT).thenAccept(this::displaySearchResult);\n+    displayReplaysFromSupplier(() ->replayService.getNewestReplays(TOP_MORE_ELEMENT_COUNT,currentPage++));\n   }\n \n   public void onMoreHighestRatedButtonClicked() {\n     enterSearchingState();\n-    replayService.getHighestRatedReplays(TOP_MORE_ELEMENT_COUNT).thenAccept(this::displaySearchResult);\n+    displayReplaysFromSupplier(() ->replayService.getHighestRatedReplays(TOP_MORE_ELEMENT_COUNT,currentPage++));\n   }\n \n   public void onMoreMostWatchedButtonClicked() {\n     enterSearchingState();\n-    replayService.getMostWatchedReplays(TOP_MORE_ELEMENT_COUNT).thenAccept(this::displaySearchResult);\n+    displayReplaysFromSupplier(() ->replayService.getMostWatchedReplays(TOP_MORE_ELEMENT_COUNT,currentPage++));\n+  }\n+\n+  public void onLoadMoreButtonClicked(ActionEvent actionEvent) {\n+    currentSupplier.get()\n+        .thenAccept(replays -> displaySearchResult(replays,true));\n+  }\n+\n+  private void displayReplaysFromSupplier(Supplier<CompletableFuture<List<Replay>>> mapsSupplier) {\n+    currentPage=1;\n+    this.currentSupplier = mapsSupplier;\n+    mapsSupplier.get()\n+        .thenAccept(this::displaySearchResult)\n+        .exceptionally(e -> {\n+          notificationService.addNotification(new ImmediateNotification(i18n.get(\"errorTitle\"),\n+              i18n.get(\"vault.replays.searchError\"), Severity.ERROR, e,\n+              Collections.singletonList(new DismissAction(i18n))));\n+          enterShowroomState();\n+          return null;\n+        });\n   }","path":"src/main/java/com/faforever/client/replay/OnlineReplayVaultController.java","position":166,"original_position":166,"commit_id":"533d6d4094e11b384651742efa70acb855ff2f04","original_commit_id":"533d6d4094e11b384651742efa70acb855ff2f04","user":{"login":"axel1200","id":19996713,"avatar_url":"https://avatars3.githubusercontent.com/u/19996713?v=4","gravatar_id":"","url":"https://api.github.com/users/axel1200","html_url":"https://github.com/axel1200","followers_url":"https://api.github.com/users/axel1200/followers","following_url":"https://api.github.com/users/axel1200/following{/other_user}","gists_url":"https://api.github.com/users/axel1200/gists{/gist_id}","starred_url":"https://api.github.com/users/axel1200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel1200/subscriptions","organizations_url":"https://api.github.com/users/axel1200/orgs","repos_url":"https://api.github.com/users/axel1200/repos","events_url":"https://api.github.com/users/axel1200/events{/privacy}","received_events_url":"https://api.github.com/users/axel1200/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2017-09-17T15:24:04Z","updated_at":"2017-09-17T15:24:04Z","html_url":"https://github.com/FAForever/downlords-faf-client/pull/585#discussion_r139313247","pull_request_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/comments/139313247"},"html":{"href":"https://github.com/FAForever/downlords-faf-client/pull/585#discussion_r139313247"},"pull_request":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585"}},"in_reply_to_id":139202195},"pull_request":{"url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585","id":141199667,"html_url":"https://github.com/FAForever/downlords-faf-client/pull/585","diff_url":"https://github.com/FAForever/downlords-faf-client/pull/585.diff","patch_url":"https://github.com/FAForever/downlords-faf-client/pull/585.patch","issue_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/585","number":585,"state":"open","locked":false,"title":"Feature/#571 more button for replays","user":{"login":"axel1200","id":19996713,"avatar_url":"https://avatars3.githubusercontent.com/u/19996713?v=4","gravatar_id":"","url":"https://api.github.com/users/axel1200","html_url":"https://github.com/axel1200","followers_url":"https://api.github.com/users/axel1200/followers","following_url":"https://api.github.com/users/axel1200/following{/other_user}","gists_url":"https://api.github.com/users/axel1200/gists{/gist_id}","starred_url":"https://api.github.com/users/axel1200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel1200/subscriptions","organizations_url":"https://api.github.com/users/axel1200/orgs","repos_url":"https://api.github.com/users/axel1200/repos","events_url":"https://api.github.com/users/axel1200/events{/privacy}","received_events_url":"https://api.github.com/users/axel1200/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-14T23:32:50Z","updated_at":"2017-09-17T15:24:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7807a86bde143627c910db5c9de42b4ea30d504b","assignee":{"login":"axel1200","id":19996713,"avatar_url":"https://avatars3.githubusercontent.com/u/19996713?v=4","gravatar_id":"","url":"https://api.github.com/users/axel1200","html_url":"https://github.com/axel1200","followers_url":"https://api.github.com/users/axel1200/followers","following_url":"https://api.github.com/users/axel1200/following{/other_user}","gists_url":"https://api.github.com/users/axel1200/gists{/gist_id}","starred_url":"https://api.github.com/users/axel1200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel1200/subscriptions","organizations_url":"https://api.github.com/users/axel1200/orgs","repos_url":"https://api.github.com/users/axel1200/repos","events_url":"https://api.github.com/users/axel1200/events{/privacy}","received_events_url":"https://api.github.com/users/axel1200/received_events","type":"User","site_admin":false},"assignees":[{"login":"axel1200","id":19996713,"avatar_url":"https://avatars3.githubusercontent.com/u/19996713?v=4","gravatar_id":"","url":"https://api.github.com/users/axel1200","html_url":"https://github.com/axel1200","followers_url":"https://api.github.com/users/axel1200/followers","following_url":"https://api.github.com/users/axel1200/following{/other_user}","gists_url":"https://api.github.com/users/axel1200/gists{/gist_id}","starred_url":"https://api.github.com/users/axel1200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axel1200/subscriptions","organizations_url":"https://api.github.com/users/axel1200/orgs","repos_url":"https://api.github.com/users/axel1200/repos","events_url":"https://api.github.com/users/axel1200/events{/privacy}","received_events_url":"https://api.github.com/users/axel1200/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585/commits","review_comments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585/comments","review_comment_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/585/comments","statuses_url":"https://api.github.com/repos/FAForever/downlords-faf-client/statuses/533d6d4094e11b384651742efa70acb855ff2f04","head":{"label":"FAForever:feature/#571-more-button-for-replays","ref":"feature/#571-more-button-for-replays","sha":"533d6d4094e11b384651742efa70acb855ff2f04","user":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars2.githubusercontent.com/u/8887184?v=4","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"repo":{"id":32919066,"name":"downlords-faf-client","full_name":"FAForever/downlords-faf-client","owner":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars2.githubusercontent.com/u/8887184?v=4","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FAForever/downlords-faf-client","description":"An alternative, modern and feature-rich client for Forged Alliance Forever","fork":false,"url":"https://api.github.com/repos/FAForever/downlords-faf-client","forks_url":"https://api.github.com/repos/FAForever/downlords-faf-client/forks","keys_url":"https://api.github.com/repos/FAForever/downlords-faf-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FAForever/downlords-faf-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FAForever/downlords-faf-client/teams","hooks_url":"https://api.github.com/repos/FAForever/downlords-faf-client/hooks","issue_events_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/events{/number}","events_url":"https://api.github.com/repos/FAForever/downlords-faf-client/events","assignees_url":"https://api.github.com/repos/FAForever/downlords-faf-client/assignees{/user}","branches_url":"https://api.github.com/repos/FAForever/downlords-faf-client/branches{/branch}","tags_url":"https://api.github.com/repos/FAForever/downlords-faf-client/tags","blobs_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FAForever/downlords-faf-client/statuses/{sha}","languages_url":"https://api.github.com/repos/FAForever/downlords-faf-client/languages","stargazers_url":"https://api.github.com/repos/FAForever/downlords-faf-client/stargazers","contributors_url":"https://api.github.com/repos/FAForever/downlords-faf-client/contributors","subscribers_url":"https://api.github.com/repos/FAForever/downlords-faf-client/subscribers","subscription_url":"https://api.github.com/repos/FAForever/downlords-faf-client/subscription","commits_url":"https://api.github.com/repos/FAForever/downlords-faf-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/FAForever/downlords-faf-client/contents/{+path}","compare_url":"https://api.github.com/repos/FAForever/downlords-faf-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FAForever/downlords-faf-client/merges","archive_url":"https://api.github.com/repos/FAForever/downlords-faf-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FAForever/downlords-faf-client/downloads","issues_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues{/number}","pulls_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls{/number}","milestones_url":"https://api.github.com/repos/FAForever/downlords-faf-client/milestones{/number}","notifications_url":"https://api.github.com/repos/FAForever/downlords-faf-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FAForever/downlords-faf-client/labels{/name}","releases_url":"https://api.github.com/repos/FAForever/downlords-faf-client/releases{/id}","deployments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/deployments","created_at":"2015-03-26T09:47:32Z","updated_at":"2017-09-15T19:49:12Z","pushed_at":"2017-09-15T08:47:19Z","git_url":"git://github.com/FAForever/downlords-faf-client.git","ssh_url":"git@github.com:FAForever/downlords-faf-client.git","clone_url":"https://github.com/FAForever/downlords-faf-client.git","svn_url":"https://github.com/FAForever/downlords-faf-client","homepage":"","size":25928,"stargazers_count":32,"watchers_count":32,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":124,"forks":19,"open_issues":124,"watchers":32,"default_branch":"develop"}},"base":{"label":"FAForever:develop","ref":"develop","sha":"acb8d655eb46012bb20f0f7d3e9103e155c59b99","user":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars2.githubusercontent.com/u/8887184?v=4","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"repo":{"id":32919066,"name":"downlords-faf-client","full_name":"FAForever/downlords-faf-client","owner":{"login":"FAForever","id":8887184,"avatar_url":"https://avatars2.githubusercontent.com/u/8887184?v=4","gravatar_id":"","url":"https://api.github.com/users/FAForever","html_url":"https://github.com/FAForever","followers_url":"https://api.github.com/users/FAForever/followers","following_url":"https://api.github.com/users/FAForever/following{/other_user}","gists_url":"https://api.github.com/users/FAForever/gists{/gist_id}","starred_url":"https://api.github.com/users/FAForever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FAForever/subscriptions","organizations_url":"https://api.github.com/users/FAForever/orgs","repos_url":"https://api.github.com/users/FAForever/repos","events_url":"https://api.github.com/users/FAForever/events{/privacy}","received_events_url":"https://api.github.com/users/FAForever/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FAForever/downlords-faf-client","description":"An alternative, modern and feature-rich client for Forged Alliance Forever","fork":false,"url":"https://api.github.com/repos/FAForever/downlords-faf-client","forks_url":"https://api.github.com/repos/FAForever/downlords-faf-client/forks","keys_url":"https://api.github.com/repos/FAForever/downlords-faf-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FAForever/downlords-faf-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FAForever/downlords-faf-client/teams","hooks_url":"https://api.github.com/repos/FAForever/downlords-faf-client/hooks","issue_events_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/events{/number}","events_url":"https://api.github.com/repos/FAForever/downlords-faf-client/events","assignees_url":"https://api.github.com/repos/FAForever/downlords-faf-client/assignees{/user}","branches_url":"https://api.github.com/repos/FAForever/downlords-faf-client/branches{/branch}","tags_url":"https://api.github.com/repos/FAForever/downlords-faf-client/tags","blobs_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FAForever/downlords-faf-client/statuses/{sha}","languages_url":"https://api.github.com/repos/FAForever/downlords-faf-client/languages","stargazers_url":"https://api.github.com/repos/FAForever/downlords-faf-client/stargazers","contributors_url":"https://api.github.com/repos/FAForever/downlords-faf-client/contributors","subscribers_url":"https://api.github.com/repos/FAForever/downlords-faf-client/subscribers","subscription_url":"https://api.github.com/repos/FAForever/downlords-faf-client/subscription","commits_url":"https://api.github.com/repos/FAForever/downlords-faf-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/FAForever/downlords-faf-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/FAForever/downlords-faf-client/contents/{+path}","compare_url":"https://api.github.com/repos/FAForever/downlords-faf-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FAForever/downlords-faf-client/merges","archive_url":"https://api.github.com/repos/FAForever/downlords-faf-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FAForever/downlords-faf-client/downloads","issues_url":"https://api.github.com/repos/FAForever/downlords-faf-client/issues{/number}","pulls_url":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls{/number}","milestones_url":"https://api.github.com/repos/FAForever/downlords-faf-client/milestones{/number}","notifications_url":"https://api.github.com/repos/FAForever/downlords-faf-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FAForever/downlords-faf-client/labels{/name}","releases_url":"https://api.github.com/repos/FAForever/downlords-faf-client/releases{/id}","deployments_url":"https://api.github.com/repos/FAForever/downlords-faf-client/deployments","created_at":"2015-03-26T09:47:32Z","updated_at":"2017-09-15T19:49:12Z","pushed_at":"2017-09-15T08:47:19Z","git_url":"git://github.com/FAForever/downlords-faf-client.git","ssh_url":"git@github.com:FAForever/downlords-faf-client.git","clone_url":"https://github.com/FAForever/downlords-faf-client.git","svn_url":"https://github.com/FAForever/downlords-faf-client","homepage":"","size":25928,"stargazers_count":32,"watchers_count":32,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":19,"mirror_url":null,"open_issues_count":124,"forks":19,"open_issues":124,"watchers":32,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585"},"html":{"href":"https://github.com/FAForever/downlords-faf-client/pull/585"},"issue":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/585"},"comments":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/issues/585/comments"},"review_comments":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585/comments"},"review_comment":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/pulls/585/commits"},"statuses":{"href":"https://api.github.com/repos/FAForever/downlords-faf-client/statuses/533d6d4094e11b384651742efa70acb855ff2f04"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"axel1200"}}