-
Notifications
You must be signed in to change notification settings - Fork 16
feat(workspace): add capability to assign domain id to workspace #738
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
base: main
Are you sure you want to change the base?
Conversation
Changelog Previewv1.6.1-dev - December 03, 2025β¨ Added
πͺ² Fixed
|
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.
Pull Request Overview
This PR adds the capability to assign a domain ID to a workspace in the fabric_workspace resource and data sources. The implementation allows users to assign, update, and unassign domains from workspaces.
Key changes:
- Added
domain_idattribute to workspace schema as an optional UUID field - Implemented domain assignment/unassignment logic in Create and Update operations
- Added comprehensive test coverage for domain CRUD operations
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| internal/services/workspace/schema.go | Added domain_id SuperStringAttribute with UUID type validation, following the same pattern as capacity_id |
| internal/services/workspace/models.go | Added DomainID field to workspace models and created assignWorkspaceToDomainRequest helper struct |
| internal/services/workspace/resource_workspace.go | Implemented domain assignment in Create operation and domain assignment/unassignment in Update operation |
| internal/services/workspace/resource_workspace_test.go | Added unit test for invalid UUID validation and comprehensive acceptance test for domain CRUD operations |
| docs/resources/workspace.md | Updated resource documentation to include the new domain_id optional attribute |
| docs/data-sources/workspace.md | Updated data source documentation to include the new domain_id read-only attribute |
| docs/data-sources/workspaces.md | Updated data sources list documentation to include the new domain_id read-only attribute |
| .changes/unreleased/added-20251120-142738.yaml | Added changelog entry for the new feature |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
5489056 to
65b89e4
Compare
| }, | ||
| Resource: &schemaR.StringAttribute{ | ||
| Optional: true, | ||
| Computed: true, |
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 computed? should be removed.
in resource, it's not computed, only in datasource
Minimum allowed line rate is |
π₯ Pull Request
β What are you trying to address
Add capability to
fabric_workspaceto assign domain id to a workspaceThis closes #659