{"action":"created","comment":{"url":"https://api.github.com/repos/Zales0123/Sylius/pulls/comments/37737320","id":37737320,"diff_hunk":"@@ -0,0 +1,86 @@\n+@reviews\n+Feature: Reviews\n+    In orders to know customer's opinions about my products\n+    As a store owner\n+    I want to be able to manage reviews\n+\n+    Background:\n+        Given there are following users:\n+            | email          | enabled  | created at          |\n+            | beth@foo.com   | yes      | 2010-01-02 12:00:00 |\n+            | martha@foo.com | yes      | 2010-01-02 13:00:00 |\n+            | rick@foo.com   | yes      | 2010-01-03 12:00:00 |\n+        And there are following taxonomies defined:\n+            | name     |\n+            | Category |\n+        And taxonomy \"Category\" has following taxons:\n+            | Clothing > T-Shirts     |\n+            | Clothing > PHP T-Shirts |\n+            | Clothing > Gloves       |\n+        And the following products exist:\n+            | name             | price | taxons       | average_rating |\n+            | Super T-Shirt    | 19.99 | T-Shirts     | 0              |\n+            | Black T-Shirt    | 18.99 | T-Shirts     | 0              |\n+            | Sylius Tee       | 12.99 | PHP T-Shirts | 0              |\n+            | Symfony T-Shirt  | 15.00 | PHP T-Shirts | 5              |\n+            | Doctrine T-Shirt | 15.00 | PHP T-Shirts | 0              |\n+        And there are following reviews:\n+            | title       | rating | comment               | author         | product         |\n+            | Really bad  | 1      | Lorem ipsum dolor sit | bbeth@foo.com  | Symfony T-Shirt |\n+            | Very good   | 4      | Lorem ipsum dolor sit | martha@foo.com | Black T-Shirt   |\n+            | Awesome     | 5      | Lorem ipsum dolor sit | rick@foo.com   | Sylius Tee      |\n+        And there is default currency configured\n+        And there is default channel configured\n+        And I am logged in as administrator\n+\n+    Scenario: Seeing created reviews in the list\n+        Given I am on the dashboard page\n+         When I follow \"Reviews\"\n+         Then I should see 3 reviews in the list\n+\n+    Scenario: Adding new review with default options\n+        Given I am on the review creation page\n+         When I fill in the following:\n+            | Title   | New review        |\n+            | Comment | Lorem ipsum dolor |\n+          And I select the \"5\" radio button\n+          And I press \"Create\"\n+         Then I should be on the page of review \"Report2\"\n+          And I should see \"Review has been successfully created.\"\n+          And I should see \"Lorem ipsum dolor\"\n+\n+    Scenario: Prevent adding review without required fields\n+        Given I am on the review creation page\n+         When I press \"Create\"\n+         Then I should still be on the review creation page\n+          And I should see \"You must check review rating.\"\n+          And I should see \"Review title should not be blank.\"\n+          And I should see \"Review comment should not be blank.\"\n+\n+    Scenario: Accessing review edit page from the list\n+        Given I am on the review index page\n+         When I press \"edit\" near \"Very good\"\n+         Then I should be editing review with name \"Very good\"\n+\n+    Scenario: Accessing review edit page from details page\n+        Given I am on the review \"Very good\" page\n+         When I press \"Edit\"\n+         Then I should be editing review with name \"Very good\"\n+\n+    Scenario: Updating review\n+        Given I am editing review \"Very good\"\n+         When I fill in \"Title\" with \"Very, very good\"\n+          And I press \"Save changes\"\n+         Then I should be on the page of review \"Very, very good\"\n+\n+    Scenario: Removing review from the list\n+        Given I am on the review index page\n+         When I press \"Delete\" near \"Awesome\"","path":"features/reviews/reviews.feature","position":78,"original_position":78,"commit_id":"c90a158253684fb92b27621d6406a0e902d15cb4","original_commit_id":"c90a158253684fb92b27621d6406a0e902d15cb4","user":{"login":"pamil","id":1897953,"avatar_url":"https://avatars.githubusercontent.com/u/1897953?v=3","gravatar_id":"","url":"https://api.github.com/users/pamil","html_url":"https://github.com/pamil","followers_url":"https://api.github.com/users/pamil/followers","following_url":"https://api.github.com/users/pamil/following{/other_user}","gists_url":"https://api.github.com/users/pamil/gists{/gist_id}","starred_url":"https://api.github.com/users/pamil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pamil/subscriptions","organizations_url":"https://api.github.com/users/pamil/orgs","repos_url":"https://api.github.com/users/pamil/repos","events_url":"https://api.github.com/users/pamil/events{/privacy}","received_events_url":"https://api.github.com/users/pamil/received_events","type":"User","site_admin":false},"body":"We use modals for every delete action in Sylius.","created_at":"2015-08-24T10:17:43Z","updated_at":"2015-08-24T10:17:43Z","html_url":"https://github.com/Zales0123/Sylius/pull/2#discussion_r37737320","pull_request_url":"https://api.github.com/repos/Zales0123/Sylius/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/comments/37737320"},"html":{"href":"https://github.com/Zales0123/Sylius/pull/2#discussion_r37737320"},"pull_request":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Zales0123/Sylius/pulls/2","id":42786904,"html_url":"https://github.com/Zales0123/Sylius/pull/2","diff_url":"https://github.com/Zales0123/Sylius/pull/2.diff","patch_url":"https://github.com/Zales0123/Sylius/pull/2.patch","issue_url":"https://api.github.com/repos/Zales0123/Sylius/issues/2","number":2,"state":"open","locked":false,"title":"[WIP] SyliusReviewBundle","user":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"body":"- [x] split bundle to bundle and component\r\n- [x] code refactoring\r\n- [x] product review add form\r\n  - [x] basic form\r\n  - [x] implement listener that adds currently logged user as author\r\n- [x] product review list\r\n- [x] validation on front-end module\r\n  - [x] make validation work\r\n  - [x] make validation display properly\r\n- [x] calculator, that calculates average rating for review\r\n- [ ] back-end CRUD for reviews","created_at":"2015-08-19T08:07:24Z","updated_at":"2015-08-24T10:17:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c923a6409770492ea556117bb1253f8b08c3666","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Zales0123/Sylius/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Zales0123/Sylius/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Zales0123/Sylius/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zales0123/Sylius/issues/2/comments","statuses_url":"https://api.github.com/repos/Zales0123/Sylius/statuses/c90a158253684fb92b27621d6406a0e902d15cb4","head":{"label":"Zales0123:sylius-review-bundle","ref":"sylius-review-bundle","sha":"c90a158253684fb92b27621d6406a0e902d15cb4","user":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"repo":{"id":28911466,"name":"Sylius","full_name":"Zales0123/Sylius","owner":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zales0123/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/Zales0123/Sylius","forks_url":"https://api.github.com/repos/Zales0123/Sylius/forks","keys_url":"https://api.github.com/repos/Zales0123/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zales0123/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zales0123/Sylius/teams","hooks_url":"https://api.github.com/repos/Zales0123/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Zales0123/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Zales0123/Sylius/events","assignees_url":"https://api.github.com/repos/Zales0123/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Zales0123/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Zales0123/Sylius/tags","blobs_url":"https://api.github.com/repos/Zales0123/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zales0123/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zales0123/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zales0123/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zales0123/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Zales0123/Sylius/languages","stargazers_url":"https://api.github.com/repos/Zales0123/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Zales0123/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Zales0123/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Zales0123/Sylius/subscription","commits_url":"https://api.github.com/repos/Zales0123/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zales0123/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zales0123/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zales0123/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zales0123/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Zales0123/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zales0123/Sylius/merges","archive_url":"https://api.github.com/repos/Zales0123/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zales0123/Sylius/downloads","issues_url":"https://api.github.com/repos/Zales0123/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Zales0123/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Zales0123/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Zales0123/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zales0123/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Zales0123/Sylius/releases{/id}","created_at":"2015-01-07T11:20:44Z","updated_at":"2015-05-06T12:22:35Z","pushed_at":"2015-08-22T23:56:10Z","git_url":"git://github.com/Zales0123/Sylius.git","ssh_url":"git@github.com:Zales0123/Sylius.git","clone_url":"https://github.com/Zales0123/Sylius.git","svn_url":"https://github.com/Zales0123/Sylius","homepage":"Sylius.org","size":18868,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Zales0123:master","ref":"master","sha":"ffebba9a01632ca84c706065f10f42c5bcb56c61","user":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"repo":{"id":28911466,"name":"Sylius","full_name":"Zales0123/Sylius","owner":{"login":"Zales0123","id":6212718,"avatar_url":"https://avatars.githubusercontent.com/u/6212718?v=3","gravatar_id":"","url":"https://api.github.com/users/Zales0123","html_url":"https://github.com/Zales0123","followers_url":"https://api.github.com/users/Zales0123/followers","following_url":"https://api.github.com/users/Zales0123/following{/other_user}","gists_url":"https://api.github.com/users/Zales0123/gists{/gist_id}","starred_url":"https://api.github.com/users/Zales0123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zales0123/subscriptions","organizations_url":"https://api.github.com/users/Zales0123/orgs","repos_url":"https://api.github.com/users/Zales0123/repos","events_url":"https://api.github.com/users/Zales0123/events{/privacy}","received_events_url":"https://api.github.com/users/Zales0123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zales0123/Sylius","description":"Modern e-commerce for PHP, based on the Symfony2 framework.","fork":true,"url":"https://api.github.com/repos/Zales0123/Sylius","forks_url":"https://api.github.com/repos/Zales0123/Sylius/forks","keys_url":"https://api.github.com/repos/Zales0123/Sylius/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zales0123/Sylius/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zales0123/Sylius/teams","hooks_url":"https://api.github.com/repos/Zales0123/Sylius/hooks","issue_events_url":"https://api.github.com/repos/Zales0123/Sylius/issues/events{/number}","events_url":"https://api.github.com/repos/Zales0123/Sylius/events","assignees_url":"https://api.github.com/repos/Zales0123/Sylius/assignees{/user}","branches_url":"https://api.github.com/repos/Zales0123/Sylius/branches{/branch}","tags_url":"https://api.github.com/repos/Zales0123/Sylius/tags","blobs_url":"https://api.github.com/repos/Zales0123/Sylius/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zales0123/Sylius/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zales0123/Sylius/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zales0123/Sylius/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zales0123/Sylius/statuses/{sha}","languages_url":"https://api.github.com/repos/Zales0123/Sylius/languages","stargazers_url":"https://api.github.com/repos/Zales0123/Sylius/stargazers","contributors_url":"https://api.github.com/repos/Zales0123/Sylius/contributors","subscribers_url":"https://api.github.com/repos/Zales0123/Sylius/subscribers","subscription_url":"https://api.github.com/repos/Zales0123/Sylius/subscription","commits_url":"https://api.github.com/repos/Zales0123/Sylius/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zales0123/Sylius/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zales0123/Sylius/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zales0123/Sylius/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zales0123/Sylius/contents/{+path}","compare_url":"https://api.github.com/repos/Zales0123/Sylius/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zales0123/Sylius/merges","archive_url":"https://api.github.com/repos/Zales0123/Sylius/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zales0123/Sylius/downloads","issues_url":"https://api.github.com/repos/Zales0123/Sylius/issues{/number}","pulls_url":"https://api.github.com/repos/Zales0123/Sylius/pulls{/number}","milestones_url":"https://api.github.com/repos/Zales0123/Sylius/milestones{/number}","notifications_url":"https://api.github.com/repos/Zales0123/Sylius/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zales0123/Sylius/labels{/name}","releases_url":"https://api.github.com/repos/Zales0123/Sylius/releases{/id}","created_at":"2015-01-07T11:20:44Z","updated_at":"2015-05-06T12:22:35Z","pushed_at":"2015-08-22T23:56:10Z","git_url":"git://github.com/Zales0123/Sylius.git","ssh_url":"git@github.com:Zales0123/Sylius.git","clone_url":"https://github.com/Zales0123/Sylius.git","svn_url":"https://github.com/Zales0123/Sylius","homepage":"Sylius.org","size":18868,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/2"},"html":{"href":"https://github.com/Zales0123/Sylius/pull/2"},"issue":{"href":"https://api.github.com/repos/Zales0123/Sylius/issues/2"},"comments":{"href":"https://api.github.com/repos/Zales0123/Sylius/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zales0123/Sylius/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Zales0123/Sylius/statuses/c90a158253684fb92b27621d6406a0e902d15cb4"}}}}