MCPcopy Create free account
hub / github.com/PostHog/duckgres / UpsertManagedWarehouse

Method UpsertManagedWarehouse

controlplane/admin/api_test.go:161–171  ·  view source on GitHub ↗
(orgID string, warehouse *configstore.ManagedWarehouse)

Source from the content-addressed store, hash-verified

159 return configstore.ErrOrgTeamSchemaConflict
160 }
161 }
162 team.OrgID = orgID
163 s.seedTeam(*team)
164 return nil
165}
166
167func (s *fakeAPIStore) UpdateOrgTeam(orgID string, teamID int64, upd orgTeamUpdate) (*configstore.OrgTeam, *configstore.OrgTeam, error) {
168 team, ok := s.teams[orgID][teamID]
169 if !ok {
170 return nil, nil, configstore.ErrOrgTeamNotFound
171 }
172 prev := *team
173 if upd.SchemaName != nil && *upd.SchemaName != team.SchemaName {
174 for _, t := range s.teams[orgID] {

Callers

nothing calls this directly

Calls 1

copyWarehouseFunction · 0.85

Tested by

no test coverage detected