-
Notifications
You must be signed in to change notification settings - Fork 10
Support changing property types of port_blueprint #255
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
Conversation
Added a flag that represents our current protection against changing the property type. When the flag is set to false, we delete the property before recreating it with the new type.
|
Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/15466912793/artifacts/3267640240Code Coverage Total Percentage:
|
🚨 The new code coverage percentage is lower than the current one. Current coverage: |
Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/15468097803/artifacts/3268128850Code Coverage Total Percentage:
|
🚨 The new code coverage percentage is lower than the current one. Current coverage: |
Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/15518448335/artifacts/3283582895Code Coverage Total Percentage:
|
🚨 The new code coverage percentage is lower than the current one. Current coverage: |
Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/15519703010/artifacts/3283847926Code Coverage Total Percentage:
|
🚨 The new code coverage percentage is lower than the current one. Current coverage: |
internal/cli/blueprint.go
Outdated
SetResult(&pb). | ||
Patch(url) | ||
if err != nil && resp == nil { | ||
return fmt.Errorf("failed to delete blueprint properties: %w", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the message is delete properties for the patch action?
internal/cli/blueprint.go
Outdated
return fmt.Errorf("failed to delete blueprint properties, got: %s", resp.Body()) | ||
} | ||
|
||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why nil and not the returned blueprint?
internal/cli/blueprint.go
Outdated
|
||
func (c *PortClient) PatchBlueprint(ctx context.Context, b *Blueprint) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used?
Code Coverage Artifact 📈: https://github.com/port-labs/terraform-provider-port-labs/actions/runs/15530800218/artifacts/3286754264Code Coverage Total Percentage:
|
Description
What - Support changing property types of port_blueprint
Why - Users expect to be able to change the property type.
How - Updated the old blueprint without the property to delete it before recreating it with the new type
Type of change
Please leave one option from the following and delete the rest: