MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / query

Method query

app/controlplane/pkg/data/orginvitation.go:115–117  ·  view source on GitHub ↗

Full query of non-deleted invites with all edges loaded

()

Source from the content-addressed store, hash-verified

113
114// Full query of non-deleted invites with all edges loaded
115func (r *OrgInvitation) query() *ent.OrgInvitationQuery {
116 return r.data.DB.OrgInvitation.Query().WithOrganization().WithSender().Where(orginvitation.DeletedAtIsNil())
117}
118
119func (r *OrgInvitation) FindByID(ctx context.Context, id uuid.UUID) (*biz.OrgInvitation, error) {
120 ctx, span := otelx.Start(ctx, orgInvitationRepoTracer, "OrgInvitation.FindByID")

Callers 4

PendingInvitationMethod · 0.95
PendingInvitationsMethod · 0.95
FindByIDMethod · 0.95
ListByOrgMethod · 0.95

Calls 5

DeletedAtIsNilFunction · 0.92
WithSenderMethod · 0.80
WhereMethod · 0.45
WithOrganizationMethod · 0.45
QueryMethod · 0.45

Tested by

no test coverage detected