Skip to content

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

Open

Description

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

Activity

  1. github-actions commented on Feb 4, 2026

    @github-actions
      Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
      Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.
    
  2. guythetechie commented on Feb 11, 2026

    @guythetechie
    Contributor

    Shaun Alexander (@shaunaa126) - thanks for reporting this.

    1. We'll address the policy => policy fragment dependency; definitely a bug.
    2. Let me see if I can replicate this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions