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

feat: improve code efficiency of Invoke-VcfConfigReport #62

Merged
merged 2 commits into from
Dec 23, 2022

Conversation

GaryJBlake
Copy link
Contributor

@GaryJBlake GaryJBlake commented Dec 23, 2022

In order to have a good experience with our community, we recommend that you read the contributing guidelines for making a pull request.

Summary of Pull Request

Improvements around code efficiency:

  • Added $commandSwitch to create the -allDomains or -workloadDomain switch
  • Refactored all Publish- calls to use $commandSwitch resulting in single command per element and reduction of ten lines of code per element
  • 30% reduction in lines of code for Invoke-VcfConfigReport

Signed-off-by: Gary Blake gblake@vmware.com

Type of Pull Request

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style / formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.

Related to Existing Issues

Issue Number: N/A

Test and Documentation Coverage

  • Tests have been completed (for bug fixes / features).
  • Documentation has been added / updated (for bug fixes / features).

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Improvements around code efficiency:
- Added $commandSwitch to create the -allDomains or -workloadDomain switch
- Refactored all `Publish-` calls to use $commandSwitch resulting in single command per element and reduction of ten lines of code per element
- 30% reduction in lines of code for `Invoke-VcfConfigReport`

Signed-off-by: Gary Blake <gblake@vmware.com>
@GaryJBlake GaryJBlake added enhancement Enhancement size/s Relative Sizing: small report/config Configuration Report labels Dec 23, 2022
@GaryJBlake GaryJBlake added this to the v1.0.6 milestone Dec 23, 2022
@GaryJBlake GaryJBlake requested a review from a team as a code owner December 23, 2022 13:36
@GaryJBlake GaryJBlake self-assigned this Dec 23, 2022
Copy link
Contributor

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

Signed-off-by: Gary Blake <gblake@vmware.com>
@GaryJBlake GaryJBlake merged commit b72d8de into main Dec 23, 2022
@GaryJBlake GaryJBlake deleted the feat-invoke-vcfconfigurationreport-efficiency branch December 23, 2022 14:29
@tenthirtyam tenthirtyam added the refactor Refactor label Jan 9, 2023
@github-actions
Copy link

github-actions bot commented Mar 3, 2023

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancement refactor Refactor report/config Configuration Report size/s Relative Sizing: small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants