Skip to content

enable Update-List cmdlet - #5371

Closed
Steve Lee (SteveL-MSFT) wants to merge 2 commits into
PowerShell:masterfrom
SteveL-MSFT:update-list
Closed

Steve Lee (SteveL-MSFT) wants to merge 2 commits into
PowerShell:masterfrom
SteveL-MSFT:update-list

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

Part of #2123

@@ -0,0 +1,29 @@
Describe "Update-List tests" -Tags CI {
BeforeEach {
$list = [System.Collections.Generic.List``1[int]]::new()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You don't need ``1 - I'm guessing you copied this from an old test that was written before we had better generics support.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yup, will change.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@lzybkr Jason Shirk (lzybkr) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does anybody still use this cmdlet? I'd be happy to see my one of my first contributions to PowerShell disappear. :)

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

Jason Shirk (@lzybkr) that's a good question about whether we even want this cmdlet. I've never used it until I wrote tests for it. Florian Feldhaus (@ffeldhaus) opened the original issue and had this in the list. Personally, I'm fine either way.

@iSazonov

Copy link
Copy Markdown
Collaborator

Steve Lee (@SteveL-MSFT) Could you please review WriteError()'s in update-list.cs and add tests?

@iSazonov

Copy link
Copy Markdown
Collaborator

I found 45 results in GitHub https://github.com/search?q=%22Update-List%22+language%3APowerShell&type=Code&utf8=%E2%9C%93 - somebody still use this cmdlet!!!

@SteveL-MSFT

Copy link
Copy Markdown
Member Author

Ilya (@iSazonov) you have to exclude the .psd1 (which is just copies of Utility.psd1) and any results from PowerShell/* repos or forks of PowerShell/PowerShell. So there's really less than 20 hits and many of them are for the same factorial script and a number are for a custom function called Update-List. Seems like good justification to just remove this code.

@iSazonov

Copy link
Copy Markdown
Collaborator

I agree. I can't think of PowerShell magic scenarios that are impossible without this cmdlet.

@SteveL-MSFT Steve Lee (SteveL-MSFT) added the Review - Committee The PR/Issue needs a review from the PowerShell Committee label Nov 8, 2017
@SteveL-MSFT

Copy link
Copy Markdown
Member Author

@PowerShell/powershell-committee agreed that this is not likely a highly used cmdlet and we can defer bringing it back until we hear customer feedback leaving the disabled code where it is for now

@iSazonov Ilya (iSazonov) added Committee-Reviewed PS-Committee has reviewed this and made a decision and removed Review - Committee The PR/Issue needs a review from the PowerShell Committee labels Nov 9, 2017
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the update-list branch October 26, 2018 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Committee-Reviewed PS-Committee has reviewed this and made a decision

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants