Investigate automatic singularization of function cmdlet nouns in the v3 generator
メンテナーはふだん 7 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 18/100
調査の方向性
Start with the function-segment branch in tools/WrapperGenerator/CmdletNaming.cs, which adds the operation noun without the singularization applied to resource segments, and compare it with the Reports overrides in src/Reports/wrapper/Reports_cmdletConfigurations.cs. Survey how the v1.0 and beta naming data (parity-renames.v1.0.json and its beta counterpart) treat function nouns across the corpus. Done means a written rule or a list of deliberate exceptions, plus naming regression tests, and no change to the wire API, HTTP routes or builders.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe the problem.
The v3 WrapperGenerator automatically singularizes resource path segments, but its action/function-segment branch adds the parsed operation noun directly, bypassing resource singularization. As a result, function-derived PowerShell nouns can retain plural endings unless an oracle-derived rename or curated module configuration corrects them.
Example from the Reports directive migration (#3870):
GET /reports/managedDeviceEnrollmentTopFailures()
Structural command: Get-MgReportManagedDeviceEnrollmentTopFailures
Intended command: Get-MgReportManagedDeviceEnrollmentTopFailure
The existing shared Reports.md directive specifies the singular ReportManagedDeviceEnrollmentTopFailure noun. Before this migration, v1.0 already received that name from an explicit entry in parity-renames.v1.0.json, while beta retained the structural plural because the committed derived naming data is v1.0-only. The shared Reports configuration now preserves the intended singular name in both profiles.
Describe the solution you'd like.
Investigate whether function-derived cmdlet nouns should be singularized automatically, consistently with resource-derived nouns, rather than requiring individual overrides for cases such as TopFailures → TopFailure.
Determine the correct rule before implementing it:
- Evaluate singularizing the appropriate noun portion of a function name, without rewriting the actual API function, HTTP route, Kiota builder, or wire parameters.
- Review corpus-wide effects in both v1.0 and beta, including meaningful plural names, irregular nouns, acronyms, parameterized overload suffixes, and possible command-name collisions.
- Check compatibility with published command names, shared AutoRest directive intent, and existing curated/oracle-derived overrides. Do not remove needed overrides merely because one example is addressed.
- Add naming regression coverage and document any deliberate exceptions if a general rule is adopted.
This issue is investigation only, not approval for a naming sweep. Whether action names need a similar rule should be assessed separately rather than assumed.
Additional context?
Raised during review of #3870. The user noted that function nouns should probably be singularized automatically and requested an issue marked as needing investigation.
Relevant source at the reviewed Reports PR head:
- Function-segment branch in CmdletNaming.cs
- Reports shared noun overrides
- Existing v1.0 oracle-derived TopFailure rename
No generator behavior or Reports configuration is changed as part of filing this issue.
- 主要言語
- C#
- スター
- 911
- フォーク
- 236
- 平均マージ
- 9日 18時間
- マージ済み PR(30日)
- 33
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoftgraph/msgraph-sdk-powershell のほかの issue
-
DirectoryObjects: drop the publicKeyInfrastructureRoot tag from the module mapping (v2)対応中かも @gavinbarron が 8 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoftgraph/msgraph-sdk-powershell#3752 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 7 日以内に返信
-
status:waiting-for-triage type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
microsoftgraph/msgraph-sdk-powershell#3918 ·
メンテナーはふだん 7 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 56/100
microsoftgraph/msgraph-sdk-powershell#3917 ·
メンテナーはふだん 7 日以内に返信
-
[v3 wrappers] Support arbitrary optional query parameters対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンstatus:waiting-for-triage type:feature
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
microsoftgraph/msgraph-sdk-powershell#3897 ·
メンテナーはふだん 7 日以内に返信
-
Tracking for V3 Upgrade対応中かも @ramsessanchez が 22 日前に担当しました。 オープンtype:epic
microsoftgraph/msgraph-sdk-powershell#3874 · 担当者 1 名 ·
メンテナーはふだん 7 日以内に返信
microsoftgraph/msgraph-sdk-powershell の issue をすべて見る
似ている issue
-
🐛 bug 🕒 low effort good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
guibranco/Sankhya-SDK-dotnet#654 ·
メンテナーはふだん 1 日以内に返信
-
a-corriger bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
christian-raj/S-Aloha#340 ·
-
遇到超大文件会卡住オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/microsoft-ui-reactor#1626 ·
メンテナーはふだん 1 日以内に返信
-
Triage:Untriaged Type:Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100