{"action":"created","comment":{"url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/comments/78283215","id":78283215,"diff_hunk":"@@ -0,0 +1,45 @@\n+package application.web;\n+\n+import application.model.Client;\n+import application.model.Dish;\n+import application.services.DefaultMenuService;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Controller;\n+import org.springframework.web.bind.annotation.ModelAttribute;\n+import org.springframework.web.bind.annotation.RequestMapping;\n+import org.springframework.web.bind.annotation.SessionAttributes;\n+import org.springframework.web.servlet.ModelAndView;\n+\n+import javax.servlet.http.HttpServletRequest;\n+import java.util.List;\n+import java.util.Optional;\n+\n+/**\n+ * Created by MSI on 09.09.2016.\n+ */\n+@Controller\n+@SessionAttributes(types = Client.class)\n+public class MenuController {\n+\n+    @Autowired\n+    DefaultMenuService service;\n+\n+    @RequestMapping(\"/showMenu\")\n+    public ModelAndView requestHandlingMethod(HttpServletRequest request, @ModelAttribute Client client) {\n+        Optional<String> sorter = null;\n+        sorter = Optional.ofNullable(request.getParameter(\"sorter\"));\n+\n+        List<Dish> menu;","path":"src/main/java/application/web/MenuController.java","position":32,"original_position":32,"commit_id":"a1e0f52a528ac96e5ead69a0751553fad9d08715","original_commit_id":"a1e0f52a528ac96e5ead69a0751553fad9d08715","user":{"login":"vasilievip","id":1525698,"avatar_url":"https://avatars.githubusercontent.com/u/1525698?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilievip","html_url":"https://github.com/vasilievip","followers_url":"https://api.github.com/users/vasilievip/followers","following_url":"https://api.github.com/users/vasilievip/following{/other_user}","gists_url":"https://api.github.com/users/vasilievip/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilievip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilievip/subscriptions","organizations_url":"https://api.github.com/users/vasilievip/orgs","repos_url":"https://api.github.com/users/vasilievip/repos","events_url":"https://api.github.com/users/vasilievip/events{/privacy}","received_events_url":"https://api.github.com/users/vasilievip/received_events","type":"User","site_admin":false},"body":"switch to java 8\r\n\r\nList<Dish> menu = sorter.map( s -> service.performSortedSearch(sorter.get())).orElse(menu = service.getMenu());\r\n","created_at":"2016-09-10T20:03:50Z","updated_at":"2016-09-10T20:03:50Z","html_url":"https://github.com/VitaliyMi/OnlineMarket/pull/3#discussion_r78283215","pull_request_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/comments/78283215"},"html":{"href":"https://github.com/VitaliyMi/OnlineMarket/pull/3#discussion_r78283215"},"pull_request":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3","id":84765689,"html_url":"https://github.com/VitaliyMi/OnlineMarket/pull/3","diff_url":"https://github.com/VitaliyMi/OnlineMarket/pull/3.diff","patch_url":"https://github.com/VitaliyMi/OnlineMarket/pull/3.patch","issue_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/3","number":3,"state":"open","locked":false,"title":"Bootstrap","user":{"login":"vasilievip","id":1525698,"avatar_url":"https://avatars.githubusercontent.com/u/1525698?v=3","gravatar_id":"","url":"https://api.github.com/users/vasilievip","html_url":"https://github.com/vasilievip","followers_url":"https://api.github.com/users/vasilievip/followers","following_url":"https://api.github.com/users/vasilievip/following{/other_user}","gists_url":"https://api.github.com/users/vasilievip/gists{/gist_id}","starred_url":"https://api.github.com/users/vasilievip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasilievip/subscriptions","organizations_url":"https://api.github.com/users/vasilievip/orgs","repos_url":"https://api.github.com/users/vasilievip/repos","events_url":"https://api.github.com/users/vasilievip/events{/privacy}","received_events_url":"https://api.github.com/users/vasilievip/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-10T19:41:02Z","updated_at":"2016-09-10T20:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f917d8148f3d2147efaa8e8bc89eb621036b4b9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3/commits","review_comments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3/comments","review_comment_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/3/comments","statuses_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/statuses/a1e0f52a528ac96e5ead69a0751553fad9d08715","head":{"label":"VitaliyMi:bootstrap","ref":"bootstrap","sha":"a1e0f52a528ac96e5ead69a0751553fad9d08715","user":{"login":"VitaliyMi","id":13299562,"avatar_url":"https://avatars.githubusercontent.com/u/13299562?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyMi","html_url":"https://github.com/VitaliyMi","followers_url":"https://api.github.com/users/VitaliyMi/followers","following_url":"https://api.github.com/users/VitaliyMi/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyMi/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyMi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyMi/subscriptions","organizations_url":"https://api.github.com/users/VitaliyMi/orgs","repos_url":"https://api.github.com/users/VitaliyMi/repos","events_url":"https://api.github.com/users/VitaliyMi/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyMi/received_events","type":"User","site_admin":false},"repo":{"id":60389969,"name":"OnlineMarket","full_name":"VitaliyMi/OnlineMarket","owner":{"login":"VitaliyMi","id":13299562,"avatar_url":"https://avatars.githubusercontent.com/u/13299562?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyMi","html_url":"https://github.com/VitaliyMi","followers_url":"https://api.github.com/users/VitaliyMi/followers","following_url":"https://api.github.com/users/VitaliyMi/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyMi/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyMi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyMi/subscriptions","organizations_url":"https://api.github.com/users/VitaliyMi/orgs","repos_url":"https://api.github.com/users/VitaliyMi/repos","events_url":"https://api.github.com/users/VitaliyMi/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyMi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitaliyMi/OnlineMarket","description":null,"fork":false,"url":"https://api.github.com/repos/VitaliyMi/OnlineMarket","forks_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/forks","keys_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/teams","hooks_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/hooks","issue_events_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/events{/number}","events_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/events","assignees_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/assignees{/user}","branches_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/branches{/branch}","tags_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/tags","blobs_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/statuses/{sha}","languages_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/languages","stargazers_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/stargazers","contributors_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/contributors","subscribers_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/subscribers","subscription_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/subscription","commits_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/contents/{+path}","compare_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/merges","archive_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/downloads","issues_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues{/number}","pulls_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls{/number}","milestones_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/milestones{/number}","notifications_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/labels{/name}","releases_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/releases{/id}","deployments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/deployments","created_at":"2016-06-04T02:50:43Z","updated_at":"2016-08-02T22:54:43Z","pushed_at":"2016-09-10T19:41:02Z","git_url":"git://github.com/VitaliyMi/OnlineMarket.git","ssh_url":"git@github.com:VitaliyMi/OnlineMarket.git","clone_url":"https://github.com/VitaliyMi/OnlineMarket.git","svn_url":"https://github.com/VitaliyMi/OnlineMarket","homepage":"https://dishorder.herokuapp.com/","size":367,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"VitaliyMi:master","ref":"master","sha":"60644e7c390f21de4a63954367887d3c4599c6fa","user":{"login":"VitaliyMi","id":13299562,"avatar_url":"https://avatars.githubusercontent.com/u/13299562?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyMi","html_url":"https://github.com/VitaliyMi","followers_url":"https://api.github.com/users/VitaliyMi/followers","following_url":"https://api.github.com/users/VitaliyMi/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyMi/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyMi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyMi/subscriptions","organizations_url":"https://api.github.com/users/VitaliyMi/orgs","repos_url":"https://api.github.com/users/VitaliyMi/repos","events_url":"https://api.github.com/users/VitaliyMi/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyMi/received_events","type":"User","site_admin":false},"repo":{"id":60389969,"name":"OnlineMarket","full_name":"VitaliyMi/OnlineMarket","owner":{"login":"VitaliyMi","id":13299562,"avatar_url":"https://avatars.githubusercontent.com/u/13299562?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyMi","html_url":"https://github.com/VitaliyMi","followers_url":"https://api.github.com/users/VitaliyMi/followers","following_url":"https://api.github.com/users/VitaliyMi/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyMi/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyMi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyMi/subscriptions","organizations_url":"https://api.github.com/users/VitaliyMi/orgs","repos_url":"https://api.github.com/users/VitaliyMi/repos","events_url":"https://api.github.com/users/VitaliyMi/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyMi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitaliyMi/OnlineMarket","description":null,"fork":false,"url":"https://api.github.com/repos/VitaliyMi/OnlineMarket","forks_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/forks","keys_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/teams","hooks_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/hooks","issue_events_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/events{/number}","events_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/events","assignees_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/assignees{/user}","branches_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/branches{/branch}","tags_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/tags","blobs_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/statuses/{sha}","languages_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/languages","stargazers_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/stargazers","contributors_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/contributors","subscribers_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/subscribers","subscription_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/subscription","commits_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/contents/{+path}","compare_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/merges","archive_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/downloads","issues_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues{/number}","pulls_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls{/number}","milestones_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/milestones{/number}","notifications_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/labels{/name}","releases_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/releases{/id}","deployments_url":"https://api.github.com/repos/VitaliyMi/OnlineMarket/deployments","created_at":"2016-06-04T02:50:43Z","updated_at":"2016-08-02T22:54:43Z","pushed_at":"2016-09-10T19:41:02Z","git_url":"git://github.com/VitaliyMi/OnlineMarket.git","ssh_url":"git@github.com:VitaliyMi/OnlineMarket.git","clone_url":"https://github.com/VitaliyMi/OnlineMarket.git","svn_url":"https://github.com/VitaliyMi/OnlineMarket","homepage":"https://dishorder.herokuapp.com/","size":367,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3"},"html":{"href":"https://github.com/VitaliyMi/OnlineMarket/pull/3"},"issue":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/3"},"comments":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/VitaliyMi/OnlineMarket/statuses/a1e0f52a528ac96e5ead69a0751553fad9d08715"}}}}
{"actor":{"display_login":"vasilievip"}}