-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Feature: refactor pages and labels #41
Feature: refactor pages and labels #41
Conversation
implements AtlassianPS#15
implements AtlassianPS#23
* renamed function * created custom object type for the set "Page+Labels" implements AtlassianPS#23
… `label` is empty implements AtlassianPS#23
implements AtlassianPS#23
* better handling of pipe input * more tests for ContentLableSet objects * Get-WikiLabel takes array of pages as input * all functions return ContentLableSet implements AtlassianPS#23
Must be alphabetical to match the check in ConfluencePS.Base.Tests.ps1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also changed this block in the integration tests for Add-WikiLabel
It 'label matches the specified value' {
$NewLabel1.Labels.Name | Should BeExactly $Label1
$NewLabel2.Labels.Name -contains $Label2 | Should Be $true
$NewLabel3.Labels.Name -match $PartialLabel | Should Be ($Label1 + $Label2)
}
) | ||
|
||
DynamicParam { | ||
if (!($Page)) { | ||
$paramDictionary["PageID"] | Out-String | Write-Host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is triggering and causing the test errors on Get-WikiPage
/Add-WikiLabel
right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed with 48bdb98
I was experimenting with the parameters and forgot to remove this debug code
This implements:
New-WikiLabel
toAdd-WikiLabel
Structure of Label functions #23Set-WikiLabel
Structure of Label functions #23Remove-WikiLabel
to remove all labels of page Structure of Label functions #23ContentLabelSet
as output of all Label functions Structure of Label functions #23