apache / apache/cloudstack

Availability of Network Offering not taken into account in Web Interface

Offen
#12,116 6 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
component:UI
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.4k
Ø Merge
6 T. 19 Std.
Gemergte PRs (30 T.)
32

Beschreibung

### 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)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne bei ui/src/views/network/CreateIsolatedNetworkForm.vue ungefähr in Zeile 565 und untersuche anschließend die entsprechende Logik für die Standardauswahl in CreateSharedNetworkForm und CreateL2NetworkForm. Reproduziere den Add network-Ablauf und überprüfe, dass das vorausgewählte Angebot das erste mit Required availability ist und nicht einfach das erste Angebot in der nach ID sortierten Liste.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
50/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.