Availability of Network Offering not taken into account in Web Interface
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 6 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 32
Mô tả
### problem
When loading the CreateIsolatedNetworkForm form, the availability is not taken into account in selecting the default network offering.
It seems the issue is also present in CreateSharedNetworkForm and CreateL2NetworkForm
### versions
Running 4.22.0 but issue still present in main branch
### The steps to reproduce the bug
1. Add network
2. Check if the pre-selected network is the one with Required availability
### What to do about it?
https://github.com/apache/cloudstack/blob/6dc259c7dab7bee0c4ff731271c61e2f2ee97532/ui/src/views/network/CreateIsolatedNetworkForm.vue#L565C1-L565C69
Change this line to select the first element with the availability "Required" instead of the first of the list (That is sorted by ID by default)
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại ui/src/views/network/CreateIsolatedNetworkForm.vue, khoảng dòng 565, sau đó kiểm tra logic chọn mặc định tương ứng trong CreateSharedNetworkForm và CreateL2NetworkForm. Tái hiện luồng Add network và xác minh rằng offering được chọn trước là offering đầu tiên có Required availability, thay vì chỉ đơn giản là offering đầu tiên trong danh sách được sắp xếp theo ID.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- frontend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 50/100