[Bug]: API Portal settings drop the chosen view from the address
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- frontend
Línea de trabajo
Empieza en portals/api-portal/src/scripts/settings-nav.js e inspecciona activate(), donde history.replaceState vuelve a construir la URL de configuración. Conserva la cadena de consulta de la vista seleccionada al actualizar el hash del panel. Verifícalo eligiendo una vista no predeterminada en Theming y luego recargando la página o abriendo la URL copiada y confirmando que esa vista sigue seleccionada.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Please select the area the issue is related to
DeveloperPortal
Please select the aspect the issue is related to
Aspect/UI (Admin portal, developer portal, AI workspace UI)
Description
On the API Portal settings page, choosing a view in a view-scoped panel (Theming, LLM Instructions, API Workflows) loads …/settings?view=<view>#<panel>, but the page then removes ?view=<view> from the address bar. Reloading the page, or opening the copied link, shows the panel for the default view instead of the chosen one.
Cause
On load, activate() in portals/api-portal/src/scripts/settings-nav.js records the open panel with:
history.replaceState(null, '', location.pathname + '#' + id);
It rebuilds the address from the path and the hash only, so the query string, which carries the view, is dropped.
Observed (Playwright trace of the UI suite's theming journey, https://github.com/wso2/api-platform/actions/runs/44452694997/job/135322505050)
- Choosing view
theme_view_grzjk2ft_6navigated tohttps://api-portal:9543/api-portal/default/settings?view=theme_view_grzjk2ft_6#cfg-theming. - The page then showed that view's settings, with the address
https://api-portal:9543/api-portal/default/settings#cfg-theming.
Expected
The address keeps ?view=<view>, so reloading or sharing the page keeps the chosen view. For example, history.replaceState(null, '', location.pathname + location.search + '#' + id).
Steps to Reproduce
- In an organization with more than one view, open API Portal Settings → Theming.
- Choose a view other than the first in the view selector. The page reloads showing that view.
- Look at the address bar:
?view=is gone. - Reload the page: the panel shows the default view again.
Severity Level of the Issue
Severity/Minor (Minor functionality is broken. Doesn't need immediate attention)
Environment Details (with versions)
Current main. API Portal built from source and run by the UI suite (tests/framework) in GitHub Actions.
- Lenguaje dominante
- Go
- Estrellas
- 85
- Forks
- 137
- Merge medio
- 1 d 12 h
- PR fusionados (30 d)
- 247
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de wso2/api-platform
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy acceptsAbiertoArea/Policies Aspect/Other Severity/Trivial Type/Bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
wso2/api-platform#4355 ·
Los mantenedores suelen responder en 1 día
-
Area/Gateway Aspect/API Severity/Minor Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wso2/api-platform#4348 ·
Los mantenedores suelen responder en 1 día
-
Aspect/AI Aspect/API. Severity/Major
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
wso2/api-platform#4343 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: content-length-guardrail policy accepts a non-string streamingJsonPath at API creationAbiertoArea/Policies Aspect/Configuration Severity/Minor Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
wso2/api-platform#4330 ·
Los mantenedores suelen responder en 1 día
-
Area/Policies Aspect/API Aspect/Configuration Severity/Minor Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
wso2/api-platform#4329 ·
Los mantenedores suelen responder en 1 día
Todos los issues de wso2/api-platform
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
security
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
keyxmakerx/Chronicle#2285 ·
Los mantenedores suelen responder en 1 día