{"action":"created","comment":{"url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments/165296625","pull_request_review_id":93210194,"id":165296625,"diff_hunk":"@@ -0,0 +1,53 @@\n+<?php\n+\n+namespace AppBundle\\DataFixtures\\ORM;\n+\n+use AppBundle\\Entity\\PostAddress;\n+use AppBundle\\Membership\\AdherentFactory;\n+use Doctrine\\Common\\DataFixtures\\AbstractFixture;\n+use Doctrine\\Common\\DataFixtures\\FixtureInterface;\n+use Doctrine\\Common\\Persistence\\ObjectManager;\n+use Symfony\\Component\\DependencyInjection\\ContainerAwareInterface;\n+use Symfony\\Component\\DependencyInjection\\ContainerAwareTrait;\n+use Tests\\AppBundle\\PropertyReplacer;\n+\n+class LoadUserData extends AbstractFixture implements FixtureInterface, ContainerAwareInterface\n+{\n+    use ContainerAwareTrait;\n+\n+    const USER_1_UUID = '313bd28f-efc8-57c9-8ab7-2106c8be9699';\n+\n+    public function load(ObjectManager $manager)\n+    {\n+        $adherentFactory = $this->getAdherentFactory();\n+\n+        // Create adherent users list\n+        $user1 = $adherentFactory->createFromArray([\n+            'uuid' => self::USER_1_UUID,\n+            'password' => 'enmarche',\n+            'email' => 'simple-user@example.ch',\n+            'gender' => 'female',\n+            'first_name' => 'Simple',\n+            'last_name' => 'User',\n+            'address' => PostAddress::createForeignAddress('CH', '8057', 'Zürich', '32 Zeppelinstrasse', 47.3950786, 8.5361402),\n+            'birthdate' => '1972-11-24',\n+        ]);\n+\n+        PropertyReplacer::replaceProperty($user1, 'adherent', false);","path":"src/DataFixtures/ORM/LoadUserData.php","position":null,"original_position":36,"commit_id":"28d4e77eab10c26c064f82f3f117a8e458756a71","original_commit_id":"3538ee0438e8682b8446d33b97690e95692f700e","user":{"login":"blazarecki","id":1443312,"avatar_url":"https://avatars2.githubusercontent.com/u/1443312?v=4","gravatar_id":"","url":"https://api.github.com/users/blazarecki","html_url":"https://github.com/blazarecki","followers_url":"https://api.github.com/users/blazarecki/followers","following_url":"https://api.github.com/users/blazarecki/following{/other_user}","gists_url":"https://api.github.com/users/blazarecki/gists{/gist_id}","starred_url":"https://api.github.com/users/blazarecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazarecki/subscriptions","organizations_url":"https://api.github.com/users/blazarecki/orgs","repos_url":"https://api.github.com/users/blazarecki/repos","events_url":"https://api.github.com/users/blazarecki/events{/privacy}","received_events_url":"https://api.github.com/users/blazarecki/received_events","type":"User","site_admin":false},"body":"I fix it, but for me we can break the encapsulation for testing purpose.","created_at":"2018-02-01T09:23:02Z","updated_at":"2018-02-01T09:23:03Z","html_url":"https://github.com/EnMarche/en-marche.fr/pull/2105#discussion_r165296625","pull_request_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments/165296625"},"html":{"href":"https://github.com/EnMarche/en-marche.fr/pull/2105#discussion_r165296625"},"pull_request":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105"}},"in_reply_to_id":165123753},"pull_request":{"url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105","id":166321949,"html_url":"https://github.com/EnMarche/en-marche.fr/pull/2105","diff_url":"https://github.com/EnMarche/en-marche.fr/pull/2105.diff","patch_url":"https://github.com/EnMarche/en-marche.fr/pull/2105.patch","issue_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/2105","number":2105,"state":"open","locked":false,"title":"Don’t show Profil and My Activities for simple user","user":{"login":"blazarecki","id":1443312,"avatar_url":"https://avatars2.githubusercontent.com/u/1443312?v=4","gravatar_id":"","url":"https://api.github.com/users/blazarecki","html_url":"https://github.com/blazarecki","followers_url":"https://api.github.com/users/blazarecki/followers","following_url":"https://api.github.com/users/blazarecki/following{/other_user}","gists_url":"https://api.github.com/users/blazarecki/gists{/gist_id}","starred_url":"https://api.github.com/users/blazarecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blazarecki/subscriptions","organizations_url":"https://api.github.com/users/blazarecki/orgs","repos_url":"https://api.github.com/users/blazarecki/repos","events_url":"https://api.github.com/users/blazarecki/events{/privacy}","received_events_url":"https://api.github.com/users/blazarecki/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-31T17:12:16Z","updated_at":"2018-02-01T09:23:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ecf5e719541e8ed27ab180f7ac6817a047dda00","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105/commits","review_comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105/comments","review_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/2105/comments","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/28d4e77eab10c26c064f82f3f117a8e458756a71","head":{"label":"EnMarche:auth2-nav","ref":"auth2-nav","sha":"28d4e77eab10c26c064f82f3f117a8e458756a71","user":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars0.githubusercontent.com/u/24521375?v=4","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"repo":{"id":76485630,"name":"en-marche.fr","full_name":"EnMarche/en-marche.fr","owner":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars0.githubusercontent.com/u/24521375?v=4","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnMarche/en-marche.fr","description":"Le site principal du mouvement En Marche ! ","fork":false,"url":"https://api.github.com/repos/EnMarche/en-marche.fr","forks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/forks","keys_url":"https://api.github.com/repos/EnMarche/en-marche.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnMarche/en-marche.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnMarche/en-marche.fr/teams","hooks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/hooks","issue_events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/events{/number}","events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/events","assignees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/assignees{/user}","branches_url":"https://api.github.com/repos/EnMarche/en-marche.fr/branches{/branch}","tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/tags","blobs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/EnMarche/en-marche.fr/languages","stargazers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/stargazers","contributors_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contributors","subscribers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscribers","subscription_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscription","commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contents/{+path}","compare_url":"https://api.github.com/repos/EnMarche/en-marche.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnMarche/en-marche.fr/merges","archive_url":"https://api.github.com/repos/EnMarche/en-marche.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnMarche/en-marche.fr/downloads","issues_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues{/number}","pulls_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/EnMarche/en-marche.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnMarche/en-marche.fr/labels{/name}","releases_url":"https://api.github.com/repos/EnMarche/en-marche.fr/releases{/id}","deployments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/deployments","created_at":"2016-12-14T18:22:36Z","updated_at":"2018-01-23T17:43:22Z","pushed_at":"2018-02-01T09:20:21Z","git_url":"git://github.com/EnMarche/en-marche.fr.git","ssh_url":"git@github.com:EnMarche/en-marche.fr.git","clone_url":"https://github.com/EnMarche/en-marche.fr.git","svn_url":"https://github.com/EnMarche/en-marche.fr","homepage":"https://en-marche.fr","size":130484,"stargazers_count":644,"watchers_count":644,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":147,"open_issues":30,"watchers":644,"default_branch":"master"}},"base":{"label":"EnMarche:auth2","ref":"auth2","sha":"1c46093db8cf48e6a5056026ca596ef3fc0497df","user":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars0.githubusercontent.com/u/24521375?v=4","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"repo":{"id":76485630,"name":"en-marche.fr","full_name":"EnMarche/en-marche.fr","owner":{"login":"EnMarche","id":24521375,"avatar_url":"https://avatars0.githubusercontent.com/u/24521375?v=4","gravatar_id":"","url":"https://api.github.com/users/EnMarche","html_url":"https://github.com/EnMarche","followers_url":"https://api.github.com/users/EnMarche/followers","following_url":"https://api.github.com/users/EnMarche/following{/other_user}","gists_url":"https://api.github.com/users/EnMarche/gists{/gist_id}","starred_url":"https://api.github.com/users/EnMarche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnMarche/subscriptions","organizations_url":"https://api.github.com/users/EnMarche/orgs","repos_url":"https://api.github.com/users/EnMarche/repos","events_url":"https://api.github.com/users/EnMarche/events{/privacy}","received_events_url":"https://api.github.com/users/EnMarche/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnMarche/en-marche.fr","description":"Le site principal du mouvement En Marche ! ","fork":false,"url":"https://api.github.com/repos/EnMarche/en-marche.fr","forks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/forks","keys_url":"https://api.github.com/repos/EnMarche/en-marche.fr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnMarche/en-marche.fr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnMarche/en-marche.fr/teams","hooks_url":"https://api.github.com/repos/EnMarche/en-marche.fr/hooks","issue_events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/events{/number}","events_url":"https://api.github.com/repos/EnMarche/en-marche.fr/events","assignees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/assignees{/user}","branches_url":"https://api.github.com/repos/EnMarche/en-marche.fr/branches{/branch}","tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/tags","blobs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/{sha}","languages_url":"https://api.github.com/repos/EnMarche/en-marche.fr/languages","stargazers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/stargazers","contributors_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contributors","subscribers_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscribers","subscription_url":"https://api.github.com/repos/EnMarche/en-marche.fr/subscription","commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnMarche/en-marche.fr/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnMarche/en-marche.fr/contents/{+path}","compare_url":"https://api.github.com/repos/EnMarche/en-marche.fr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnMarche/en-marche.fr/merges","archive_url":"https://api.github.com/repos/EnMarche/en-marche.fr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnMarche/en-marche.fr/downloads","issues_url":"https://api.github.com/repos/EnMarche/en-marche.fr/issues{/number}","pulls_url":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls{/number}","milestones_url":"https://api.github.com/repos/EnMarche/en-marche.fr/milestones{/number}","notifications_url":"https://api.github.com/repos/EnMarche/en-marche.fr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnMarche/en-marche.fr/labels{/name}","releases_url":"https://api.github.com/repos/EnMarche/en-marche.fr/releases{/id}","deployments_url":"https://api.github.com/repos/EnMarche/en-marche.fr/deployments","created_at":"2016-12-14T18:22:36Z","updated_at":"2018-01-23T17:43:22Z","pushed_at":"2018-02-01T09:20:21Z","git_url":"git://github.com/EnMarche/en-marche.fr.git","ssh_url":"git@github.com:EnMarche/en-marche.fr.git","clone_url":"https://github.com/EnMarche/en-marche.fr.git","svn_url":"https://github.com/EnMarche/en-marche.fr","homepage":"https://en-marche.fr","size":130484,"stargazers_count":644,"watchers_count":644,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"archived":false,"open_issues_count":30,"license":null,"forks":147,"open_issues":30,"watchers":644,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105"},"html":{"href":"https://github.com/EnMarche/en-marche.fr/pull/2105"},"issue":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/2105"},"comments":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/issues/2105/comments"},"review_comments":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105/comments"},"review_comment":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/pulls/2105/commits"},"statuses":{"href":"https://api.github.com/repos/EnMarche/en-marche.fr/statuses/28d4e77eab10c26c064f82f3f117a8e458756a71"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"blazarecki"}}