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

Function HasProjectWith

app/controlplane/pkg/data/ent/workflow/where.go:851–860  ·  view source on GitHub ↗

HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).

(preds ...predicate.Project)

Source from the content-addressed store, hash-verified

849
850// HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
851func HasProjectWith(preds ...predicate.Project) predicate.Workflow {
852 return predicate.Workflow(func(s *sql.Selector) {
853 step := newProjectStep()
854 sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
855 for _, p := range preds {
856 p(s)
857 }
858 })
859 })
860}
861
862// HasLatestWorkflowRun applies the HasEdge predicate on the "latest_workflow_run" edge.
863func HasLatestWorkflowRun() predicate.Workflow {

Callers 2

applyWorkflowFiltersFunction · 0.92
projectScopePredicateMethod · 0.92

Calls 2

WorkflowFuncType · 0.92
newProjectStepFunction · 0.70

Tested by

no test coverage detected