test(orgs): hold the agent-assignment contract the Agents tab reads

This commit is contained in:
sam committed 2026-10-27 02:45:35 +11:00
1 parent 58629ea03a
commit dfce3360b2
1 file changed
+7 -2
@@ -8,8 +8,13 @@ import (
"github.com/samcharles93/archie-core/internal/domain/org"
)
// The Client serves the dashboard's org surface over the contract.
var _ org.API = (*Client)(nil)
// The Client serves the dashboard's org surface over the contract. The
// assignment list is a separate contract from the org API, and it is the one
// the Agents tab reads: proving it here keeps that page from answering 503.
var (
_ org.API = (*Client)(nil)
_ org.AgentAssignments = (*Client)(nil)
)
func (c *Client) CreateOrg(ctx context.Context, value org.Org, owner identity.IdentityID) (org.Org, error) {
r, err := c.org.CreateOrg(ctx, &pb.CreateOrgRequest{Id: string(value.ID), Name: value.Name, OwnerIdentityId: string(owner)})