Availability of Network Offering not taken into account in Web Interface
- Langage dominant
- Java
- Étoiles
- 3.1k
- Forks
- 1.4k
- Merge moyen
- 6 j 19 h
- PR mergées (30 j)
- 32
Description
### 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)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par ui/src/views/network/CreateIsolatedNetworkForm.vue, autour de la ligne 565, puis examinez la logique de sélection par défaut correspondante dans CreateSharedNetworkForm et CreateL2NetworkForm. Reproduisez le parcours Add network et vérifiez que l’offre présélectionnée est la première avec Required availability, plutôt que simplement la première offre de la liste triée par ID.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 50/100