[BUG] API not present in configuration file is still being deployed
- Lenguaje dominante
- C#
- Estrellas
- 448
- Forks
- 247
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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
Guía de contribución
Línea de trabajo
Comienza examinando cómo se analiza configuration.d1.yaml y cómo el proceso de despliegue selecciona las carpetas dentro de apis. Compara la entrada api1 listada explícitamente con la carpeta api2 no listada, incluidos apiInformation.json y specification.json. Se considera terminado cuando una API omitida o comentada en la configuración no se despliega, mientras que las APIs listadas sí lo siguen haciendo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- api, devops
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100