Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

API Center Portal - Predefined Choice-based filters broken

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

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure
Lĩnh vực
api, frontend

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ả

Bug Untriaged

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

Image

I have at least one test API where "None" is selected, but selecting the equivalent description in the filter yeilds no results:

Image

Reproduction steps

Steps to reproduce the behavior:

  1. Create a custom predefined choice metadata field
  2. Make sure one or more assets have the field populated with an expected value
  3. Make sure the metadata item is exposed in portal under "Portal Settings" tab
  4. 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

  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.

Issue khác của Azure/api-center

Tất cả issue của Azure/api-center

Issue tương tự

Thêm issue về Backend & API Design

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.