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

Application Gateway: Refactoring #2054

Merged
merged 43 commits into from
Nov 12, 2018
Merged

Application Gateway: Refactoring #2054

merged 43 commits into from
Nov 12, 2018

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Oct 10, 2018

This PR normalizes the state of the azurerm_application_gateway resource to ensure that it can be iterated on in the future. Rather than making larger structural changes - this PR gets the resource to a known state (for example, ensuring that Lists are set as Lists rather than Sets, and rewriting the documentation) - and adds TODO's for future enhancements which are intentionally not implemented in this PR, for example:

  • Fixing the schema so it better matches the API's (see the TODO's)
  • Rewriting/removing duplication from the tests
  • Any enhancements as a part of Bug Fixes/Enhancements to Application Gateway #1576 (although, this PR definitely makes that easier in the future).

Given this is a large-scale refactor - to make this easier to review I've tried to keep one commit per 'thing' - so there's a large number of small commits (which I'm hoping makes this simpler to review but ¯_(ツ)_/¯)

Fixes #1907
Fixes #2155

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Most of my comments are pretty minor, my only concern is how some of the waf variables are not dereferenced. Other then that LGTM 👍

azurerm/resource_arm_application_gateway.go Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
azurerm/resource_arm_application_gateway.go Outdated Show resolved Hide resolved
@tombuildsstuff
Copy link
Contributor Author

Tests pass:

screenshot 2018-11-12 at 15 40 29

@ghost
Copy link

ghost commented Mar 6, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants