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

[PF] Allow overriding Number with String for PF fields #2155

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Jul 2, 2024

This is motivated by terraform-provider-vantage blocked on numeric ID support #1198. My plan for #1198 is to override the "id" fields of each resource to be a "string", which is how we currently handle SDK based providers with the same problem.

@iwahbe iwahbe self-assigned this Jul 2, 2024
Copy link

codecov bot commented Jul 2, 2024

Codecov Report

Attention: Patch coverage is 59.52381% with 51 lines in your changes missing coverage. Please review.

Project coverage is 60.65%. Comparing base (7ce57cb) to head (39b6e26).
Report is 1 commits behind head on master.

Files Patch % Lines
...nternal/testprovider/testbridge_resource_int_id.go 53.70% 21 Missing and 4 partials ⚠️
pkg/convert/adapter.go 75.00% 6 Missing and 3 partials ⚠️
pkg/convert/encoding.go 46.15% 6 Missing and 1 partial ⚠️
pf/internal/check/checks.go 25.00% 6 Missing ⚠️
pf/internal/check/not_supported.go 0.00% 3 Missing ⚠️
pkg/convert/schema_context.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #2155    +/-   ##
========================================
  Coverage   60.65%   60.65%            
========================================
  Files         350      352     +2     
  Lines       45930    46050   +120     
========================================
+ Hits        27857    27930    +73     
- Misses      16533    16573    +40     
- Partials     1540     1547     +7     

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

@iwahbe iwahbe force-pushed the iwahbe/enable-int-id-for-pf branch from d14eebf to 104494b Compare July 16, 2024 16:58
@iwahbe iwahbe force-pushed the iwahbe/enable-int-id-for-pf branch from 104494b to 752fc0b Compare July 16, 2024 17:07
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 16, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 16, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 16, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 16, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 16, 2024
@iwahbe iwahbe merged commit c975862 into master Jul 16, 2024
11 checks passed
@iwahbe iwahbe deleted the iwahbe/enable-int-id-for-pf branch July 16, 2024 22:52
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v3.87.0.

iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 17, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 17, 2024
iwahbe added a commit to pulumi/pulumi-dnsimple that referenced this pull request Jul 19, 2024
* WIP Initial mapping to PF

* Apply ID type overrides

Depends on pulumi/pulumi-terraform-bridge#2155.

* make build_sdks

* Add explanation in resources.go for the ID insertion

* Remove the overlay in favor of extra types
@mjeffryes mjeffryes added this to the 0.107 milestone Jul 24, 2024
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.

4 participants