Azure / Azure/apiops

[BUG] policy and policy fragment dependency and api specification issues

Aperta
#825 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
448
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Release version

v7.0.0-beta.1.0.0

### Describe the bug

There are two bugs found when testing v7.0.0-beta.1.0.0:

- When publishing policies and policy fragments, the publisher will fail to publish the policy because it has `include-fragment` dependencies to the policy fragments, the ordering seems to be an issue here when in reality it should have created all the dependent policy fragments before creating the policy
- When publishing an api with a working specification.yaml, the publisher succeeds but does not actually deploy the operations, resulting in `no operations` when viewing the api in the azure portal. This is verified working for `v6.0.2`

### Expected behavior

- When publishing policies and policy fragments, the publisher should succeed and take into the account of the ordering and dependency of policy fragments and policies
- When publishing an api with a working specification.yaml, the publisher should succeed and deploy the operations, the results should show a list of `operations` when viewing the api in the azure portal

### Actual behavior

- When publishing policies and policy fragments, the publisher will fail to publish the policy because it has `include-fragment` dependencies to the policy fragments, the ordering seems to be an issue here when in reality it should have created all the dependent policy fragments before creating the policy
- When publishing an api with a working specification.yaml, the publisher succeeds but does not actually deploy the operations, resulting in `no operations` when viewing the api in the azure portal. This is verified working for `v6.0.2`

### Reproduction Steps

- When publishing policies and policy fragments, the publisher will fail to publish the policy because it has `include-fragment` dependencies to the policy fragments, the ordering seems to be an issue here when in reality it should have created all the dependent policy fragments before creating the policy
- When publishing an api with a working specification.yaml, the publisher succeeds but does not actually deploy the operations, resulting in `no operations` when viewing the api in the azure portal. This is verified working for `v6.0.2`

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo entrambi i malfunzionamenti su v7.0.0-beta.1.0.0, confrontando l’ordine di pubblicazione di policy e policy-fragment e il deployment dell’API con v6.0.2. Traccia i percorsi del publisher responsabili della gestione delle dipendenze e del deployment della specifica. Il lavoro è completato quando i policy fragments dipendenti vengono pubblicati prima delle policies e l’API mostra le proprie operazioni nell’Azure portal.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, csharp
Ambito
api, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.