Feat v0.9.4 package adoption roles (#78)
All checks were successful
CI/CD / detect-changes (push) Successful in 3s
CI/CD / test-frontend (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-go-pg (push) Successful in 2m55s
CI/CD / test-sqlite (push) Successful in 3m7s
CI/CD / build-and-deploy (push) Successful in 1m19s
All checks were successful
CI/CD / detect-changes (push) Successful in 3s
CI/CD / test-frontend (push) Has been skipped
CI/CD / test-runners (push) Has been skipped
CI/CD / e2e-smoke (push) Has been skipped
CI/CD / test-go-pg (push) Successful in 2m55s
CI/CD / test-sqlite (push) Successful in 3m7s
CI/CD / build-and-deploy (push) Successful in 1m19s
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #78.
This commit is contained in:
@@ -208,6 +208,23 @@ type TeamStore interface {
|
||||
|
||||
// RemoveAllUserRoles deletes all additional roles for a member (cleanup on removal).
|
||||
RemoveAllUserRoles(ctx context.Context, teamID, userID string) error
|
||||
|
||||
// ── v0.9.4 — Team Role Catalog ──
|
||||
|
||||
// AddRoleToCatalog registers a known role for the team. Idempotent.
|
||||
AddRoleToCatalog(ctx context.Context, teamID, role, sourcePkgID string) error
|
||||
|
||||
// ListRoleCatalog returns all known roles for a team.
|
||||
ListRoleCatalog(ctx context.Context, teamID string) ([]TeamRoleCatalogEntry, error)
|
||||
|
||||
// RemoveRoleCatalogBySource removes all catalog entries sourced from a package.
|
||||
RemoveRoleCatalogBySource(ctx context.Context, teamID, sourcePkgID string) error
|
||||
}
|
||||
|
||||
// TeamRoleCatalogEntry represents a known role sourced from an adopted package.
|
||||
type TeamRoleCatalogEntry struct {
|
||||
Role string `json:"role"`
|
||||
SourcePackageID string `json:"source_package_id,omitempty"`
|
||||
}
|
||||
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user