Availability of Network Offering not taken into account in Web Interface
- Lingua principale
- Java
- Stelle
- 3.1k
- Fork
- 1.4k
- Merge medio
- 6g 19h
- PR unite (30g)
- 32
Descrizione
### 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)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da ui/src/views/network/CreateIsolatedNetworkForm.vue intorno alla riga 565, quindi esamina la logica corrispondente di selezione predefinita in CreateSharedNetworkForm e CreateL2NetworkForm. Riproduci il flusso Add network e verifica che l'offerta preselezionata sia la prima con Required availability, anziché semplicemente la prima offerta nell'elenco ordinato per ID.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 50/100