Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Remove functions used in errhelp.go across controllers #1044

Merged
merged 12 commits into from
May 19, 2020
Merged

Task: Remove functions used in errhelp.go across controllers #1044

merged 12 commits into from
May 19, 2020

Conversation

WilliamMortlMicrosoft
Copy link
Contributor

@WilliamMortlMicrosoft WilliamMortlMicrosoft commented May 11, 2020

closes #628
closes #1032

We are using functions from errhelp.go such as IsStatusCode204, and IsStatusCode404. We want to remove these function calls used throughout the controllers and have them use errors.go string checks instead (such as ParentNotFoundErrorCode) to be consistent across controllers.

In Addition, we would also like to ideally error check from HTTP status codes instead of strings.

Done criteria
Remove string functions and instead error check them from errors.go

Fix in the following controllers..

  • Azure SQL Firewall Rule
  • Azure DataLake
  • Cosmos DB
  • Storage Controller
  • Azure SQL DB
  • and many others

Also, fixes MySql delete issue

@WilliamMortlMicrosoft WilliamMortlMicrosoft added enhancement test Test refactoring related tasks labels May 11, 2020
@WilliamMortlMicrosoft WilliamMortlMicrosoft self-assigned this May 11, 2020
@frodopwns frodopwns self-requested a review May 13, 2020 16:23
Copy link
Contributor

@jpflueger jpflueger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@WilliamMortlMicrosoft WilliamMortlMicrosoft removed the request for review from frodopwns May 18, 2020 21:57
Copy link
Contributor

@frodopwns frodopwns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable

@WilliamMortlMicrosoft WilliamMortlMicrosoft merged commit 5a08846 into Azure:master May 19, 2020
@WilliamMortlMicrosoft WilliamMortlMicrosoft deleted the errHelp branch May 19, 2020 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test refactoring related tasks
Projects
None yet
4 participants