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

Temporarily revert validation of urn/id output properties #15025

Merged
merged 1 commit into from Jan 3, 2024

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Jan 2, 2024

Partial temporary revert of 8b26393 (keeping a test that can be kept).

The validation is currently preventing the use of id as an output property for packaged components (i.e. MLCs), which wasn't originally considered when adding this validation. We do want to be able to support id properties for components, so when we do subsequently add back the validation, we'll do so in a way that doesn't prevent that.

Part of #15024

Partial temporary revert of 8b26393 (keeping a test that can be kept).

The validation is currently preventing the use of `id` as an output property for packaged components (i.e. MLCs), which wasn't originally considered when adding this validation. We do want to be able to support `id` properties for components, so when we do subsequently add back the validation, we'll do so in a way that doesn't prevent that.
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2024-01-02)

Bug Fixes

  • [sdkgen] Temporarily revert validation of urn and id resource output properties
    #15025

@justinvp justinvp added this pull request to the merge queue Jan 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 3, 2024
@justinvp justinvp added this pull request to the merge queue Jan 3, 2024
Merged via the queue into master with commit ea7be02 Jan 3, 2024
52 of 53 checks passed
@justinvp justinvp deleted the justin/revert-urn-id-validate branch January 3, 2024 04:08
github-merge-queue bot pushed a commit that referenced this pull request Jan 4, 2024
Draft changelog:

### Features

- [auto/{go,nodejs,python}] Adds ListEnvironments support to Go, Nodejs
and Python Automation API.
  [#14995](#14995)

- [cli/display] Warn correctly about new versions being availablen when
using the CLI dev channel
  [#14954](#14954)


### Bug Fixes

- [engine] Fix bug where unimported resources (of different types) with
the same name would cause `--import-file` to panic.
  [#15008](#15008)

- [engine] Default parallel operations to a reasonable limit.

- [programgen] Fixes type-annotating nested resource properties when
these have quoted keys
  [#15001](#15001)

- [sdkgen] Temporarily revert validation of `urn` and `id` resource
output properties
  [#15025](#15025)

- [programgen/{dotnet,python}] Allow object keys to be template
expressions such as static quoted strings
  [#15000](#15000)

- [backend/service] Exclude internal events from those sent to Pulumi
Cloud.
  [#14972](#14972)

- [sdk/go] fixes fulfillValue error when joining a nil output state
  [#14949](#14949)


### Miscellaneous

- [pkg] Upgrade pulumi-java to v0.9.9
  [#15007](#15007)

- [yaml] Upgrade yaml to v1.4.5
  [#15007](#15007)
@justinvp justinvp mentioned this pull request Jan 4, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jan 4, 2024
### Features

- [auto/{go,nodejs,python}] Adds ListEnvironments support to Go, Nodejs
and Python Automation API.
  [#14995](#14995)

- [cli/display] Warn correctly about new versions being availablen when
using the CLI dev channel
  [#14954](#14954)


### Bug Fixes

- [cli/new] Fixes duplicate printing of the AI prompt & answer on
Windows.

- [engine] Fix bug where unimported resources (of different types) with
the same name would cause `--import-file` to panic.
  [#15008](#15008)

- [engine] Default parallel operations to a reasonable limit.
  [#15016](#15016)

- [programgen] Fixes type-annotating nested resource properties when
these have quoted keys
  [#15001](#15001)

- [sdkgen] Temporarily revert validation of `urn` and `id` resource
output properties
  [#15025](#15025)

- [programgen/{dotnet,python}] Allow object keys to be template
expressions such as static quoted strings
  [#15000](#15000)

- [backend/service] Exclude internal events from those sent to Pulumi
Cloud.
  [#14972](#14972)

- [sdk/go] fixes fulfillValue error when joining a nil output state
  [#14949](#14949)


### Miscellaneous

- [pkg] Upgrade pulumi-java to v0.9.9
  [#15007](#15007)

- [yaml] Upgrade yaml to v1.4.5
  [#15007](#15007)
github-merge-queue bot pushed a commit that referenced this pull request Jan 18, 2024
…15060)

# Description

Emits a warning when binding properties of resources if we encounter a
property with name `urn` or when we encounter a property with name `id`
(only for resources which are not components / MLCs). This is a follow
up PR for #15025

## Checklist

- [ ] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
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

3 participants