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

fix(rs-workspace): add intermediary state checkpoints #29

Merged
merged 3 commits into from
Oct 3, 2024

Conversation

DariuszPorowski
Copy link
Member

πŸ“₯ Pull Request

❓ What are you trying to address

This pull request introduces a checkpoint mechanism for saving intermediary states in the fabric_workspace resource, which helps in improving the reliability of state management during create and update operations.

✨ Description of new changes

  • internal/services/workspace/resource_workspace.go:
    • func (r *resourceWorkspace) Create(ctx context.Context, req resource.CreateReque): Added intermediary state save checkpoints after creating the resource and before setting the final state.
    • func (r *resourceWorkspace) Update(ctx context.Context, req resource.UpdateReque): Introduced an intermediary variable to hold the state at different stages of the update process, and added checkpoints to save this intermediary state.

Copy link

github-actions bot commented Oct 3, 2024

Changelog Preview

v0.1.0-dev - October 03, 2024

πŸͺ² Fixed

  • #29 Add intermediary state checkpoints for fabric_workspace Resource

Copy link

github-actions bot commented Oct 3, 2024

Code Coverage

Package Line Rate Complexity Health
github.com/microsoft/terraform-provider-fabric/internal/auth 74% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/framework/customtypes 75% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/framework/planmodifiers 62% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/framework/typeutils 63% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/functions 72% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/fabricitem 80% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/transforms 62% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/pkg/utils 65% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider 86% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider/config 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/provider/utils 70% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/capacity 87% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/dashboard 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/datamart 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/datapipeline 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/domain 41% 0 βž–
github.com/microsoft/terraform-provider-fabric/internal/services/environment 86% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/eventhouse 84% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/eventstream 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/kqldatabase 78% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/kqlqueryset 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/lakehouse 82% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/mirroredwarehouse 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/mlexperiment 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/mlmodel 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/notebook 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/paginatedreport 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/report 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/semanticmodel 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/spark 74% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sparkjobdefinition 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/sqlendpoint 100% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/warehouse 84% 0 βœ”
github.com/microsoft/terraform-provider-fabric/internal/services/workspace 78% 0 βœ”
Summary 74% (3593 / 4881) 0 βœ”

Minimum allowed line rate is 40%

@DariuszPorowski DariuszPorowski added this to the 2024-10 milestone Oct 3, 2024
Copy link
Contributor

@hattan hattan left a comment

Choose a reason for hiding this comment

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

LGTM

DariuszPorowski added a commit that referenced this pull request Nov 13, 2024
## v0.1.0-beta.5 - November 13, 2024

### ✨ Added

*
[#46](#46)
New read-only properties in the `fabric_workspace` Resource/Data-Source:
`capacity_region`, `onelake_endpoints`

### πŸ’« Changed

*
[#32](#32)
Moved from az rest to fabric az-cli extension in the bash examples
*
[#46](#46)
Updated docs for possible values for `state` and `region` in the
`fabric_capacity` Data-Source.

### πŸͺ² Fixed

*
[#29](#29)
Add intermediary state checkpoints for `fabric_workspace` Resource
*
[#47](#47)
`fabric_lakehouse` Resource creation failed when
`configuration.enable_schemas` has been set to `false`
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