microsoft / microsoft/PowerPlatform-DataverseClient-Python
`DisplayCollectionName` uses naive + "s" pluralization in tables.create()
Aperta
@abelmilash-msft ci sta già lavorando.
Dal 25/6/2026.
bug
- Lingua principale
- Python
- Stelle
- 60
- Fork
- 23
- Merge medio
- 13h 53m
- PR unite (30g)
- 3
Descrizione
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).
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.