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

DefaultDisplayPropertySet takes a string[], update example #11171

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

trackd
Copy link
Contributor

@trackd trackd commented Jun 9, 2024

PR Summary

DefaultDisplayPropertySet takes a String array not a String.

PS> Get-Help Update-TypeData -Parameter DefaultDisplayPropertySet
# old example
PS> Update-TypeData -TypeName 'System.DateTime' -DefaultDisplayPropertySet "DateTime, DayOfYear, Quarter"
PS> Get-Date | fl
DateTime, DayOfYear, Quarter :
# empty

# fixed example:
PS> Update-TypeData -TypeName 'System.DateTime' -DefaultDisplayPropertySet "DateTime", "DayOfYear", "Quarter"
PS> Get-Date | fl

DateTime  : den 10 juni 2024 00:47:12
DayOfYear : 162
Quarter   : Q2

link to code Update-TypeData.cs#L204-L215

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

Copy link

github-actions bot commented Jun 9, 2024

Expectations

Thanks for your submission! Here's a quick note to provide you with some context for what to expect from the docs team and the process now that you've submitted a PR. Even if you've contributed to this repo before, we strongly suggest reading this information; it might have changed since you last read it.

To see our process for reviewing PRs, please read our editor's checklist and process for managing pull requests in particular. Below is a brief, high-level summary of what to expect, but our contributor guide has expanded details.

The docs team begins to review your PR if you request them to or if your PR meets these conditions:

  • It is not a draft PR.
  • It does not have a WIP prefix in the title.
  • It passes validation and build steps.
  • It does not have any merge conflicts.
  • You have checked every box in the PR Checklist, indicating you have completed all required steps and marked your PR as Ready to Merge.

You can always request a review at any stage in your authoring process, the docs team is here to help! You do not need to submit a fully polished and finished draft; the docs team can help you get content ready for merge.

While reviewing your PR, the docs team may make suggestions, write comments, and ask questions. When all requirements are satisfied, the docs team marks your PR as Approved and merges it. Once your PR is merged, it is included the next time the documentation is published. For this project, the documentation is published daily at 3 p.m. Pacific Standard Time (PST).

@trackd
Copy link
Contributor Author

trackd commented Jun 9, 2024

@microsoft-github-policy-service agree

Copy link
Contributor

Learn Build status updates of commit fdc0d6f:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-5.1)
reference/7.2/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.2)
reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.5)

For more details, please refer to the build report.

For any questions, please:

Copy link
Contributor

Learn Build status updates of commit 6fcb1dc:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-5.1)
reference/7.2/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.2)
reference/7.4/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/Update-TypeData.md ✅Succeeded View (powershell-7.5)

For more details, please refer to the build report.

For any questions, please:

@trackd
Copy link
Contributor Author

trackd commented Jun 9, 2024

not sure if this qualifies for updating ms.date
i would classify it as a typo but it's also a factual error, the old example was broken.

I can revert the date change if you wish.

Copy link
Contributor

@sdwheeler sdwheeler left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@sdwheeler sdwheeler merged commit b1d1b20 into MicrosoftDocs:main Jun 10, 2024
4 checks passed
@trackd trackd deleted the typo branch June 10, 2024 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants