Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

API Center Portal - Predefined Choice-based filters broken

Abierto
#95 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
azure
Área
api, frontend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
PowerShell
Estrellas
46
Forks
21
Merge medio
21 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/api-center

Todos los issues de Azure/api-center

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.