API Center Portal - Predefined Choice-based filters broken
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- PowerShell
- 星标
- 47
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/api-center 的其他 Issue
-
Feature request Untriaged
难度 3/5 1-2 天 新手友好度 52/100
Azure/api-center#96 ·
-
Feature request Untriaged
难度 5/5 一周以上 新手友好度 48/100
Azure/api-center#93 · 1 条评论 · 1 个 reaction ·
-
Bug Untriaged
难度 4/5 3-5 天 新手友好度 48/100
Azure/api-center#92 · 1 个 reaction ·
-
Bug Untriaged
难度 4/5 3-5 天 新手友好度 45/100
Azure/api-center#91 · 1 条评论 ·
-
Feature request Untriaged
难度 3/5 1-2 天 新手友好度 68/100
Azure/api-center#90 · 1 条评论 · 1 个 reaction ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
riverqueue/river#1576 ·
维护者通常 1 天内回复
-
[bug] A capability assessment drops the answers of its fifth and later requests可能已有人在做 @jwiegley 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
DevMortimer/pi-warden#210 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
stadelmanma/fitparse-rs#64 ·
-
bump patch
难度 2/5 1-3 小时 新手友好度 72/100
autowarefoundation/autoware_carla_scenario#1321 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复