GetWorkspaceResourcesByJobIDs is only used for workspace build data. The workspace is already fetched. TODO: Find a way to replace this with proper authz.
(ctx context.Context, ids []uuid.UUID)
| 5332 | // The workspace is already fetched. |
| 5333 | // TODO: Find a way to replace this with proper authz. |
| 5334 | func (q *querier) GetWorkspaceResourcesByJobIDs(ctx context.Context, ids []uuid.UUID) ([]database.WorkspaceResource, error) { |
| 5335 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
| 5336 | return nil, err |
| 5337 | } |
| 5338 | return q.db.GetWorkspaceResourcesByJobIDs(ctx, ids) |
| 5339 | } |
| 5340 | |
| 5341 | func (q *querier) GetWorkspaceResourcesCreatedAfter(ctx context.Context, createdAt time.Time) ([]database.WorkspaceResource, error) { |
| 5342 | if err := q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceSystem); err != nil { |
nothing calls this directly
no test coverage detected