microsoft / microsoft/PowerPlatform-DataverseClient-Python

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

Đang mở
#166 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@abelmilash-msft đang làm issue này rồi.

Từ ngày 25/6/2026.

bug
Ngôn ngữ chính
Python
Star
60
Fork
23
Merge trung bình
13 giờ 53 phút
Pull request đã merge (30 ngày)
3

Mô tả

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).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.