Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert json results to flat object and export CSV or Excel #648

Merged
merged 10 commits into from
Feb 14, 2025

Conversation

SamErde
Copy link
Contributor

@SamErde SamErde commented Jan 29, 2025

This pull request introduces a new PowerShell function Convert-MtJsonResultsToFlatObject to convert Maester test results from JSON to a flattened object that can be exported to CSV or Excel. The function includes detailed parameter descriptions, examples, and output types.

@SamErde SamErde requested a review from a team as a code owner January 29, 2025 18:07
@merill merill requested a review from a team as a code owner February 14, 2025 12:14
@merill
Copy link
Contributor

merill commented Feb 14, 2025

Love this @SamErde! Excellent PR and something we've wanted to do from the beginning.

I did make some minor tweaks

  • Added support for reading the PassThru results instead of json file only.
  • Renamed the cmdlet to reflect the name
  • Moved the file to /core
  • Added a new Export results doc to the website
  • Removed the switch parameter to make it simpler

@merill merill merged commit dd40d07 into maester365:main Feb 14, 2025
0 of 3 checks passed
@SamErde
Copy link
Contributor Author

SamErde commented Feb 14, 2025

Thanks! Love your additions and improvements.

@SamErde SamErde deleted the Convert-MtJsonResultsToFlatObject branch February 14, 2025 12:23
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