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

Aperta Adatta ai principianti
#1,649 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

@AsperforMias ci sta già lavorando.

Dal 22/11/2026.

  • #1651 di @AsperforMias — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript, yaml
Ambito
frontend

Direzione di ricerca

Inizia da ui-vue3/src/views/traffic/tagRule/tabs/updateByFormView.vue: trova dove viene caricata la regola e dove a ogni tag viene assegnato il valore predefinito di addresses, e il passaggio di invio che ricostruisce i tag solo da name e match. Verifica che tag.addresses venga copiato sia al caricamento sia all'invio, e proteggi l'iterazione su tagItem.match per i tag che non hanno labels. È completato quando modificare e disabilitare una regola nel modulo mantiene addresses[] nello YAML salvato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
4.1k
Fork
2.2k
Merge medio
6g 2h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/dubbo-admin

Tutte le issue di apache/dubbo-admin

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.