Skip to content

Commit

Permalink
Added support to show only changes between "pilot" and "production" e…
Browse files Browse the repository at this point in the history
…nvironment config.
  • Loading branch information
NileshGhodekar committed Jul 8, 2016
1 parent 09b7791 commit 3bb2cec
Show file tree
Hide file tree
Showing 11 changed files with 490 additions and 238 deletions.
37 changes: 35 additions & 2 deletions ChangeLog.md
Expand Up @@ -4,16 +4,49 @@ All notable changes to AADConnectConfigDocumenter project will be documented in

### Version [Unreleased]

* Document configuration capabilities introduced in the recent versions of Azure AD Connect.
* Support for adding report metadata to include section / concept contents.

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

### Version 1.16.0708.0

#### Added

* The report now provides a check-box to show only changes between "pilot" and "production" environment config.

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

### Version 1.16.0608.0

#### Fixed

* Metaverse Object Type section now correctly ranks the sync rules on each attribute as per their precedence.
* The source and target attributes in the join rules of outbound sync rules are now in their correct columns.

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

### Version 1.16.0603.0

#### Added

* The report header section now lists the pilot and production environment config folders used as input to the tool as well as the version of the AAD Connect in these environments.

#### Changed

* Global Settings section now moved from the Metaverse Configuration section to its own section.

#### Fixed

* Metaverse Object Deletion Rules section now does not mark text as updates when there is no change to the config.
* Selected Attributes section of each connector now correctly shows which attributes are configured with Import/Export flows
* The vanity row of an empty table is not printed if it is to appears as a deleted row in the report.

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

### Version 1.15.1030.0

#### Added

* Baseline version check-in.

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

Expand Up @@ -202,7 +202,7 @@ private void PrintActiveDirectoryConnectionInformation()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -247,6 +247,7 @@ private void PrintActiveDirectoryConnectionInformation()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -317,7 +318,7 @@ private void PrintActiveDirectoryConnectionOption()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -357,6 +358,7 @@ private void PrintActiveDirectoryConnectionOption()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -662,15 +664,7 @@ private void CreateActiveDirectoryPartitionSettingsDiffGram()
try
{
this.DiffgramDataSet = Documenter.GetDiffgram(this.PilotDataSet, this.ProductionDataSet);

// Setup data relations
var column2 = this.DiffgramDataSet.Tables[0].Columns["Setting"];

var column12 = this.DiffgramDataSet.Tables[1].Columns["Setting"];

var dataRelation12 = new DataRelation("DataRelation12", new[] { column2 }, new[] { column12 }, false);

this.DiffgramDataSet.Relations.Add(dataRelation12);
this.DiffgramDataSets.Add(this.DiffgramDataSet);
}
finally
{
Expand All @@ -691,7 +685,7 @@ private void PrintActiveDirectoryPartitionSettings()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -736,6 +730,7 @@ private void PrintActiveDirectoryPartitionSettings()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -854,7 +849,7 @@ private void PrintActiveDirectoryContainerCredentialSettings()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -894,6 +889,7 @@ private void PrintActiveDirectoryContainerCredentialSettings()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -961,7 +957,7 @@ private void PrintActiveDirectoryPartitionContainers()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -1006,6 +1002,7 @@ private void PrintActiveDirectoryPartitionContainers()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down
Expand Up @@ -373,7 +373,7 @@ private void PrintGlobalSettings()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -418,6 +418,7 @@ private void PrintGlobalSettings()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down
33 changes: 19 additions & 14 deletions src/AzureADConnectSyncDocumenter/ConnectorDocumenter.cs
Expand Up @@ -498,7 +498,7 @@ protected void PrintConnectorProperties()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -543,6 +543,7 @@ protected void PrintConnectorProperties()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -644,15 +645,19 @@ protected void PrintConnectorProvisioningHierarchyConfiguration()
if (this.DiffgramDataSet.Tables[0].Rows.Count == 0)
{
this.ReportWriter.WriteLine();
this.ReportWriter.WriteBeginTag("p");
this.ReportWriter.WriteAttribute("class", this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
this.ReportWriter.WriteLine("The provisioning hierarchy is not enabled.");
this.ReportWriter.WriteEndTag("p");

return;
}

#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -697,6 +702,7 @@ protected void PrintConnectorProvisioningHierarchyConfiguration()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -797,7 +803,7 @@ protected void PrintConnectorSelectedObjectTypes()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -836,6 +842,7 @@ protected void PrintConnectorSelectedObjectTypes()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -959,7 +966,7 @@ protected void PrintConnectorSelectedAttributes()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -1016,6 +1023,7 @@ protected void PrintConnectorSelectedAttributes()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down Expand Up @@ -1210,7 +1218,11 @@ orderby name
if (!sectionPrinted)
{
this.ReportWriter.WriteLine();
this.ReportWriter.WriteBeginTag("p");
this.ReportWriter.WriteAttribute("class", Documenter.CanHide);
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
this.ReportWriter.WriteLine("There are no <b>" + direction.ToString() + " " + sectionTitle.Replace(" Summary", string.Empty) + "</b> configured.");
this.ReportWriter.WriteEndTag("p");
}
}
finally
Expand Down Expand Up @@ -1329,15 +1341,7 @@ protected void CreateConnectorRunProfileDiffgram()
try
{
this.DiffgramDataSet = Documenter.GetDiffgram(this.PilotDataSet, this.ProductionDataSet);

// Setup data relations
var column1 = this.DiffgramDataSet.Tables[0].Columns["Step Number"];

var column12 = this.DiffgramDataSet.Tables[1].Columns["Step Number"];

var dataRelation12 = new DataRelation("DataRelation12", new[] { column1 }, new[] { column12 }, false);

this.DiffgramDataSet.Relations.Add(dataRelation12);
this.DiffgramDataSets.Add(this.DiffgramDataSet);
}
finally
{
Expand All @@ -1358,7 +1362,7 @@ protected void PrintConnectorRunProfile()
#region table

this.ReportWriter.WriteBeginTag("table");
this.ReportWriter.WriteAttribute("class", "outer-table");
this.ReportWriter.WriteAttribute("class", "outer-table" + " " + this.GetCssVisibilityClass());
this.ReportWriter.Write(HtmlTextWriter.TagRightChar);
{
#region thead
Expand Down Expand Up @@ -1415,6 +1419,7 @@ protected void PrintConnectorRunProfile()
}
finally
{
this.ResetDiffgram(); // reset the diffgram variables
Logger.Instance.WriteMethodExit();
}
}
Expand Down

0 comments on commit 3bb2cec

Please sign in to comment.