[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 49/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- csharp, powershell
- Lĩnh vực
- localization
Hướng nghiên cứu
Bắt đầu với các cmdlet Import-PnPTermGroupFromXml và Export-PnPTermGroupFromXml, tái hiện vấn đề bằng cách sử dụng các bản dịch thuật ngữ tiếng Hà Lan và tiếng Anh được cung cấp, đồng thời kiểm tra cách XML Name và các nhãn bản dịch được xử lý. Hoàn thành khi việc nhập nhóm đã xuất vẫn giữ nhãn tiếng Hà Lan là tiếng Hà Lan thay vì hiển thị văn bản tiếng Anh cho cả hai nhãn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Reporting an Issue or Missing Feature
After using Export-PnPTermGroupFromXml, I import the group using Import-PnPTermGroupFromXml. This results in the terms having the English instead of the Dutch translation.
Expected behavior
Create the terms with the correct translation
Actual behavior
The Dutch translation contains English
Steps to reproduce behavior
-
My tenant is in Dutch. I create a term called "Test term NL" and give it an English translation "Test term EN"
-
I Export the group using Export-PnPTermGroupFromXml. The name of the term element is the English name (no idea of this is expected behavior). It does list the translations correctly.
-
I delete the Test termset
-
I import the group using Import-PnPTermGroupFromXml. This results in the term being recreated but with the English text showing up as Dutch.
What I think happens
What I think causes this bug is:
- The term doesn't exist so it is created. It creates it with the value in the "Name" attribute that is in English, but since the tenant is in Dutch it is now wrongly labeled as Dutch.
- It goes on to create the lables, the fist one is English. This lable is new so it is created.
- Next is the Dutch label, this label already exists so it is skipped...
And now we have English in both lables and lose the Dutch label!
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.2.0
Which operating system/environment are you running PnP PowerShell on?
-
Windows
-
Linux
-
MacOS
-
Azure Cloud Shell
-
Azure Functions
-
Other : please specify
- Ngôn ngữ chính
- C#
- Star
- 905
- Fork
- 409
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pnp/powershell
-
[FEATURE] Get-PnPUser -CurrentĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pnp/powershell#5476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
pnp/powershell#5480 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Set-PnPListItem with an apostrophe / single quote in the name when using the -Batch parameter failsĐang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
pnp/powershell#5479 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
pnp/powershell#5477 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
pnp/powershell#5466 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của pnp/powershell
Issue tương tự
-
area/navigationview 🧭 difficulty/starter 🚀 good first issue kind/bug platform/all project/navigation-lifecycle 🧬 triage/untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
unoplatform/uno#24925 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
DamianEdwards/ghcp-spend-tray#39 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
copilot documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[Rust][Flaky Test] multiple_deadlines_fire_in_order asserts a wall-clock gap instead of firing orderĐang mởCI/CD ⚒️ Flaky-tests 🐦
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
valkey-io/valkey-glide#7255 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug good first issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
unoplatform/Uno.Core#99 ·