microsoft / microsoft/PowerPlatform-DataverseClient-Python
`DisplayCollectionName` uses naive + "s" pluralization in tables.create()
オープン
@abelmilash-msft がすでに取り組んでいます。
2026年6月25日 から。
bug
- 主要言語
- Python
- スター
- 60
- フォーク
- 23
- 平均マージ
- 13時間 53分
- マージ済み PR(30日)
- 3
説明
When creating a table, DisplayCollectionName is always set by appending "s" to the label:
Code:
- https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/f81440d0292933d121127f84677d317fd1f08523/src/PowerPlatform/Dataverse/data/_odata.py#L2121
- https://github.com/microsoft/PowerPlatform-DataverseClient-Python/blob/f81440d0292933d121127f84677d317fd1f08523/src/PowerPlatform/Dataverse/data/_odata.py#L1020
where label is either the provided display_name or falls back to the table schema name. Both paths are affected. Examples of incorrect results:
display_name |
Current result | Expected |
|---|---|---|
"Person" |
"Persons" |
"People" |
"Category" |
"Categorys" |
"Categories" |
"new_Person" (schema fallback) |
"new_Persons" |
"new_People" |
Location: src/PowerPlatform/Dataverse/data/_odata.py, _build_create_entity() (also _create_table() which delegates to it)
Proposed fix: Evaluate and consider a lightweight pluralization library (e.g. inflect).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。