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

Pulling from Joel's dbatools again #1

Merged
merged 24 commits into from
Feb 18, 2019
Merged

Conversation

shaneis
Copy link
Owner

@shaneis shaneis commented Feb 18, 2019

Keeping it up-to-date.

vexx32 and others added 24 commits December 9, 2018 09:57
* Use short inherited type name
This fixes the issue where the type was not loading correctly
I don't quite understand how, but it works!

* Use runspaces for Invoke-Koan
This allow us to apply "using module" properly for the koan files

* Shorten type names for clarity

* Modify koan file finding to be a little more reliable
* Reorganise all test scripts

* Modify Psake script to adjust PSModulePath instead of copying files

* Add Invoke-Koan.Tests

* Rework location root behaviour for tests to be more robust

* Use xplat-compatible path separators

* Properly modify PSModulePath to pick up module to be imported.
* Permit Specifying and Listing Topics for Measure-Karma (#101)

* Update Measure-Karma to support listing topics
- Update Measure-Karma to support specifying topics to check

* Update meditation prompts to support specified topics

* Rename validator class for clarity

* Rename list switch for consistency

* Replace reference to old function name in Measure-Karma CBH

* MODULE: Rename Write-MeditationPrompt to Show-MeditationPrompt
Retain old name as alias

* MODULE: Add Get/Set-PSKoanLocation cmdlets
- Use module-scoped variable instead of environment variable
- Add comment help to PSKoanLocation functions
- Replace references to module variable with get/set function
- Permit nonexistent paths for Set-PSKoanLocation
- Add KoanLocation functions to PSD1 exports

* MODULE: Add New-PSKoanErrorRecord & Improve topic searching
- Supports regex patterns
- Add New-PSKoanErrorRecord function for easy error record creation
- Other small changes

* MODULE: Rename module variables for clarity

* TEST: Remove unneeded test headers
- Invoke-Koan.Control_Tests
- Get-Blank.Tests

* MODULE/TEST: Refactor PSKoanLocation functions & add tests

TEST: Resolve remaining tests issues

TEST: Resolve outstanding issues with Measure-Karma tests
- Add tests for behaviour when koan library is empty/missing
MODULE: Ensure correct checking of total koans count

TEST: Use #Requires -Module for tests
- using module is not needed for module tests

* MODULE: Fix broken Get-Koan behaviour when using -Topic

* TEST: Finish adding Get-Koan Tests & fix #Requires declarations

* MODULE: Add [OutputType()] to module functions

* TEST: Preliminary tests for New-PSKoanErrorRecord

* STYLE: Add spacing between header and function declaration

* TEST: Complete New-PSKoanErrorRecord tests
- Fix issue with type check

* MODULE: Fix type name checking logic in New-PSKoanErrorRecord
- Use more robust test method for exception type

* TEST: Add test for Measure-Koan behaviour with -Topic param

* STYLE: Add final line terminator to script files

* BUILD: Restore working version of Publish.ps1

* STYLE: Consolidate style of comment-based help in module functions

* MODULE: Improve Advice frameworks
- Rename: Get-Advice -> Show-Advice
- Reformat advice data files into json with Title and Content
- Update Show-Advice and Write-ConsoleLine to handle title and contents.

* MODULE: Make topic parameters behave more consistently

* MODULE: Refactor Show-MeditationPrompt slightly

* MODULE: Update KoanAttribute to support module name

* MODULE: Update Register-Advice to use new cmdlet name in profile editing.
* Change addition array example - fixes #111
* MODULE: Remove Start-Sleep from meditation prompts

* MODULE: Remove waiting periods from Invoke-Koan
- Now should return pretty much as soon as the threaded task is completed
- Remove reference to runspacePool that isn't being used here.

* TEST: Remove test expectation for Start-Sleep
- Should error messages list expected values in a more sensible fashion
* MODULE: Display additional progress bar for farthest topic reached

* TEST: Update Show-MeditationPrompt parameters in test run

* MODULE: Restyle progress bars

* MODULE: Add fallbacks for determining console width for progress bar
@shaneis shaneis merged commit 9a5778e into shaneis:dbatools Feb 18, 2019
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.

3 participants