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

[Set-DbaAgentJobStep] - Added ShouldProcess to the Rename to fix #8140 #8141

Merged

Conversation

MikeyBronowski
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes Set-DbaAgentJobStep - renames a step even with Whatif #8140 )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (effects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

Purpose

Approach

Commands to test

Screenshots

Learning

try {
Write-Message -Message "Changing the job step '$StepName' for job '$j' on $server" -Level Verbose
Copy link
Contributor

Choose a reason for hiding this comment

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

Verbose message not needed, as ShouldProcess always writes verbose output.

Copy link
Member

Choose a reason for hiding this comment

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

it's true! I didnt realize this until years later. I'm going to merge nevertheless, since this is an important change

@potatoqualitee potatoqualitee merged commit d4d018e into dataplat:development Feb 4, 2022
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.

Set-DbaAgentJobStep - renames a step even with Whatif
3 participants