microsoft / microsoft/PowerPlatform-DataverseClient-Python

`DisplayCollectionName` uses naive + "s" pluralization in tables.create()

Aperta
#166 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@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:

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.