microsoft / microsoft/PowerPlatform-DataverseClient-Python
`DisplayCollectionName` uses naive + "s" pluralization in tables.create()
Offen
@abelmilash-msft arbeitet bereits daran.
Seit 25.6.2026.
bug
- Vorherrschende Sprache
- Python
- Sterne
- 60
- Forks
- 23
- Ø Merge
- 13 Std. 53 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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).
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.