{"action":"created","comment":{"url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments/146621593","pull_request_review_id":71590083,"id":146621593,"diff_hunk":"@@ -0,0 +1,44 @@\n+extensions:\n+    pim-product-model-create-modal:\n+       module: pim/form/common/creation/modal\n+       config:\n+           labels:\n+               title: pim_enrich.entity.product_model.create_popin.title\n+               subTitle: pim_menu.tab.products\n+               content: pim_enrich.entity.product_model.create_popin.content\n+           picture: illustrations/Product-model.svg\n+           successMessage: pim_enrich.entity.product_model.info.create_successful\n+           editRoute: pim_enrich_product_model_edit\n+           postUrl: pim_enrich_product_model_rest_create\n+           excludedProperties: [ family ]\n+           displayGlobalErrors: true","path":"src/Pim/Bundle/EnrichBundle/Resources/config/form_extensions/product_model/create.yml","position":14,"original_position":14,"commit_id":"c0c2e24845d8cc7e6e497e11b35055c3e3b6a526","original_commit_id":"c0c2e24845d8cc7e6e497e11b35055c3e3b6a526","user":{"login":"tamarasaurus","id":1336344,"avatar_url":"https://avatars1.githubusercontent.com/u/1336344?v=4","gravatar_id":"","url":"https://api.github.com/users/tamarasaurus","html_url":"https://github.com/tamarasaurus","followers_url":"https://api.github.com/users/tamarasaurus/followers","following_url":"https://api.github.com/users/tamarasaurus/following{/other_user}","gists_url":"https://api.github.com/users/tamarasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/tamarasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamarasaurus/subscriptions","organizations_url":"https://api.github.com/users/tamarasaurus/orgs","repos_url":"https://api.github.com/users/tamarasaurus/repos","events_url":"https://api.github.com/users/tamarasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/tamarasaurus/received_events","type":"User","site_admin":false},"body":"remove ","created_at":"2017-10-24T16:42:46Z","updated_at":"2017-10-24T16:42:46Z","html_url":"https://github.com/akeneo/pim-community-dev/pull/7004#discussion_r146621593","pull_request_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments/146621593"},"html":{"href":"https://github.com/akeneo/pim-community-dev/pull/7004#discussion_r146621593"},"pull_request":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004"}}},"pull_request":{"url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004","id":146828235,"html_url":"https://github.com/akeneo/pim-community-dev/pull/7004","diff_url":"https://github.com/akeneo/pim-community-dev/pull/7004.diff","patch_url":"https://github.com/akeneo/pim-community-dev/pull/7004.patch","issue_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/7004","number":7004,"state":"open","locked":false,"title":"PIM-6337: Create a root product model form","user":{"login":"tamarasaurus","id":1336344,"avatar_url":"https://avatars1.githubusercontent.com/u/1336344?v=4","gravatar_id":"","url":"https://api.github.com/users/tamarasaurus","html_url":"https://github.com/tamarasaurus","followers_url":"https://api.github.com/users/tamarasaurus/followers","following_url":"https://api.github.com/users/tamarasaurus/following{/other_user}","gists_url":"https://api.github.com/users/tamarasaurus/gists{/gist_id}","starred_url":"https://api.github.com/users/tamarasaurus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamarasaurus/subscriptions","organizations_url":"https://api.github.com/users/tamarasaurus/orgs","repos_url":"https://api.github.com/users/tamarasaurus/repos","events_url":"https://api.github.com/users/tamarasaurus/events{/privacy}","received_events_url":"https://api.github.com/users/tamarasaurus/received_events","type":"User","site_admin":false},"body":"<!--- (<3 Thanks for taking the time to contribute! You're awesome! <3) --->\r\n\r\n<!--- (If you've never contributed to this repository before, please read https://github.com/akeneo/pim-community-dev/blob/master/.github/CONTRIBUTING.md) --->\r\n\r\n**Description (for Contributor and Core Developer)**\r\n\r\nThis PR adds a new form and endpoints to create a product model.  \r\n\r\nBusiness rules:\r\n- The family variant list depends on the selected family\r\n- Only families with at least one variant are displayed in the list\r\n- If the family only has one variant, select it by default\r\n- If the family field is cleared, the variant should be removed\r\n- If the user doesn't have permission to create a product model, go directly to the create product form (the inverse is the same). \r\n\r\n\r\n<!--- (What does this Pull Request do? reference the related issue?) --->\r\n\r\n**Definition Of Done (for Core Developer only)**\r\n\r\n| Q                                 | A\r\n| --------------------------------- | ---\r\n| Added Specs                       | -\r\n| Added Behats                      | OK\r\n| Added integration tests           | -\r\n| Changelog updated                 | OK\r\n| Review and 2 GTM                  | Todo\r\n| Micro Demo to the PO (Story only) | -\r\n| Migration script                  | -\r\n| Tech Doc                          | -\r\n\r\n`Todo`: Pending / Work in progress\r\n`OK`: Done / Validated\r\n`-`: Not needed\r\n","created_at":"2017-10-16T16:20:35Z","updated_at":"2017-10-24T16:42:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc9792035dcbf6cbfe8ab77b6d536c0cc17b28e2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones/13","html_url":"https://github.com/akeneo/pim-community-dev/milestone/13","labels_url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones/13/labels","id":2401054,"number":13,"title":"2.0.x","description":"","creator":{"login":"nidup","id":2104359,"avatar_url":"https://avatars1.githubusercontent.com/u/2104359?v=4","gravatar_id":"","url":"https://api.github.com/users/nidup","html_url":"https://github.com/nidup","followers_url":"https://api.github.com/users/nidup/followers","following_url":"https://api.github.com/users/nidup/following{/other_user}","gists_url":"https://api.github.com/users/nidup/gists{/gist_id}","starred_url":"https://api.github.com/users/nidup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nidup/subscriptions","organizations_url":"https://api.github.com/users/nidup/orgs","repos_url":"https://api.github.com/users/nidup/repos","events_url":"https://api.github.com/users/nidup/events{/privacy}","received_events_url":"https://api.github.com/users/nidup/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":87,"state":"open","created_at":"2017-03-21T14:47:51Z","updated_at":"2017-10-23T11:23:24Z","due_on":"2017-09-30T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004/commits","review_comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004/comments","review_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/7004/comments","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/c0c2e24845d8cc7e6e497e11b35055c3e3b6a526","head":{"label":"akeneo:PIM-6337","ref":"PIM-6337","sha":"c0c2e24845d8cc7e6e497e11b35055c3e3b6a526","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars0.githubusercontent.com/u/2510186?v=4","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":5367323,"name":"pim-community-dev","full_name":"akeneo/pim-community-dev","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars0.githubusercontent.com/u/2510186?v=4","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/pim-community-dev","description":"[Community Development Repository] The open source Product Information Management (PIM)","fork":false,"url":"https://api.github.com/repos/akeneo/pim-community-dev","forks_url":"https://api.github.com/repos/akeneo/pim-community-dev/forks","keys_url":"https://api.github.com/repos/akeneo/pim-community-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/pim-community-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/pim-community-dev/teams","hooks_url":"https://api.github.com/repos/akeneo/pim-community-dev/hooks","issue_events_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/pim-community-dev/events","assignees_url":"https://api.github.com/repos/akeneo/pim-community-dev/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/pim-community-dev/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/tags","blobs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/pim-community-dev/languages","stargazers_url":"https://api.github.com/repos/akeneo/pim-community-dev/stargazers","contributors_url":"https://api.github.com/repos/akeneo/pim-community-dev/contributors","subscribers_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscribers","subscription_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscription","commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/pim-community-dev/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/pim-community-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/pim-community-dev/merges","archive_url":"https://api.github.com/repos/akeneo/pim-community-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/pim-community-dev/downloads","issues_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/pim-community-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/pim-community-dev/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/pim-community-dev/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/pim-community-dev/deployments","created_at":"2012-08-10T09:27:26Z","updated_at":"2017-10-24T00:50:59Z","pushed_at":"2017-10-24T16:40:51Z","git_url":"git://github.com/akeneo/pim-community-dev.git","ssh_url":"git@github.com:akeneo/pim-community-dev.git","clone_url":"https://github.com/akeneo/pim-community-dev.git","svn_url":"https://github.com/akeneo/pim-community-dev","homepage":"http://www.akeneo.com","size":129698,"stargazers_count":437,"watchers_count":437,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":273,"mirror_url":null,"archived":false,"open_issues_count":168,"forks":273,"open_issues":168,"watchers":437,"default_branch":"2.0"}},"base":{"label":"akeneo:2.0","ref":"2.0","sha":"d9ce7ce990fb21c77c11012fe09971be0cf03dcc","user":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars0.githubusercontent.com/u/2510186?v=4","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"repo":{"id":5367323,"name":"pim-community-dev","full_name":"akeneo/pim-community-dev","owner":{"login":"akeneo","id":2510186,"avatar_url":"https://avatars0.githubusercontent.com/u/2510186?v=4","gravatar_id":"","url":"https://api.github.com/users/akeneo","html_url":"https://github.com/akeneo","followers_url":"https://api.github.com/users/akeneo/followers","following_url":"https://api.github.com/users/akeneo/following{/other_user}","gists_url":"https://api.github.com/users/akeneo/gists{/gist_id}","starred_url":"https://api.github.com/users/akeneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akeneo/subscriptions","organizations_url":"https://api.github.com/users/akeneo/orgs","repos_url":"https://api.github.com/users/akeneo/repos","events_url":"https://api.github.com/users/akeneo/events{/privacy}","received_events_url":"https://api.github.com/users/akeneo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akeneo/pim-community-dev","description":"[Community Development Repository] The open source Product Information Management (PIM)","fork":false,"url":"https://api.github.com/repos/akeneo/pim-community-dev","forks_url":"https://api.github.com/repos/akeneo/pim-community-dev/forks","keys_url":"https://api.github.com/repos/akeneo/pim-community-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akeneo/pim-community-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akeneo/pim-community-dev/teams","hooks_url":"https://api.github.com/repos/akeneo/pim-community-dev/hooks","issue_events_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/events{/number}","events_url":"https://api.github.com/repos/akeneo/pim-community-dev/events","assignees_url":"https://api.github.com/repos/akeneo/pim-community-dev/assignees{/user}","branches_url":"https://api.github.com/repos/akeneo/pim-community-dev/branches{/branch}","tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/tags","blobs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/akeneo/pim-community-dev/languages","stargazers_url":"https://api.github.com/repos/akeneo/pim-community-dev/stargazers","contributors_url":"https://api.github.com/repos/akeneo/pim-community-dev/contributors","subscribers_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscribers","subscription_url":"https://api.github.com/repos/akeneo/pim-community-dev/subscription","commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/akeneo/pim-community-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/akeneo/pim-community-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/akeneo/pim-community-dev/contents/{+path}","compare_url":"https://api.github.com/repos/akeneo/pim-community-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akeneo/pim-community-dev/merges","archive_url":"https://api.github.com/repos/akeneo/pim-community-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akeneo/pim-community-dev/downloads","issues_url":"https://api.github.com/repos/akeneo/pim-community-dev/issues{/number}","pulls_url":"https://api.github.com/repos/akeneo/pim-community-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/akeneo/pim-community-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/akeneo/pim-community-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akeneo/pim-community-dev/labels{/name}","releases_url":"https://api.github.com/repos/akeneo/pim-community-dev/releases{/id}","deployments_url":"https://api.github.com/repos/akeneo/pim-community-dev/deployments","created_at":"2012-08-10T09:27:26Z","updated_at":"2017-10-24T00:50:59Z","pushed_at":"2017-10-24T16:40:51Z","git_url":"git://github.com/akeneo/pim-community-dev.git","ssh_url":"git@github.com:akeneo/pim-community-dev.git","clone_url":"https://github.com/akeneo/pim-community-dev.git","svn_url":"https://github.com/akeneo/pim-community-dev","homepage":"http://www.akeneo.com","size":129698,"stargazers_count":437,"watchers_count":437,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":273,"mirror_url":null,"archived":false,"open_issues_count":168,"forks":273,"open_issues":168,"watchers":437,"default_branch":"2.0"}},"_links":{"self":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004"},"html":{"href":"https://github.com/akeneo/pim-community-dev/pull/7004"},"issue":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/issues/7004"},"comments":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/issues/7004/comments"},"review_comments":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004/comments"},"review_comment":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/pulls/7004/commits"},"statuses":{"href":"https://api.github.com/repos/akeneo/pim-community-dev/statuses/c0c2e24845d8cc7e6e497e11b35055c3e3b6a526"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tamarasaurus"}}