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-VcfHealthReport #60

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 and -failureOnly input for a command
  • Refactored all Publish- calls to use $commandSwitch resulting in single command per element and reduction of ten lines of code per element
  • 50% reduction in lines of code for Invoke-VcfHealthReport

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 and -failureOnly input for a command
- Refactored all `Publish-` calls to use $commandSwitch resulting in single command per element and reduction of ten lines of code per element
- 50% reduction in lines of code for Invoke-VcfHealthReport

Signed-off-by: Gary Blake <gblake@vmware.com>
@GaryJBlake GaryJBlake added enhancement Enhancement size/m Relative Sizing: medium labels Dec 23, 2022
@GaryJBlake GaryJBlake added this to the v1.0.6 milestone Dec 23, 2022
@GaryJBlake GaryJBlake self-assigned this Dec 23, 2022
@GaryJBlake GaryJBlake requested a review from a team as a code owner December 23, 2022 13:04
@GaryJBlake GaryJBlake added the report/health Health Report label 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! 🚀

@vmwclabot
Copy link
Member

@GaryJBlake, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

@vmwclabot vmwclabot added the dco-required DCO Required label Dec 23, 2022
Signed-off-by: Gary Blake <gblake@vmware.com>
@GaryJBlake GaryJBlake force-pushed the feat-invoke-vcfhealthreport-efficiency branch from 520626d to 20ccddf Compare December 23, 2022 14:25
@vmwclabot vmwclabot removed the dco-required DCO Required label Dec 23, 2022
@GaryJBlake GaryJBlake merged commit eefb46d into main Dec 23, 2022
@GaryJBlake GaryJBlake deleted the feat-invoke-vcfhealthreport-efficiency branch December 23, 2022 14:27
@tenthirtyam tenthirtyam changed the title feat: improve code efficiency of Invoke-VcfHealthReport feat: improve code efficiency of Invoke-VcfHealthReport Jan 9, 2023
@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/health Health Report size/m Relative Sizing: medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants