Skip to content

Conversation

@RobertKielty
Copy link
Collaborator

  • adds new DB entities Foundation and StaffMember so staff are stored separately from maintainers and linked to a foundation (CNCF or LF): model/main.go:134.
    • Bootstrap now migrates and seeds staff data: - Auto-migrates Foundation + StaffMember: db/bootstrap.go:56 - Loads staff from Staff!A:F and associates each row with a Foundation: db/bootstrap.go:242 - Generalized readSheetRows to accept an explicit sheet range and configurable “carry-forward” columns: db/bootstrap.go:342
    • Fixed a GORM migration bug by defining FoundationOfficer.Services as an explicit many-to-many relationship: model/main.go:203.
    • Authorization updates for onboarding issue commands:
      • Added SQLStore.IsStaffGitHubAccount to check if a GitHub login is a staff member: db/store_impl.go:195
      • /label can be run by staff as well as maintainers: onboarding/ server.go:323 - /fossa-invite accepted can be run by staff as well as maintainers/ assignees (via a shared helper): onboarding/server.go:70, onboarding/server.go:137 - Tests updated/added to include staff models + verify staff authorization: onboarding/test_helpers.go:22, onboarding/ server_test.go:410

- adds new DB entities Foundation and StaffMember so staff are stored
    separately from maintainers and linked to a foundation (CNCF or LF):
    model/main.go:134.
  - Bootstrap now migrates and seeds staff data:
      - Auto-migrates Foundation + StaffMember: db/bootstrap.go:56
      - Loads staff from Staff!A:F and associates each row with a
        Foundation: db/bootstrap.go:242
      - Generalized readSheetRows to accept an explicit sheet range and
        configurable “carry-forward” columns: db/bootstrap.go:342
  - Fixed a GORM migration bug by defining FoundationOfficer.Services as an
    explicit many-to-many relationship: model/main.go:203.
  - Authorization updates for onboarding issue commands:
      - Added SQLStore.IsStaffGitHubAccount to check if a GitHub login is a
        staff member: db/store_impl.go:195
      - /label can be run by staff as well as maintainers: onboarding/
        server.go:323
      - /fossa-invite accepted can be run by staff as well as maintainers/
        assignees (via a shared helper): onboarding/server.go:70,
        onboarding/server.go:137
      - Tests updated/added to include staff models + verify staff
        authorization: onboarding/test_helpers.go:22, onboarding/
        server_test.go:410

Signed-off-by: Robert Kielty <[email protected]>
  - .golangci.yml:1 (remove run.skip-dirs, add exclusions for .modcache/.gocache)
  - cmd/sync/main.go:59 (handle errors from AddToScheme)

Signed-off-by: Robert Kielty <[email protected]>
errors reported on make ci-local & PR Checks Tests / Lint(pull_request)
Signed-off-by: Robert Kielty <[email protected]>
Added a new StaffMember API resource and wired it end‑to‑end.
The API types now include StaffMember StaffMemberList plus spec/status and addKnownTypes registers it.

The sync job now pulls staff from the DB and creates/updates StaffMember CRDs, using a new ListStaffMembers store method with Foundation preloaded.
Generated artifacts were updated via make kcp-generate:
  a new CRD at config/crd/bases/maintainer-d.cncf.io_staffmembers.yaml,
  a new KCP schema at config/kcp/schema-staffmembers.yaml,
  and the APIExport plus other schema files were regenerated to include the new resource.

Signed-off-by: Robert Kielty <[email protected]>
@RobertKielty RobertKielty merged commit 97b8272 into main Dec 30, 2025
6 checks passed
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