{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/comments/166499139","pull_request_review_id":94570067,"id":166499139,"diff_hunk":"@@ -0,0 +1,76 @@\n+﻿// Copyright (c) Microsoft. All rights reserved.\n+// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n+\n+namespace Microsoft.DocAsCode.Build.SchemaDriven\n+{\n+    using System.Collections.Generic;\n+    using System.Collections.Immutable;\n+    using System.Composition;\n+    using System.Linq;\n+\n+    using Microsoft.DocAsCode.Build.Common;\n+    using Microsoft.DocAsCode.Common;\n+    using Microsoft.DocAsCode.Plugins;\n+\n+    [Export(nameof(SchemaDrivenDocumentProcessor), typeof(IDocumentBuildStep))]\n+    public class ApplyOverwriteFragments : BaseDocumentBuildStep, ISupportIncrementalBuildStep\n+    {\n+        public override string Name => nameof(ApplyOverwriteFragments);\n+\n+        public override int BuildOrder => 0x08;\n+\n+        public override void Postbuild(ImmutableList<FileModel> models, IHostService host)\n+        {\n+            var overwriteApplier = new OverwriteApplier(host, OverwriteModelType.MarkdownFragments);\n+            foreach (var fileModel in models)\n+            {\n+                var overwriteDocumentModels = fileModel.MarkdownFragmentsModel?.ModelWithCache.Content as List<OverwriteDocumentModel>;\n+                if (overwriteDocumentModels == null)\n+                {\n+                    continue;\n+                }\n+\n+                var schema = fileModel.Properties.Schema as DocumentSchema;\n+                using (new LoggerFileScope(fileModel.LocalPathFromRoot))\n+                {\n+                    foreach (var overwriteDocumentModel in overwriteDocumentModels)\n+                    {\n+                        var uidDefiniton = fileModel.Uids.Where(s => s.Name == overwriteDocumentModel.Uid).ToList();\n+                        if (uidDefiniton.Count == 0)\n+                        {\n+                            Logger.LogWarning($\"Unable to find UidDefinition for Uid {overwriteDocumentModel.Uid}\");\n+                        }\n+\n+                        if (uidDefiniton.Count > 1)\n+                        {\n+                            Logger.LogWarning($\"There are more than one UidDefinitions found for Uid {overwriteDocumentModel.Uid}\");","path":"src/Microsoft.DocAsCode.Build.SchemaDriven/ApplyOverwriteFragments.cs","position":46,"original_position":46,"commit_id":"9d549c7af5ea4111ac006c799b469c9bd536473a","original_commit_id":"9d549c7af5ea4111ac006c799b469c9bd536473a","user":{"login":"vicancy","id":668244,"avatar_url":"https://avatars0.githubusercontent.com/u/668244?v=4","gravatar_id":"","url":"https://api.github.com/users/vicancy","html_url":"https://github.com/vicancy","followers_url":"https://api.github.com/users/vicancy/followers","following_url":"https://api.github.com/users/vicancy/following{/other_user}","gists_url":"https://api.github.com/users/vicancy/gists{/gist_id}","starred_url":"https://api.github.com/users/vicancy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicancy/subscriptions","organizations_url":"https://api.github.com/users/vicancy/orgs","repos_url":"https://api.github.com/users/vicancy/repos","events_url":"https://api.github.com/users/vicancy/events{/privacy}","received_events_url":"https://api.github.com/users/vicancy/received_events","type":"User","site_admin":false},"body":">LogWarning [](start = 35, length = 10)\r\n\r\nprint out the detailed source line number for what uid definition is duplicate","created_at":"2018-02-07T01:50:28Z","updated_at":"2018-02-07T01:50:28Z","html_url":"https://github.com/dotnet/docfx/pull/2419#discussion_r166499139","pull_request_url":"https://api.github.com/repos/dotnet/docfx/pulls/2419","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments/166499139"},"html":{"href":"https://github.com/dotnet/docfx/pull/2419#discussion_r166499139"},"pull_request":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2419"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/docfx/pulls/2419","id":167332450,"html_url":"https://github.com/dotnet/docfx/pull/2419","diff_url":"https://github.com/dotnet/docfx/pull/2419.diff","patch_url":"https://github.com/dotnet/docfx/pull/2419.patch","issue_url":"https://api.github.com/repos/dotnet/docfx/issues/2419","number":2419,"state":"open","locked":false,"title":"apply overwrite fragments","user":{"login":"928PJY","id":17958546,"avatar_url":"https://avatars1.githubusercontent.com/u/17958546?v=4","gravatar_id":"","url":"https://api.github.com/users/928PJY","html_url":"https://github.com/928PJY","followers_url":"https://api.github.com/users/928PJY/followers","following_url":"https://api.github.com/users/928PJY/following{/other_user}","gists_url":"https://api.github.com/users/928PJY/gists{/gist_id}","starred_url":"https://api.github.com/users/928PJY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/928PJY/subscriptions","organizations_url":"https://api.github.com/users/928PJY/orgs","repos_url":"https://api.github.com/users/928PJY/repos","events_url":"https://api.github.com/users/928PJY/events{/privacy}","received_events_url":"https://api.github.com/users/928PJY/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-06T06:44:36Z","updated_at":"2018-02-07T01:50:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cec6b40198962eba19f949e4579a7d9e118fdde6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"herohua","id":2174068,"avatar_url":"https://avatars3.githubusercontent.com/u/2174068?v=4","gravatar_id":"","url":"https://api.github.com/users/herohua","html_url":"https://github.com/herohua","followers_url":"https://api.github.com/users/herohua/followers","following_url":"https://api.github.com/users/herohua/following{/other_user}","gists_url":"https://api.github.com/users/herohua/gists{/gist_id}","starred_url":"https://api.github.com/users/herohua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/herohua/subscriptions","organizations_url":"https://api.github.com/users/herohua/orgs","repos_url":"https://api.github.com/users/herohua/repos","events_url":"https://api.github.com/users/herohua/events{/privacy}","received_events_url":"https://api.github.com/users/herohua/received_events","type":"User","site_admin":false},{"login":"vwxyzh","id":2705828,"avatar_url":"https://avatars2.githubusercontent.com/u/2705828?v=4","gravatar_id":"","url":"https://api.github.com/users/vwxyzh","html_url":"https://github.com/vwxyzh","followers_url":"https://api.github.com/users/vwxyzh/followers","following_url":"https://api.github.com/users/vwxyzh/following{/other_user}","gists_url":"https://api.github.com/users/vwxyzh/gists{/gist_id}","starred_url":"https://api.github.com/users/vwxyzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vwxyzh/subscriptions","organizations_url":"https://api.github.com/users/vwxyzh/orgs","repos_url":"https://api.github.com/users/vwxyzh/repos","events_url":"https://api.github.com/users/vwxyzh/events{/privacy}","received_events_url":"https://api.github.com/users/vwxyzh/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/docfx/pulls/2419/commits","review_comments_url":"https://api.github.com/repos/dotnet/docfx/pulls/2419/comments","review_comment_url":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/docfx/issues/2419/comments","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/9d549c7af5ea4111ac006c799b469c9bd536473a","head":{"label":"dotnet:apply-ow","ref":"apply-ow","sha":"9d549c7af5ea4111ac006c799b469c9bd536473a","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2018-02-06T21:12:17Z","pushed_at":"2018-02-06T09:26:04Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":294966,"stargazers_count":943,"watchers_count":943,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":262,"mirror_url":null,"archived":false,"open_issues_count":178,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":262,"open_issues":178,"watchers":943,"default_branch":"dev"}},"base":{"label":"dotnet:dev","ref":"dev","sha":"952829ee546745975a289c9f1ed1073450b3f606","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":38007053,"name":"docfx","full_name":"dotnet/docfx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars0.githubusercontent.com/u/9141961?v=4","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/docfx","description":"Tools for building and publishing API documentation for .NET projects","fork":false,"url":"https://api.github.com/repos/dotnet/docfx","forks_url":"https://api.github.com/repos/dotnet/docfx/forks","keys_url":"https://api.github.com/repos/dotnet/docfx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/docfx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/docfx/teams","hooks_url":"https://api.github.com/repos/dotnet/docfx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/docfx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/docfx/events","assignees_url":"https://api.github.com/repos/dotnet/docfx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/docfx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/docfx/tags","blobs_url":"https://api.github.com/repos/dotnet/docfx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/docfx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/docfx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/docfx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/docfx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/docfx/languages","stargazers_url":"https://api.github.com/repos/dotnet/docfx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/docfx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/docfx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/docfx/subscription","commits_url":"https://api.github.com/repos/dotnet/docfx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/docfx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/docfx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/docfx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/docfx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/docfx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/docfx/merges","archive_url":"https://api.github.com/repos/dotnet/docfx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/docfx/downloads","issues_url":"https://api.github.com/repos/dotnet/docfx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/docfx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/docfx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/docfx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/docfx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/docfx/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/docfx/deployments","created_at":"2015-06-24T19:43:53Z","updated_at":"2018-02-06T21:12:17Z","pushed_at":"2018-02-06T09:26:04Z","git_url":"git://github.com/dotnet/docfx.git","ssh_url":"git@github.com:dotnet/docfx.git","clone_url":"https://github.com/dotnet/docfx.git","svn_url":"https://github.com/dotnet/docfx","homepage":"http://dotnet.github.io/docfx/","size":294966,"stargazers_count":943,"watchers_count":943,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":262,"mirror_url":null,"archived":false,"open_issues_count":178,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":262,"open_issues":178,"watchers":943,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2419"},"html":{"href":"https://github.com/dotnet/docfx/pull/2419"},"issue":{"href":"https://api.github.com/repos/dotnet/docfx/issues/2419"},"comments":{"href":"https://api.github.com/repos/dotnet/docfx/issues/2419/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2419/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/docfx/pulls/2419/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/docfx/statuses/9d549c7af5ea4111ac006c799b469c9bd536473a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vicancy"}}