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

Completeness changes / generation preparation for DevCenter #3152

Merged
merged 11 commits into from
Oct 12, 2023

Conversation

tombuildsstuff
Copy link
Contributor

This PR fixes several issues related to the DevCenter Service, notably:

  1. Introduces a placeholder Terraform Configuration for Dev Center, allowing the Dev Center and Dev Center Project resources to be generated once this PR has rolled out / DevCenter - scaffolding the Service Package to enable generation terraform-provider-azurerm#23530 has been merged
  2. Adds support to importer-rest-api-specs for Dev Center being a dependency
  3. Implements a Swagger workaround for devcenter: devCenterUri should be a read only field Azure/azure-rest-api-specs#26189
  4. Fixes a bug in generator-terraform where Optional SystemAndUserAssignedMap identities wouldn't get assigned correctly
  5. Fixes a bug in importer-rest-api-specs where a field name would be solely truncated to Uri - and whilst I investigated making this ServiceUri conflicting input from other packages means when this is truncated to just Uri, we should use the original name.
  6. Makes the DevCenterID field required for the Dev Center Project resource to workaround an API design issue where the DevCenterID is defaulted/implied - meaning that the resource could be created with the wrong DevCenterID - making this Required solves this issue.

…hat when a field is just called `uri` it gets updated to `service_uri`
…o conditionally handle `Uri`

Whilst `ServiceUri` does make sense from a consistency standpoint, other resources within the same Service package
can use the untrimmed name - as such when the trimmed field name is `Uri` for now let's just use the original name
…than an Integer for the name

There's a length limit on the API
…ould be output without `*`

The Identity types are always non-nil in the Typed Model and as such need to be dereferenced when optional
Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

One minor comment about the workaround description, otherwise LGTM 👍

@tombuildsstuff tombuildsstuff merged commit 48bbcd2 into main Oct 12, 2023
4 checks passed
@tombuildsstuff tombuildsstuff deleted the f/devcenter-updates branch October 12, 2023 13:01
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.

2 participants