Merge-MarkdownHelp expectation when parameter type varies across versions?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 28/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- markdown, powershell
- Lĩnh vực
- documentation, tooling
Hướng nghiên cứu
Bắt đầu với platyPSIssue3.zip được cung cấp và tái tạo Merge-MarkdownHelp bằng cách sử dụng bốn thư mục Exchange Server và các tệp New-MailboxImportRequest.md. Kiểm tra đầu ra đã hợp nhất đối với tham số Mailbox và phần SYNTAX; công việc được xem là hoàn tất khi có kết quả nhất quán, được ghi lại cho các giá trị Type, các bộ tham số và các giá trị Applicable khác nhau giữa các phiên bản.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I wouldn't necessarily call this a bug, but what is the expected Merge-MarkdownHelp result if the Type value of the same parameter in the same cmdlet changes from one version of the product to another (e.g., Exchange 2013 to Exchange 2016)?
For example, the Mailbox parameter in the New-MailboxImportRequest cmdlet. In Exchange 2010 and Exchange 2013, the Type value is MailboxOrMailUserIdParameter. In Exchange 2016 and Exchange 2019, the Type value is MailboxLocationIdParameter. The actual description portions of the parameter is the same across versions.
If you create the following folder structure with the appropriate files:
\Exchange Server 2010\New-MailboxImportRequest.md
\Exchange Server 2013\New-MailboxImportRequest.md
\Exchange Server 2016\New-MailboxImportRequest.md
\Exchange Server 2019\New-MailboxImportRequest.md
And then run the following commands:
$x = "<path>\Exchange Server 2010","<path>\Exchange Server 2013","<path>\Exchange Server 2016","<path>\Exchange Server 2019"
Merge-MarkdownHelp -Path $x -OutputPath "<path>\platyPSissue\Merged" -ExplicitApplicableIfAll
You'll see in the resulting attached output file, the Type value of the Mailbox parameter is MailboxOrMailUserIdParameter only (the 2010/2013 values). Shouldn't the Mailbox parameter contain multiple YAML sections like this?
Type: MailboxOrMailUserIdParameter
Parameter Sets: (All)
Aliases:
Applicable: Exchange Server 2010, Exchange Server 2013
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
Type: MailboxLocationIdParameter
Parameter Sets: (All)
Aliases:
Applicable: Exchange Server 2016, Exchange Server 2019
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
And what about parameter sets in the SYNTAX section? As you can see, the Mailbox parameter only has the MailboxOrMailUserId parameter:
## SYNTAX
New-MailboxImportRequest [-Mailbox] <MailboxOrMailUserIdParameter> ...
Shouldn't there be two parameter sets? And what to call them and/or how to duplicate and tack and identifier on the end of the parameter set name like this?
## SYNTAX
### MailboxOrMailUserId
New-MailboxImportRequest [-Mailbox] <MailboxOrMailUserIdParameter> ...
### MailboxLocationId
New-MailboxImportRequest [-Mailbox] <MailboxLocationIdParameter> ...
And of course, this would change the Applicable values in the YAML sections in the parameter description.
Is this known or expected behavior?
- Ngôn ngữ chính
- C#
- Star
- 870
- Fork
- 166
- Merge trung bình
- 21 giờ 17 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PowerShell/platyPS
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
PowerShell/platyPS#857 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
PowerShell/platyPS#863 ·
-
Export-MamlCommandHelp: a module file in the batch aborts the whole export and writes nothingĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
PowerShell/platyPS#862 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
PowerShell/platyPS#861 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
PowerShell/platyPS#860 · 1 bình luận ·
Tất cả issue của PowerShell/platyPS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/fluentui-blazor#5427 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:jobads-cv BE mvp P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
klasolsson81/jobbliggaren#2099 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
0 - Backlog Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
BrighterCommand/Brighter#4581 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Esri/calcite-dotnet-toolkit#30 · 1 reaction ·