Editing a tag rule in the UI form drops the addresses of its tags

オープン 初心者向け
#1,649 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 8 日以内に返信

@AsperforMias がすでに取り組んでいます。

2026年11月22日 から。

  • #1651 @AsperforMias による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript, yaml
領域
frontend

調査の方向性

ui-vue3/src/views/traffic/tagRule/tabs/updateByFormView.vue から始めます。ルールが読み込まれる箇所と、各タグに addresses のデフォルト値が設定される箇所、そして name と match のみからタグを再構築する送信処理を見つけてください。tag.addresses が読み込み時と送信時の両方で引き継がれていることを確認し、labels を持たないタグのために tagItem.match の反復処理を保護してください。フォームでルールを編集して無効化しても、保存される YAML の addresses[] が保持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Environment
  • Deploy env: vm (local), Dubbo Admin develop (65bce33)
  • Dubbo application version: dubbo-go 3.3.2 and develop
  • Registry: Nacos v2.5.2, ZooKeeper 3.9.4
Issue description

Editing a tag rule in the UI form, including turning it off, removes the addresses of its tags. After saving, a rule such as

tags:
  - name: gray
    addresses: ["0.0.0.0:20001"]

is written back without addresses, so the tag no longer selects any instance.

In ui-vue3/src/views/traffic/tagRule/tabs/updateByFormView.vue:

  • When the rule is loaded, each tag gets addresses: { condition: '=', addressesStr: '' } and only tagItem.match is copied into the form (as labels). The tag's addresses are never read.
  • The addresses match type is commented out in matchConditionTypeOptions, so it cannot be entered again in the form.
  • On submit, each tag is rebuilt from name and match only.

tagItem.match is also iterated without a check, which matters for tags that only have addresses.

Expected: editing a tag rule keeps the addresses of its tags, or the form shows and edits them.

Workaround: edit the rule in the YAML view, or add addresses back in the YAML view after editing in the form.

Logs
Click me to check logs
No error is reported; the saved rule has no addresses.
主要言語
Go
スター
4.1k
フォーク
2.2k
平均マージ
6日 2時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/dubbo-admin のほかの issue

apache/dubbo-admin の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。