Skip to content

SourceSideValidations refactor#726

Merged
bill-long merged 37 commits into
mainfrom
bilong-ssvrefactor2
Sep 3, 2021
Merged

SourceSideValidations refactor#726
bill-long merged 37 commits into
mainfrom
bilong-ssvrefactor2

Conversation

@bill-long
Copy link
Copy Markdown
Member

@bill-long bill-long commented Sep 3, 2021

This is a large refactoring of SourceSideValidations. Highlights:

  • Produces a single CSV file containing all the test results.
  • Includes a new test for problematic characters in folder names.
  • Includes a new test that checks for folders that are completely empty - that is, the folder itself has no items, all its children have no items, and all their children have no items, etc. These results are informational in nature, but they can be used to prune the hierarchy if desired.
  • If you forget what the script said in the results summary, such as what commands to run, you can use the -SummarizePreviousResults switch to re-summarize the last run.
  • Subsequent runs of the script do not overwrite the results. Instead, we rename the current file with its timestamp, and then we create a new ValidationResults.csv.
  • A -SlowTraversal option is now available for environments where there are so many folders that the normal approach times out. This option is slower, but it can recover from a disconnected PowerShell session.
  • Tests can be omitted by specifying the -Tests option. This is for scenarios where fixes have been performed and now you want to rerun only specific tests.

bill-long added 30 commits May 19, 2021 21:47
* Output all test results as objects
* Write all results to one file
* -ShowPreviousResults to read the file and re-summarize the results
* -SlowTraversal to traverse hierarchy one level at a time for very
  large hierarchies
* -Repair to read the results file and fix whatever we can fix.
  Currently only fixes bad permissions.
Abandon work on fixing things other than bad permissions. It's
making things very complicated. Maybe we can revisit that in
the future. For now, we're back to -RemoveInvalidPermissions to fix
the one thing we can. Otherwise, we're outputting basically the same
instructions as before on how to fix other problems.
Comment thread PublicFolders/src/SourceSideValidations/Get-FolderData.ps1 Outdated
Comment thread PublicFolders/src/SourceSideValidations/Get-FolderData.ps1 Outdated
Comment thread PublicFolders/src/SourceSideValidations/Get-IpmSubtree.ps1
Comment thread PublicFolders/src/SourceSideValidations/Get-IpmSubtree.ps1 Outdated
Comment thread PublicFolders/src/SourceSideValidations/Get-ItemCountJob.ps1
Comment thread PublicFolders/src/SourceSideValidations/Get-ItemCountJob.ps1
@bill-long
Copy link
Copy Markdown
Member Author

Added the docs to this PR.

@dpaulson45 dpaulson45 self-requested a review September 3, 2021 19:50
@bill-long bill-long merged commit afcc8f1 into main Sep 3, 2021
@bill-long bill-long deleted the bilong-ssvrefactor2 branch September 3, 2021 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants