Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

fix(scim): use buildTwoPartID for data source IDs#60

Closed
vmvarela wants to merge 14 commits intomasterfrom
enterprise-scim
Closed

fix(scim): use buildTwoPartID for data source IDs#60
vmvarela wants to merge 14 commits intomasterfrom
enterprise-scim

Conversation

@vmvarela
Copy link
Copy Markdown
Owner

Summary

Changes

Replace fmt.Sprintf("%s/%s", ...) with buildTwoPartID() in both SCIM data sources. Separator changes from / to :. Unused "fmt" import removed from both files.

Tests

Acceptance tests passing: TestAccGithubEnterpriseSCIMUserDataSource, TestAccGithubEnterpriseSCIMGroupDataSource (4/4).

github-actions Bot and others added 14 commits March 20, 2026 13:46
Add util_enterprise_scim.go with helper functions for flattening
SCIM user and group data from the GitHub API.
Retrieve information about a single SCIM group by ID.

Includes:
- Data source implementation
- Acceptance tests
- Documentation
List all SCIM groups in an enterprise with optional filtering.

Includes:
- Data source implementation
- Acceptance tests
- Documentation
Retrieve information about a single SCIM user by ID.

Includes:
- Data source implementation
- Acceptance tests
- Documentation
List all SCIM users in an enterprise with optional filtering.

Includes:
- Data source implementation
- Acceptance tests
- Documentation
- Register 4 data sources in provider.go:
  - github_enterprise_scim_group
  - github_enterprise_scim_groups
  - github_enterprise_scim_user
  - github_enterprise_scim_users
Update import paths from go-github/v81 to go-github/v82 to match
the current version in upstream/main.
- Rename single-char variables (Rule #29): m→member, e→email, r→role,
  u→user, g→group
- Fix descriptions (Rule #2a): 'Lookup' → 'Retrieves' in all 4 data sources
- Fix ValidateFunc → ValidateDiagFunc (Rule #23) in users/groups
- Migrate tests from Check to ConfigStateChecks (Rule #31)
- Add unit tests for all flatten utility functions (Rule #33)
- Add sidebar entries for SCIM data sources in github.erb
Closes #33

- website/docs/d/enterprise.html.markdown
- website/docs/r/enterprise_organization.html.markdown

The 4 files listed in the issue were already correct. These 2 additional
files had the wrong capitalization in the enterprise-scim branch.
Replace fmt.Sprintf("%s/%s", ...) with buildTwoPartID() in both SCIM
data sources, consistent with project convention. Separator changes
from '/' to ':'. Remove unused 'fmt' import from both files.

Closes #53
fix(scim): use buildTwoPartID for data source IDs
@vmvarela vmvarela added the type:chore Maintenance, refactoring, tooling label Mar 23, 2026
@github-actions github-actions Bot added type:feature New functionality type:docs Documentation only labels Mar 23, 2026
@vmvarela
Copy link
Copy Markdown
Owner Author

Merged manually via squash commit to master (conflict resolution required). Changes from enterprise-scim are now in master.

@vmvarela vmvarela closed this Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type:chore Maintenance, refactoring, tooling type:docs Documentation only type:feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(scim): use buildTwoPartID for data source IDs

1 participant