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

Allow delegating IDs to nested properties #1968

Merged
merged 2 commits into from
May 13, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented May 13, 2024

Exposes a more general form of DelegateIDField: DelegateIDProperty. DelegateIDProperty allows delegating to any property in state, not just top level properties.

Needed by pulumi/pulumi-meraki#5.

@iwahbe iwahbe self-assigned this May 13, 2024
iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.
Copy link

codecov bot commented May 13, 2024

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 60.55%. Comparing base (d57cd0e) to head (98745dd).

Files Patch % Lines
pkg/tfbridge/info.go 70.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1968      +/-   ##
==========================================
- Coverage   60.56%   60.55%   -0.01%     
==========================================
  Files         331      331              
  Lines       44726    44728       +2     
==========================================
- Hits        27090    27087       -3     
- Misses      16113    16118       +5     
  Partials     1523     1523              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.
@iwahbe iwahbe merged commit ef5aded into master May 13, 2024
11 checks passed
@iwahbe iwahbe deleted the iwahbe/allow-delegating-ids-to-nested-properties branch May 13, 2024 21:17
iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.
iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
* Normalize ID Application

This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.

* Simplify the ID field selection algorithm

Thanks @mjeffryes for the
suggestion. (#5 (comment))
iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
* Normalize ID Application

This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.

* Simplify the ID field selection algorithm

Thanks @mjeffryes for the
suggestion. (#5 (comment))
iwahbe added a commit to pulumi/pulumi-meraki that referenced this pull request May 13, 2024
* Normalize ID Application

This reduces the manual work for incoming resources as much as possible.

It also fixes two
resources ("meraki_administered_licensing_subscription_subscriptions_claim", "meraki_administered_licensing_subscription_subscriptions_claim_key_validate") that would
not have worked in practice (since their ID did not exist).

This PR introduces a dependency on
pulumi/pulumi-terraform-bridge#1968.

* Simplify the ID field selection algorithm

Thanks @mjeffryes for the
suggestion. (#5 (comment))
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