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

Đang mở Phù hợp với người mới
#1,659 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 8 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
86/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu tại ui-vue3/src/views/traffic/routingRule/tabs/addByFormView.vue, đọc phần binding của trường nhập mức độ ưu tiên ở dòng 87–89 và phần tạo yêu cầu tạo mới ở dòng 287–307. Thêm một bài kiểm thử hồi quy cho component, gửi một mức độ ưu tiên không mặc định và kiểm tra phần body của POST. Lỗi được khắc phục khi body đó chứa mức độ ưu tiên đã nhập dưới dạng số.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
4.1k
Fork
2.2k
Merge trung bình
6 ngày 2 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/dubbo-admin

Tất cả issue của apache/dubbo-admin

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.