Skip to content

Commit

Permalink
BUGFIX for missing Outbound SR Summary sections
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshGhodekar committed Sep 19, 2016
1 parent b1b9763 commit 72f8f36
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ All notable changes to AADConnectConfigDocumenter project will be documented in

------------

### Version 1.16.0919.0

#### Fixed

* Fixed missing Outbound Sync Rule Summary sections.

------------

### Version 1.16.0915.0

#### Fixed
Expand Down
7 changes: 3 additions & 4 deletions src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,18 @@ protected static string GetSyncRuleXPath(string currentConnectorGuid, SyncRuleDo
Logger.Instance.WriteMethodEntry("Current Connector Guid: '{0}'. Sync Rule Direction: '{1}'. Sync Rule Report Type: '{2}'.", currentConnectorGuid, direction, reportType);

var xpath = "//synchronizationRule[translate(connector, '" + Documenter.LowercaseLetters + "', '" + Documenter.UppercaseLetters + "') = '" + currentConnectorGuid + "' and direction = '" + direction.ToString() + "'";
var standardCondition = "and direction = 'Inbound' " + Documenter.SyncRuleDisabledCondition;
try
{
switch (reportType)
{
case SyncRuleDocumenter.SyncRuleReportType.ProvisioningSection:
xpath += " and linkType = 'Provision' " + standardCondition;
xpath += " and linkType = 'Provision' " + Documenter.SyncRuleDisabledCondition;
break;
case SyncRuleDocumenter.SyncRuleReportType.StickyJoinSection:
xpath += " and linkType = 'StickyJoin' " + standardCondition;
xpath += " and linkType = 'StickyJoin' " + Documenter.SyncRuleDisabledCondition;
break;
case SyncRuleDocumenter.SyncRuleReportType.ConditionalJoinSection:
xpath += " and linkType = 'Join' " + standardCondition;
xpath += " and linkType = 'Join' " + Documenter.SyncRuleDisabledCondition;
xpath += " and (count(synchronizationCriteria/conditions/scope) != 0 or count(relationshipCriteria/conditions/condition) != 0)";
break;
}
Expand Down
8 changes: 4 additions & 4 deletions src/AzureADConnectSyncDocumenter/StyleCop.Cache
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
<violations />
</sourcecode>
<project key="1174695384">
<configuration>CODE_ANALYSIS;DEBUG;TRACE</configuration>
<configuration>TRACE</configuration>
</project>
<sourcecode name="ActiveDirectoryConnectorDocumenter.cs" parser="StyleCop.CSharp.CsParser">
<timestamps>
Expand Down Expand Up @@ -200,7 +200,7 @@
<timestamps>
<styleCop>2016/05/12 20:26:32.000</styleCop>
<settingsFile>2016/04/20 21:35:08.000</settingsFile>
<sourceFile>2016/09/13 09:54:03.635</sourceFile>
<sourceFile>2016/09/19 13:11:38.704</sourceFile>
<parser>2016/05/12 20:26:32.000</parser>
<StyleCop.CSharp.DocumentationRules>2016/05/12 20:26:32.000</StyleCop.CSharp.DocumentationRules>
<StyleCop.CSharp.DocumentationRules.FilesHashCode>-26055145</StyleCop.CSharp.DocumentationRules.FilesHashCode>
Expand Down Expand Up @@ -407,7 +407,7 @@
<timestamps>
<styleCop>2016/05/12 20:26:32.000</styleCop>
<settingsFile>2016/04/20 21:35:08.000</settingsFile>
<sourceFile>2016/09/15 07:25:40.484</sourceFile>
<sourceFile>2016/09/19 20:07:41.204</sourceFile>
<parser>2016/05/12 20:26:32.000</parser>
<StyleCop.CSharp.DocumentationRules>2016/05/12 20:26:32.000</StyleCop.CSharp.DocumentationRules>
<StyleCop.CSharp.DocumentationRules.FilesHashCode>-26055145</StyleCop.CSharp.DocumentationRules.FilesHashCode>
Expand All @@ -430,7 +430,7 @@
<timestamps>
<styleCop>2016/05/12 20:26:32.000</styleCop>
<settingsFile>2016/04/20 21:35:08.000</settingsFile>
<sourceFile>2016/09/15 07:10:33.883</sourceFile>
<sourceFile>2016/09/19 16:06:47.897</sourceFile>
<parser>2016/05/12 20:26:32.000</parser>
<StyleCop.CSharp.DocumentationRules>2016/05/12 20:26:32.000</StyleCop.CSharp.DocumentationRules>
<StyleCop.CSharp.DocumentationRules.FilesHashCode>-26055145</StyleCop.CSharp.DocumentationRules.FilesHashCode>
Expand Down
7 changes: 3 additions & 4 deletions src/AzureADConnectSyncDocumenter/SyncRuleDocumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,20 +301,19 @@ protected string GetSyncRuleXPath(string currentConnectorGuid)
Logger.Instance.WriteMethodEntry("Current Connector Guid: '{0}'.", currentConnectorGuid);

var xpath = "//synchronizationRule[translate(connector, '" + Documenter.LowercaseLetters + "', '" + Documenter.UppercaseLetters + "') = '" + currentConnectorGuid + "' and name = '" + this.SyncRuleName + "'";
var commonCriteria = "and direction = 'Inbound' " + Documenter.SyncRuleDisabledCondition;

try
{
switch (this.syncRuleReportType)
{
case SyncRuleReportType.ProvisioningSection:
xpath += " and linkType = 'Provision' " + commonCriteria;
xpath += " and linkType = 'Provision' " + Documenter.SyncRuleDisabledCondition;
break;
case SyncRuleReportType.StickyJoinSection:
xpath += " and linkType = 'StickyJoin' " + commonCriteria;
xpath += " and linkType = 'StickyJoin' " + Documenter.SyncRuleDisabledCondition;
break;
case SyncRuleReportType.ConditionalJoinSection:
xpath += " and linkType = 'Join' " + commonCriteria;
xpath += " and linkType = 'Join' " + Documenter.SyncRuleDisabledCondition;
break;
}

Expand Down
4 changes: 2 additions & 2 deletions src/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string Version = "1.16.0915.0";
internal const string Version = "1.16.0919.0";

/// <summary>
/// File Version information for the assembly consists of the following four values:
Expand All @@ -31,6 +31,6 @@ internal static class VersionInfo
/// Build Number (MMDD)
/// Revision (if any on the same day)
/// </summary>
internal const string FileVersion = "1.16.0915.0";
internal const string FileVersion = "1.16.0919.0";
}
}

0 comments on commit 72f8f36

Please sign in to comment.