| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
From #6412 #6214 (comment)
|
Sorry, something went wrong.
|
The build errors seems completely separate from my changes. |
Sorry, something went wrong.
|
Reopen the PR to restart CIs. |
Sorry, something went wrong.
|
I don't intend to fix the remaining CodeFactor issues. |
Sorry, something went wrong.
|
James Truher (@JamesWTruher) can you please take a look? Thx. |
Sorry, something went wrong.
|
Jim is on a leave; + Steve Lee (@SteveL-MSFT) for review who is familiar with formatting APIs. |
Sorry, something went wrong.
| } | ||
|
|
||
| private ListEntryBuilder AddItem(string value, string label, DisplayEntryValueType kind, string format) | ||
| private ListEntryBuilder AddItem(string value, string label, DisplayEntryValueType kind, string format, DisplayEntry itemSelectionContition) |
There was a problem hiding this comment.
typo: itemSelectionCondition
Sorry, something went wrong.
|
|
||
| /// <summary></summary> | ||
| public ListEntryBuilder AddItemScriptBlock(string scriptBlock, string label = null, string format = null) | ||
| public ListEntryBuilder AddItemScriptBlock(string scriptBlock, string label = null, string format = null, DisplayEntry itemSelectionContition = null) |
There was a problem hiding this comment.
typo: itemSelectionCondition
Sorry, something went wrong.
|
|
||
| /// <summary></summary> | ||
| public ListEntryBuilder AddItemProperty(string property, string label = null, string format = null) | ||
| public ListEntryBuilder AddItemProperty(string property, string label = null, string format = null, DisplayEntry itemSelectionContition = null) |
There was a problem hiding this comment.
typo: itemSelectionCondition
Sorry, something went wrong.
| /// <summary></summary> | ||
| public ListEntryBuilder AddItemPropertyIfSet(string property, string label = null, string format = null) | ||
| { | ||
| var itemSelectionContition = DisplayEntry.CreatePropertyEntry(property); |
There was a problem hiding this comment.
typo: itemSelectionCondition
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
| $text = 1, 2, 3 | Measure-Object -Minimum -Maximum | Format-List | Out-String | ||
| $text -match "min" | Should -BeTrue | ||
| $text -match "max" | Should -BeTrue | ||
| $text -match 'Average' | Should -BeFalse |
There was a problem hiding this comment.
Seems we skipped
$text -match 'Sum' | Should -BeFalse
Sorry, something went wrong.
There was a problem hiding this comment.
Staffan Gustafsson (@powercode) Please address the comment.
Sorry, something went wrong.
|
Bruce Payette (@BrucePay) Jason Shirk (@lzybkr) Please look the PR. |
Sorry, something went wrong.
|
Staffan Gustafsson (@powercode) Thank you for the contribution! I added "Documentation-Needed" label (if you can please open new issue in PowerShell-Docs repo). |
Sorry, something went wrong.
| /// <returns>A <see cref="DisplayEntry"/> for the <paramref name="scriptblock"/>.</returns> | ||
| public static DisplayEntry CreateScriptBlockEntry(string scriptblock) | ||
| { | ||
| return new DisplayEntry(scriptblock, DisplayEntryValueType.ScriptBlock); |
There was a problem hiding this comment.
Paul Higinbotham (@PaulHigin) should review this new public api for any security implications in creating script blocks that might circumvent the language mode.
Sorry, something went wrong.
There was a problem hiding this comment.
Paul Higinbotham (@PaulHigin) reviewed this and told me he doesn't see a security issue. Paul Higinbotham (@PaulHigin) can you confirm?
Sorry, something went wrong.
|
Ilya (@iSazonov) we should revert this commit until security review of the public api has been completed |
Sorry, something went wrong.
|
Steve Lee (@SteveL-MSFT) Opened #7754. |
Sorry, something went wrong.
…ll#7104)" (PowerShell#7754) This reverts commit 87ccd0a until security review of the public api has been completed.
* Adding support for built-in List formats to include ItemSelectionCondition * Adding ItemSelectionCondition to GenericMeasureInfo * Adding tests for MeasureInfo format-list * Adding positive tests
…ll#7104)" (PowerShell#7754) This reverts commit f657820 until security review of the public api has been completed.
| Back | FazBrowse Home | New Git URL |
PR Summary
Adding Item selection conditions to the list formatting info for MeasureInfo so that only the properties with values gets displayed
Reopening #6214
PR Checklist
This change is