{"action":"created","comment":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments/32258696","id":32258696,"diff_hunk":"@@ -39,8 +39,8 @@ public class Migrations : DataMigrationImpl {\n                     .WithPart(\"AutoroutePart\", builder => builder\r\n                         .WithSetting(\"AutorouteSettings.AllowCustomPattern\", \"True\")\r\n                         .WithSetting(\"AutorouteSettings.AutomaticAdjustmentOnEdit\", \"False\")\r\n-                        .WithSetting(\"AutorouteSettings.PatternDefinitions\", \"[{\\\"Name\\\":\\\"Title\\\",\\\"Pattern\\\":\\\"{Content.Slug}\\\",\\\"Description\\\":\\\"my-blog\\\"}]\")\r\n-                        .WithSetting(\"AutorouteSettings.DefaultPatternIndex\", \"0\"))\r\n+                        .WithSetting(\"AutorouteSettings.PatternDefinitions\", \"[{\\\"Name\\\":\\\"Title\\\",\\\"Pattern\\\":\\\"{Content.Slug}\\\",\\\"Description\\\":\\\"my-blog\\\",\\\"Culture\\\":\\\"\\\"}]\")\r","path":"src/Orchard.Web/Modules/Orchard.Blogs/Migrations.cs","position":6,"original_position":6,"commit_id":"23f3f29a4784c20105a6a840bf6c6650cb6fae69","original_commit_id":"23f3f29a4784c20105a6a840bf6c6650cb6fae69","user":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars.githubusercontent.com/u/1165805?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"body":"Remove all these default values in the migrations, and handle the case where there is now patterndefinition when you try to read it. At that time only create a default one, which will be saved if the user clicks Save in the UI. Or you actually CLONE the current ones for all the available cultures.","created_at":"2015-06-11T19:32:33Z","updated_at":"2015-06-11T19:32:33Z","html_url":"https://github.com/OrchardCMS/Orchard/pull/5267#discussion_r32258696","pull_request_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267","_links":{"self":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments/32258696"},"html":{"href":"https://github.com/OrchardCMS/Orchard/pull/5267#discussion_r32258696"},"pull_request":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267"}}},"pull_request":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267","id":35181180,"html_url":"https://github.com/OrchardCMS/Orchard/pull/5267","diff_url":"https://github.com/OrchardCMS/Orchard/pull/5267.diff","patch_url":"https://github.com/OrchardCMS/Orchard/pull/5267.patch","issue_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5267","number":5267,"state":"open","locked":false,"title":"Autoroute patterns localization","user":{"login":"Skrypt","id":3228637,"avatar_url":"https://avatars.githubusercontent.com/u/3228637?v=3","gravatar_id":"","url":"https://api.github.com/users/Skrypt","html_url":"https://github.com/Skrypt","followers_url":"https://api.github.com/users/Skrypt/followers","following_url":"https://api.github.com/users/Skrypt/following{/other_user}","gists_url":"https://api.github.com/users/Skrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/Skrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skrypt/subscriptions","organizations_url":"https://api.github.com/users/Skrypt/orgs","repos_url":"https://api.github.com/users/Skrypt/repos","events_url":"https://api.github.com/users/Skrypt/events{/privacy}","received_events_url":"https://api.github.com/users/Skrypt/received_events","type":"User","site_admin":false},"body":"Resending for dev branch (1.x renamed)","created_at":"2015-05-11T23:44:58Z","updated_at":"2015-06-11T19:32:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1753682ca84ab27187ad0dbf40a9061405b0259e","assignee":null,"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/29","html_url":"https://github.com/OrchardCMS/Orchard/milestones/dev","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones/29/labels","id":1138648,"number":29,"title":"dev","description":null,"creator":{"login":"sebastienros","id":1165805,"avatar_url":"https://avatars.githubusercontent.com/u/1165805?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastienros","html_url":"https://github.com/sebastienros","followers_url":"https://api.github.com/users/sebastienros/followers","following_url":"https://api.github.com/users/sebastienros/following{/other_user}","gists_url":"https://api.github.com/users/sebastienros/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastienros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastienros/subscriptions","organizations_url":"https://api.github.com/users/sebastienros/orgs","repos_url":"https://api.github.com/users/sebastienros/repos","events_url":"https://api.github.com/users/sebastienros/events{/privacy}","received_events_url":"https://api.github.com/users/sebastienros/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":2,"state":"open","created_at":"2015-05-28T19:26:41Z","updated_at":"2015-06-09T18:47:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267/commits","review_comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267/comments","review_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5267/comments","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/23f3f29a4784c20105a6a840bf6c6650cb6fae69","head":{"label":"Skrypt:autoroute-patterns-localization","ref":"autoroute-patterns-localization","sha":"23f3f29a4784c20105a6a840bf6c6650cb6fae69","user":{"login":"Skrypt","id":3228637,"avatar_url":"https://avatars.githubusercontent.com/u/3228637?v=3","gravatar_id":"","url":"https://api.github.com/users/Skrypt","html_url":"https://github.com/Skrypt","followers_url":"https://api.github.com/users/Skrypt/followers","following_url":"https://api.github.com/users/Skrypt/following{/other_user}","gists_url":"https://api.github.com/users/Skrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/Skrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skrypt/subscriptions","organizations_url":"https://api.github.com/users/Skrypt/orgs","repos_url":"https://api.github.com/users/Skrypt/repos","events_url":"https://api.github.com/users/Skrypt/events{/privacy}","received_events_url":"https://api.github.com/users/Skrypt/received_events","type":"User","site_admin":false},"repo":{"id":34224694,"name":"Orchard","full_name":"Skrypt/Orchard","owner":{"login":"Skrypt","id":3228637,"avatar_url":"https://avatars.githubusercontent.com/u/3228637?v=3","gravatar_id":"","url":"https://api.github.com/users/Skrypt","html_url":"https://github.com/Skrypt","followers_url":"https://api.github.com/users/Skrypt/followers","following_url":"https://api.github.com/users/Skrypt/following{/other_user}","gists_url":"https://api.github.com/users/Skrypt/gists{/gist_id}","starred_url":"https://api.github.com/users/Skrypt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Skrypt/subscriptions","organizations_url":"https://api.github.com/users/Skrypt/orgs","repos_url":"https://api.github.com/users/Skrypt/repos","events_url":"https://api.github.com/users/Skrypt/events{/privacy}","received_events_url":"https://api.github.com/users/Skrypt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Skrypt/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":true,"url":"https://api.github.com/repos/Skrypt/Orchard","forks_url":"https://api.github.com/repos/Skrypt/Orchard/forks","keys_url":"https://api.github.com/repos/Skrypt/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Skrypt/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Skrypt/Orchard/teams","hooks_url":"https://api.github.com/repos/Skrypt/Orchard/hooks","issue_events_url":"https://api.github.com/repos/Skrypt/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/Skrypt/Orchard/events","assignees_url":"https://api.github.com/repos/Skrypt/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/Skrypt/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/Skrypt/Orchard/tags","blobs_url":"https://api.github.com/repos/Skrypt/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Skrypt/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Skrypt/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/Skrypt/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Skrypt/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/Skrypt/Orchard/languages","stargazers_url":"https://api.github.com/repos/Skrypt/Orchard/stargazers","contributors_url":"https://api.github.com/repos/Skrypt/Orchard/contributors","subscribers_url":"https://api.github.com/repos/Skrypt/Orchard/subscribers","subscription_url":"https://api.github.com/repos/Skrypt/Orchard/subscription","commits_url":"https://api.github.com/repos/Skrypt/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/Skrypt/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/Skrypt/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/Skrypt/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/Skrypt/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/Skrypt/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Skrypt/Orchard/merges","archive_url":"https://api.github.com/repos/Skrypt/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Skrypt/Orchard/downloads","issues_url":"https://api.github.com/repos/Skrypt/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/Skrypt/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/Skrypt/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/Skrypt/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Skrypt/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/Skrypt/Orchard/releases{/id}","created_at":"2015-04-19T21:13:56Z","updated_at":"2015-04-19T21:14:05Z","pushed_at":"2015-06-08T01:12:14Z","git_url":"git://github.com/Skrypt/Orchard.git","ssh_url":"git@github.com:Skrypt/Orchard.git","clone_url":"https://github.com/Skrypt/Orchard.git","svn_url":"https://github.com/Skrypt/Orchard","homepage":"http://orchardproject.net","size":98698,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"OrchardCMS:dev","ref":"dev","sha":"1e83068b8c12878431b5503bbe4c32d619d7811d","user":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"repo":{"id":33889464,"name":"Orchard","full_name":"OrchardCMS/Orchard","owner":{"login":"OrchardCMS","id":1159247,"avatar_url":"https://avatars.githubusercontent.com/u/1159247?v=3","gravatar_id":"","url":"https://api.github.com/users/OrchardCMS","html_url":"https://github.com/OrchardCMS","followers_url":"https://api.github.com/users/OrchardCMS/followers","following_url":"https://api.github.com/users/OrchardCMS/following{/other_user}","gists_url":"https://api.github.com/users/OrchardCMS/gists{/gist_id}","starred_url":"https://api.github.com/users/OrchardCMS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OrchardCMS/subscriptions","organizations_url":"https://api.github.com/users/OrchardCMS/orgs","repos_url":"https://api.github.com/users/OrchardCMS/repos","events_url":"https://api.github.com/users/OrchardCMS/events{/privacy}","received_events_url":"https://api.github.com/users/OrchardCMS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OrchardCMS/Orchard","description":"Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.","fork":false,"url":"https://api.github.com/repos/OrchardCMS/Orchard","forks_url":"https://api.github.com/repos/OrchardCMS/Orchard/forks","keys_url":"https://api.github.com/repos/OrchardCMS/Orchard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OrchardCMS/Orchard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OrchardCMS/Orchard/teams","hooks_url":"https://api.github.com/repos/OrchardCMS/Orchard/hooks","issue_events_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/events{/number}","events_url":"https://api.github.com/repos/OrchardCMS/Orchard/events","assignees_url":"https://api.github.com/repos/OrchardCMS/Orchard/assignees{/user}","branches_url":"https://api.github.com/repos/OrchardCMS/Orchard/branches{/branch}","tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/tags","blobs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/refs{/sha}","trees_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/{sha}","languages_url":"https://api.github.com/repos/OrchardCMS/Orchard/languages","stargazers_url":"https://api.github.com/repos/OrchardCMS/Orchard/stargazers","contributors_url":"https://api.github.com/repos/OrchardCMS/Orchard/contributors","subscribers_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscribers","subscription_url":"https://api.github.com/repos/OrchardCMS/Orchard/subscription","commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/commits{/sha}","git_commits_url":"https://api.github.com/repos/OrchardCMS/Orchard/git/commits{/sha}","comments_url":"https://api.github.com/repos/OrchardCMS/Orchard/comments{/number}","issue_comment_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues/comments{/number}","contents_url":"https://api.github.com/repos/OrchardCMS/Orchard/contents/{+path}","compare_url":"https://api.github.com/repos/OrchardCMS/Orchard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OrchardCMS/Orchard/merges","archive_url":"https://api.github.com/repos/OrchardCMS/Orchard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OrchardCMS/Orchard/downloads","issues_url":"https://api.github.com/repos/OrchardCMS/Orchard/issues{/number}","pulls_url":"https://api.github.com/repos/OrchardCMS/Orchard/pulls{/number}","milestones_url":"https://api.github.com/repos/OrchardCMS/Orchard/milestones{/number}","notifications_url":"https://api.github.com/repos/OrchardCMS/Orchard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OrchardCMS/Orchard/labels{/name}","releases_url":"https://api.github.com/repos/OrchardCMS/Orchard/releases{/id}","created_at":"2015-04-13T19:35:52Z","updated_at":"2015-06-11T06:58:12Z","pushed_at":"2015-06-11T17:07:21Z","git_url":"git://github.com/OrchardCMS/Orchard.git","ssh_url":"git@github.com:OrchardCMS/Orchard.git","clone_url":"https://github.com/OrchardCMS/Orchard.git","svn_url":"https://github.com/OrchardCMS/Orchard","homepage":"http://orchardproject.net","size":132337,"stargazers_count":260,"watchers_count":260,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":144,"mirror_url":null,"open_issues_count":1431,"forks":144,"open_issues":1431,"watchers":260,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267"},"html":{"href":"https://github.com/OrchardCMS/Orchard/pull/5267"},"issue":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5267"},"comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/issues/5267/comments"},"review_comments":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267/comments"},"review_comment":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/pulls/5267/commits"},"statuses":{"href":"https://api.github.com/repos/OrchardCMS/Orchard/statuses/23f3f29a4784c20105a6a840bf6c6650cb6fae69"}}}}