Azure / apiops

APIOps applies the concepts of GitOps and DevOps to API deployment. By using practices from these two methodologies, APIOps can enable everyone involved in the lifecycle of API design, development, and deployment with self-service and automated tools to ensure the quality of the specifications and APIs that they’re building.
https://azure.github.io/apiops
MIT License
328 stars 193 forks source link

[Question] If new versionset is being added, I notice the first deployment fails. The second one normally succeeds. #697

Open zcarroll4 opened 3 weeks ago

zcarroll4 commented 3 weeks ago

Release version

5.1.4

Question Details

Throws this error: failed with status code 400. Content is '{"error":{"code":"ValidationError","message":"One or more fields contain incorrect values:","details":[{"code":"ValidationError","target":"path","message":"Cannot create API '**-v2' with the same Path '*/api' as API '' unless it's a part of the same version set"}]}}'.

Expected behavior

For the deploy to succeed on the first iteration.

Actual behavior

Fails for the first deploy. Succeeds on the second.

Reproduction Steps

Create a new version set for an api.

github-actions[bot] commented 3 weeks ago
  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.
ash9368 commented 3 weeks ago

Hi @zcarroll4
i am also working on version set and when i run apiops for the version set and the 2 api that version set has then there is 2 different api which are shown on the branch but ideally there should be folder and inside which there should be 2 API .

so my concern here is during the deployment from the dev to qa , will it create the 2 different api in the qa enviroment or those api will show under the one version set . ?? in dev 2 api are inside the one version set .