Skip to content

armadvisor GetGenerateStatus hides relevant HTTP status information #22305

Open
@joshk0

Description

@joshk0

Bug Report

Package: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor
SDK version: 1.2.0
Go version: go version go1.21.3 darwin/amd64

  • What happened? GetGenerateStatus is a call that tells you whether a recommendation generation operation has completed or not. The HTTP status code is Accepted if the operation is still ongoing and NoContent (204) if the operation has concluded. Otherwise a standard HTTP error. However, the response struct is empty, and will be the same whether 204 or Accepted was returned.
  • What did you expect or want to happen? The distinction should be made available via the repsonse struct or an additional return value.
  • How can we reproduce it? First, call GenerateRecommendations to get an operation ID (via *resp.Location), then pass it into GetGenerateStatus.
  • Anything we should know about your environment. Nothing special

Metadata

Metadata

Assignees

Labels

AdvisorMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions