MCPcopy Index your code
hub / github.com/chainloop-dev/chainloop / orgScopedQuery

Function orgScopedQuery

app/controlplane/pkg/data/data.go:165–167  ·  view source on GitHub ↗
(client *ent.Client, orgID uuid.UUID)

Source from the content-addressed store, hash-verified

163}
164
165func orgScopedQuery(client *ent.Client, orgID uuid.UUID) *ent.OrganizationQuery {
166 return client.Organization.Query().Where(organization.ID(orgID), organization.DeletedAtIsNil())
167}
168
169// WithTx initiates a transaction and wraps the DB function
170func WithTx(ctx context.Context, client *ent.Client, fn func(tx *ent.Tx) error) error {

Callers 15

ListMethod · 0.85
GetOrgScopedMethod · 0.85
ListMethod · 0.85
FindByIDInOrgMethod · 0.85
RevokeMethod · 0.85
ListMethod · 0.85
ListMethod · 0.85
FindDefaultBackendMethod · 0.85
FindFallbackBackendMethod · 0.85
FindInlineBackendMethod · 0.85

Calls 4

IDFunction · 0.92
DeletedAtIsNilFunction · 0.92
WhereMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected