MCPcopy Index your code
hub / github.com/coder/coder / getWorkspaceOwnerData

Method getWorkspaceOwnerData

coderd/dynamicparameters/render.go:263–275  ·  view source on GitHub ↗
(ctx context.Context, ownerID uuid.UUID)

Source from the content-addressed store, hash-verified

261}
262
263func (r *dynamicRenderer) getWorkspaceOwnerData(ctx context.Context, ownerID uuid.UUID) error {
264 if r.currentOwner != nil && r.currentOwner.ID == ownerID.String() {
265 return nil // already fetched
266 }
267
268 owner, err := WorkspaceOwner(ctx, r.db, r.data.templateVersion.OrganizationID, ownerID)
269 if err != nil {
270 return err
271 }
272
273 r.currentOwner = owner
274 return nil
275}
276
277func (r *dynamicRenderer) Close() {
278 r.once.Do(r.close)

Callers 1

RenderMethod · 0.95

Calls 2

WorkspaceOwnerFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected