You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
feat(enterprise_team): address PR review feedback and improve code quality
Address code review feedback from @deiga and improve enterprise team resources.
## Changes
### Schema improvements
- Separate enterprise_team field into team_slug and team_id with ExactlyOneOf
validation for membership and organizations resources
- Align data source naming with resources (enterprise_team → team_slug)
- Fix ExactlyOneOf in data_source_github_enterprise_team (must include both fields)
- Add validation for slug field in data source
### Code quality
- Remove Read-after-Create/Update pattern, set computed fields directly from API response
- Remove unused findEnterpriseTeamBySlugOrID function
- Move shared helpers to util_enterprise_teams.go
- Use "/" as ID separator instead of ":" (team slugs contain ":")
- Handle errors properly in Import function
### Bug fixes
- Add 404 handling in Delete for membership and organizations resources
- Fix group_id clearing (now sends empty string to API)
- Preserve team_id in state when user configures via team_id
- Fix Read drift when user configures team_id instead of team_slug
### Testing
- Eliminate redundant testCase wrapper pattern in tests
- Add MinItems validation test for organization_slugs
- All 8 acceptance tests passing
### Documentation
- Update docs for new team_slug/team_id schema
0 commit comments