Condition rule creation form omits the entered priority from the POST body

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

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

まだ誰も着手していません。

評価

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

調査の方向性

ui-vue3/src/views/traffic/routingRule/tabs/addByFormView.vueから始め、87~89行目の優先度入力のバインディングと、287~307行目の作成リクエストの組み立てを読みます。デフォルト以外の優先度を送信し、POSTの本文を確認するコンポーネントの回帰テストを追加します。その本文に入力した優先度が数値として含まれていれば、問題は修正されています。

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

説明

The condition rule creation form exposes a Priority field, but the value entered there is omitted from the create request. A component test on PR #1650 at 3a724901 reproduced this with priority 12. The same request-building code is present on develop at 62d15aff.

Steps to reproduce
  1. Open the condition rule creation form, choose application scope, and enter an application name such as demo-server.
  2. Set Priority to 12 and enter a condition, for example method=sayHello => host=10.0.0.1.
  3. Click Confirm and inspect the outgoing POST body.

Actual: The JSON body has no priority property, so the backend never receives the selected value.

Expected: The body includes "priority": 12. A regression test can submit the creation form with a non-default priority and assert that the API receives that number.

Priority input binding · Create request construction

Related to #1648 and #1650. The omission is visible in the request body before the server validates the rule name.

主要言語
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 を短くまとめたダイジェスト。