[Bug]: API Portal settings drop the chosen view from the address
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 88/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
portals/api-portal/src/scripts/settings-nav.jsから始めて、history.replaceStateが設定URLを再構築するactivate()を調べます。パネルのハッシュを更新するときに、選択したビューのクエリ文字列を保持します。Themingでデフォルト以外のビューを選択し、ページを再読み込みするかコピーしたURLを開いて、そのビューが引き続き選択されていることを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 85
- フォーク
- 137
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 247
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wso2/api-platform のほかの issue
-
[Bug]: host-rewrite policy documentation lists fewer allowed host characters than the policy acceptsオープンArea/Policies Aspect/Other Severity/Trivial Type/Bug
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
wso2/api-platform#4355 ·
メンテナーはふだん 1 日以内に返信
-
Area/Gateway Aspect/API Severity/Minor Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wso2/api-platform#4348 ·
メンテナーはふだん 1 日以内に返信
-
Aspect/AI Aspect/API. Severity/Major
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
wso2/api-platform#4343 ·
メンテナーはふだん 1 日以内に返信
-
Area/Policies Aspect/Configuration Severity/Minor Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
wso2/api-platform#4330 ·
メンテナーはふだん 1 日以内に返信
-
Area/Policies Aspect/API Aspect/Configuration Severity/Minor Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
wso2/api-platform#4329 ·
メンテナーはふだん 1 日以内に返信
wso2/api-platform の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
keyxmakerx/Chronicle#2285 ·
メンテナーはふだん 1 日以内に返信