API Center Portal - Predefined Choice-based filters broken
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start in the API Center portal through Portal Settings, reproduce the issue with a predefined choice metadata field, and inspect how the filter uses the selected description versus its value. Done means the filter shows both value and description distinctly, displays the selected value, and returns assets matching that value.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
When exposing custom metadata fields (specifically predefined choices) to the portal, descriptions are used as values instead of values themselves. Selecting the option appears to filter by the description and will not find any results
I have at least one test API where "None" is selected, but selecting the equivalent description in the filter yeilds no results:
Reproduction steps
Steps to reproduce the behavior:
- Create a custom predefined choice metadata field
- Make sure one or more assets have the field populated with an expected value
- Make sure the metadata item is exposed in portal under "Portal Settings" tab
- Open portal, and attempt to filter on the metadata definition
Expected behavior
- Value and description are shown for selection in the filter so there's clarity in what's being selected (e.g. value is in bold, or description is smaller text size, something to make them visually distinct)
- On selecting a filter item the value is shown in the portal, and the assets are correctly filtered
Actual behavior
- Only descriptions of items are displayed, no values
- Resulting search appears to be looking for the value to be equal to the description (at least visually)
- Filter doesn't show the expected API list
Screenshots
See above
Additional context
N/A
- Ngôn ngữ chính
- PowerShell
- Star
- 46
- Fork
- 21
- Merge trung bình
- 21 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 Azure/api-center
-
Feature request Untriaged
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Azure/api-center#96 ·
-
Feature request Untriaged
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 48/100
Azure/api-center#93 · 1 bình luận ·
-
Bug Untriaged
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Azure/api-center#92 · 1 reaction ·
-
Bug Untriaged
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Azure/api-center#91 · 1 bình luận ·
-
Feature request Untriaged
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Azure/api-center#90 · 1 bình luận · 1 reaction ·
Tất cả issue của Azure/api-center
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
UKGovernmentBEIS/inspect_ai#5781 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TencentCloud/Octop#1832 ·
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 78/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LanternOps/breeze#8254 ·
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 68/100
Maintainer thường phản hồi trong vòng 1 ngày