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

Make ConvertFrom-StringData and Import-PowerShellDataFile return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable now works in v7.3+ #19070

Closed
mklement0 opened this issue Feb 1, 2023 · 4 comments
Labels
Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-No Activity Issue has had no activity for 6 months or more WG-Cmdlets general cmdlet issues

Comments

@mklement0
Copy link
Contributor

mklement0 commented Feb 1, 2023

Summary of the new feature / enhancement

See also:

Since 7.3, ConvertFrom-Json -AsHashtable now (fortunately) returns a hashtable in which the definition order of the entries is respected, courtesy of the new, [hashtable]-derived System.Management.Automation.OrderedHashtable type - see #18524 (comment)

The [hashtable]-outputting ConvertFrom-StringData and Import-PowerShellDataFile cmdlets could benefit from the same improvement - as well as any other standard cmdlets that currently return [hashtable] instances.

Proposed technical implementation details (optional)

No response

@mklement0 mklement0 added Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. labels Feb 1, 2023
@mklement0 mklement0 changed the title Make ConvertFrom-StringData and Import-PowerShellDataFile return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable work in v7.3+ Make ConvertFrom-StringData and Import-PowerShellDataFile return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable now work sin v7.3+ Feb 1, 2023
@mklement0 mklement0 changed the title Make ConvertFrom-StringData and Import-PowerShellDataFile return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable now work sin v7.3+ Make ConvertFrom-StringData and Import-PowerShellDataFile return *ordered* hashtables, analogous to how ConvertFrom-Json -AsHashtable now works in v7.3+ Feb 1, 2023
@daxian-dbw daxian-dbw added the WG-Cmdlets general cmdlet issues label Feb 7, 2023
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

1 similar comment
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Nov 15, 2023
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

Copy link
Contributor

This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-No Activity Issue has had no activity for 6 months or more WG-Cmdlets general cmdlet issues
Projects
None yet
Development

No branches or pull requests

2 participants