-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Structure of Label functions #23
Comments
this continues #15 |
Optional (I think it's worth it):
|
We also discussed the following in chat: # Default cmdlet behavior removes all labels from piped content
$page | Remove-WikiLabel |
but then again.... wouldn't that be kinda dangerous? maybe |
My opinion is that there should be default behavior, and that example is the most intuitive option. (Since this issue was opened with regards to the module being more intuitive 😛 ) As the author of many things that could be used destructively, my personal opinion is that I can't spend too much time worrying about people who use |
agreed 👍 |
@brianbunke Situation
I don't like that the snippet above returns a list of labels, but doesn't have any reference to what page was searched for the labels. SuggestionI would prefer for the
|
I decided for a different approach than described above:
The output of
|
implements AtlassianPS#23
* renamed function * created custom object type for the set "Page+Labels" implements AtlassianPS#23
Renaming of existing functioncurrently the function to get the labels of a page is called I am renaming this function, as once attachments/blogs are implemented, this function should be reused |
… `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
I personally find it confusing (or at least not aligned to best practices), that
New-WikiLabel
attaches a label to a page.I would have believed that this functions creates a new label on confluence which I can use later on on pages.
I would propose to refactor the function so that:
this would deprecate
New-WikiLabel
The text was updated successfully, but these errors were encountered: