{"action":"created","comment":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/comments/62429384","id":62429384,"diff_hunk":"@@ -0,0 +1,38 @@\n+<?php\n+\n+/*\n+|--------------------------------------------------------------------------\n+| Model Factories\n+|--------------------------------------------------------------------------\n+|\n+| Here you may define all of your model factories. Model factories give\n+| you a convenient way to create models for testing and seeding your\n+| database. Just tell the factory how a default model should look.\n+|\n+*/\n+\n+$factory->define(App\\Models\\Country::class, function (Faker\\Generator $faker) {\n+    $acronym = $faker->unique()->countryCode;\n+\n+    while (App\\Models\\Country::where('acronym', $acronym)->count() > 0 || strlen($acronym) < 2) {","path":"database/factories/CountryFactory.php","position":17,"original_position":17,"commit_id":"b2c3d255e91a5d0a85285c8e73517b12b9d70074","original_commit_id":"b2c3d255e91a5d0a85285c8e73517b12b9d70074","user":{"login":"nanaya","id":276295,"avatar_url":"https://avatars.githubusercontent.com/u/276295?v=3","gravatar_id":"","url":"https://api.github.com/users/nanaya","html_url":"https://github.com/nanaya","followers_url":"https://api.github.com/users/nanaya/followers","following_url":"https://api.github.com/users/nanaya/following{/other_user}","gists_url":"https://api.github.com/users/nanaya/gists{/gist_id}","starred_url":"https://api.github.com/users/nanaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanaya/subscriptions","organizations_url":"https://api.github.com/users/nanaya/orgs","repos_url":"https://api.github.com/users/nanaya/repos","events_url":"https://api.github.com/users/nanaya/events{/privacy}","received_events_url":"https://api.github.com/users/nanaya/received_events","type":"User","site_admin":false},"body":"doesn't this mean this will never finish if the table contains all of faker's country code entry?","created_at":"2016-05-08T09:31:00Z","updated_at":"2016-05-08T09:31:00Z","html_url":"https://github.com/ppy/osu-web/pull/443#discussion_r62429384","pull_request_url":"https://api.github.com/repos/ppy/osu-web/pulls/443","_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments/62429384"},"html":{"href":"https://github.com/ppy/osu-web/pull/443#discussion_r62429384"},"pull_request":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/443"}}},"pull_request":{"url":"https://api.github.com/repos/ppy/osu-web/pulls/443","id":65616003,"html_url":"https://github.com/ppy/osu-web/pull/443","diff_url":"https://github.com/ppy/osu-web/pull/443.diff","patch_url":"https://github.com/ppy/osu-web/pull/443.patch","issue_url":"https://api.github.com/repos/ppy/osu-web/issues/443","number":443,"state":"open","locked":false,"title":"Seeder updates","user":{"login":"Hughp135","id":12624925,"avatar_url":"https://avatars.githubusercontent.com/u/12624925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hughp135","html_url":"https://github.com/Hughp135","followers_url":"https://api.github.com/users/Hughp135/followers","following_url":"https://api.github.com/users/Hughp135/following{/other_user}","gists_url":"https://api.github.com/users/Hughp135/gists{/gist_id}","starred_url":"https://api.github.com/users/Hughp135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hughp135/subscriptions","organizations_url":"https://api.github.com/users/Hughp135/orgs","repos_url":"https://api.github.com/users/Hughp135/repos","events_url":"https://api.github.com/users/Hughp135/events{/privacy}","received_events_url":"https://api.github.com/users/Hughp135/received_events","type":"User","site_admin":false},"body":"I've updated a bunch of code and added in more seeders for extra juicy sample data.\r\n\r\nSummary of changes:\r\n\r\n- Seed osu store products\r\n- Seed osu_countries table with 12 popular countries and their score/ranks/user count etc\r\n- Seed osu_achievements and osu_user_achievements with some example medals\r\n- Seed additional user profile fields including playstyle, kudosu, interests, join date, twitter/website page etc.\r\n- Users are now made as an admin & supporter\r\n- Slight ammend to readme file for the seeding section\r\n- Reduce number of favourite beatmaps to 6 per user.","created_at":"2016-04-07T11:43:04Z","updated_at":"2016-05-08T09:31:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"420d6c9112606cdad2cd6b95f07fb8b0e367892b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ppy/osu-web/pulls/443/commits","review_comments_url":"https://api.github.com/repos/ppy/osu-web/pulls/443/comments","review_comment_url":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppy/osu-web/issues/443/comments","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/b2c3d255e91a5d0a85285c8e73517b12b9d70074","head":{"label":"Hughp135:seeder-updates","ref":"seeder-updates","sha":"b2c3d255e91a5d0a85285c8e73517b12b9d70074","user":{"login":"Hughp135","id":12624925,"avatar_url":"https://avatars.githubusercontent.com/u/12624925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hughp135","html_url":"https://github.com/Hughp135","followers_url":"https://api.github.com/users/Hughp135/followers","following_url":"https://api.github.com/users/Hughp135/following{/other_user}","gists_url":"https://api.github.com/users/Hughp135/gists{/gist_id}","starred_url":"https://api.github.com/users/Hughp135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hughp135/subscriptions","organizations_url":"https://api.github.com/users/Hughp135/orgs","repos_url":"https://api.github.com/users/Hughp135/repos","events_url":"https://api.github.com/users/Hughp135/events{/privacy}","received_events_url":"https://api.github.com/users/Hughp135/received_events","type":"User","site_admin":false},"repo":{"id":51937681,"name":"osu-web","full_name":"Hughp135/osu-web","owner":{"login":"Hughp135","id":12624925,"avatar_url":"https://avatars.githubusercontent.com/u/12624925?v=3","gravatar_id":"","url":"https://api.github.com/users/Hughp135","html_url":"https://github.com/Hughp135","followers_url":"https://api.github.com/users/Hughp135/followers","following_url":"https://api.github.com/users/Hughp135/following{/other_user}","gists_url":"https://api.github.com/users/Hughp135/gists{/gist_id}","starred_url":"https://api.github.com/users/Hughp135/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hughp135/subscriptions","organizations_url":"https://api.github.com/users/Hughp135/orgs","repos_url":"https://api.github.com/users/Hughp135/repos","events_url":"https://api.github.com/users/Hughp135/events{/privacy}","received_events_url":"https://api.github.com/users/Hughp135/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hughp135/osu-web","description":"the future face of osu!","fork":true,"url":"https://api.github.com/repos/Hughp135/osu-web","forks_url":"https://api.github.com/repos/Hughp135/osu-web/forks","keys_url":"https://api.github.com/repos/Hughp135/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hughp135/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hughp135/osu-web/teams","hooks_url":"https://api.github.com/repos/Hughp135/osu-web/hooks","issue_events_url":"https://api.github.com/repos/Hughp135/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/Hughp135/osu-web/events","assignees_url":"https://api.github.com/repos/Hughp135/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/Hughp135/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/Hughp135/osu-web/tags","blobs_url":"https://api.github.com/repos/Hughp135/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hughp135/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hughp135/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hughp135/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hughp135/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/Hughp135/osu-web/languages","stargazers_url":"https://api.github.com/repos/Hughp135/osu-web/stargazers","contributors_url":"https://api.github.com/repos/Hughp135/osu-web/contributors","subscribers_url":"https://api.github.com/repos/Hughp135/osu-web/subscribers","subscription_url":"https://api.github.com/repos/Hughp135/osu-web/subscription","commits_url":"https://api.github.com/repos/Hughp135/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hughp135/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hughp135/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hughp135/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hughp135/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/Hughp135/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hughp135/osu-web/merges","archive_url":"https://api.github.com/repos/Hughp135/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hughp135/osu-web/downloads","issues_url":"https://api.github.com/repos/Hughp135/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/Hughp135/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/Hughp135/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/Hughp135/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hughp135/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/Hughp135/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/Hughp135/osu-web/deployments","created_at":"2016-02-17T16:35:46Z","updated_at":"2016-02-17T16:35:48Z","pushed_at":"2016-05-08T08:45:28Z","git_url":"git://github.com/Hughp135/osu-web.git","ssh_url":"git@github.com:Hughp135/osu-web.git","clone_url":"https://github.com/Hughp135/osu-web.git","svn_url":"https://github.com/Hughp135/osu-web","homepage":null,"size":22253,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ppy:master","ref":"master","sha":"7c02b3afd39f480f9f1934727c26b9f2ea6e3ef8","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":41410580,"name":"osu-web","full_name":"ppy/osu-web","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu-web","description":"the future face of osu!","fork":false,"url":"https://api.github.com/repos/ppy/osu-web","forks_url":"https://api.github.com/repos/ppy/osu-web/forks","keys_url":"https://api.github.com/repos/ppy/osu-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu-web/teams","hooks_url":"https://api.github.com/repos/ppy/osu-web/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu-web/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu-web/events","assignees_url":"https://api.github.com/repos/ppy/osu-web/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu-web/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu-web/tags","blobs_url":"https://api.github.com/repos/ppy/osu-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu-web/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu-web/languages","stargazers_url":"https://api.github.com/repos/ppy/osu-web/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu-web/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu-web/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu-web/subscription","commits_url":"https://api.github.com/repos/ppy/osu-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu-web/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu-web/merges","archive_url":"https://api.github.com/repos/ppy/osu-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu-web/downloads","issues_url":"https://api.github.com/repos/ppy/osu-web/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu-web/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu-web/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu-web/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu-web/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu-web/deployments","created_at":"2015-08-26T07:14:32Z","updated_at":"2016-05-06T15:22:37Z","pushed_at":"2016-05-08T08:45:29Z","git_url":"git://github.com/ppy/osu-web.git","ssh_url":"git@github.com:ppy/osu-web.git","clone_url":"https://github.com/ppy/osu-web.git","svn_url":"https://github.com/ppy/osu-web","homepage":null,"size":22763,"stargazers_count":153,"watchers_count":153,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":61,"forks":51,"open_issues":61,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/443"},"html":{"href":"https://github.com/ppy/osu-web/pull/443"},"issue":{"href":"https://api.github.com/repos/ppy/osu-web/issues/443"},"comments":{"href":"https://api.github.com/repos/ppy/osu-web/issues/443/comments"},"review_comments":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/443/comments"},"review_comment":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppy/osu-web/pulls/443/commits"},"statuses":{"href":"https://api.github.com/repos/ppy/osu-web/statuses/b2c3d255e91a5d0a85285c8e73517b12b9d70074"}}}}