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

Sorting resources in Farmer/Arm for ease of maintenance. #1098

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ninjarobot
Copy link
Collaborator

The changes in this PR are as follows:

  • Sorts modules for ARM resources in alphabetical order.

I have read the contributing guidelines and have completed the following:

  • Tested my code end-to-end against a live Azure subscription.
  • Updated the documentation in the docs folder for the affected changes.
  • Written unit tests against the modified code that I have made.
  • Updated the release notes with a new entry for this PR.
  • Checked the coding standards outlined in the contributions guide and ensured my code adheres to them.

@ninjarobot
Copy link
Collaborator Author

@isaacabraham the project has gotten pretty big and needs a little more organization. I made a few changes here to reduce the dependencies between IArmResource modules and allow most of them to be alphabetically sorted. What do you think? Any recommendations to make it easier to navigate?

Copy link
Member

@mattgallagher92 mattgallagher92 left a comment

Choose a reason for hiding this comment

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

Thanks @ninjarobot, looks a fair bit tidier! I have a few small queries (in other threads).

src/Farmer/Farmer.fsproj Show resolved Hide resolved

let fileShares =
ResourceType("Microsoft.Storage/storageAccounts/fileServices/shares", "2019-06-01")
let fileShares = ResourceTypes.Storage.fileServices
Copy link
Member

Choose a reason for hiding this comment

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

Looks like this is wrong? I don't think it should be the same as the value above.

let routeTables = ResourceType("Microsoft.Network/routeTables", "2021-01-01")
let routes = ResourceType("Microsoft.Network/routeTables/routes", "2021-01-01")

let routeServers = ResourceType("Microsoft.Network/virtualHubs", "2022-11-01")
Copy link
Member

Choose a reason for hiding this comment

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

routeServers and virtualHubs sound quite different. What's the reason for the discrepancy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants