Azure / Azure/apiops

[BUG] API not present in configuration file is still being deployed

Offen
#659 7 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
448
Forks
247
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Release version

v6.0.11

### Describe the bug

As per documentation and #435, I was told that I should be able to prevent the deployment of an API by omitting the API from the configuration file.

However, this does not appear to work as I have an API currently commented in configuration code:

```yaml
[...]
apis:
[...]
# - name: api2
# properties:
# serviceUrl: ""
# there is no dev env
```

but the API is being deployed whether I make a publish all artifacts or edit the specs and publish last commit...
I always deploy with configuration file as I have multiple environment, I am using different configuration files for each environment

### Expected behavior

Only API defined explicitly in the configuration files are published. API that are commented should not be published.

### Actual behavior

All API are deployed, all the time.

### Reproduction Steps

configuration file `configuration.d1.yaml`:

```yaml
---
apimServiceName: apimdev01
apis:
#APIs Begin
- name: api1
properties:
serviceUrl: "https://api1.example.net"
# - name: api2
# properties:
# serviceUrl: ""
# there is no dev env
```

folder structure:
- apis
- api1
- apiInformation.json
- specification.json
- api2
- apiInformation.json
- specification.json

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit zu untersuchen, wie configuration.d1.yaml geparst wird und wie der Bereitstellungsprozess Ordner unter apis auswählt. Vergleiche den explizit aufgeführten api1-Eintrag mit dem nicht aufgeführten Ordner api2, einschließlich apiInformation.json und specification.json. Als abgeschlossen gilt, wenn eine API, die in der Konfiguration ausgelassen oder auskommentiert ist, nicht bereitgestellt wird, während aufgeführte APIs weiterhin bereitgestellt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
api, devops
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

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