MCPcopy Index your code
hub / github.com/rilldata/rill / FindProjectsForOrgAndUser

Method FindProjectsForOrgAndUser

admin/database/database.go:84–84  ·  view source on GitHub ↗

FindProjectsForOrgAndUser lists the public projects in the org and the projects where user is added as an external user. When includeGroups is true, projects accessible through usergroup membership are also included.

(ctx context.Context, orgID, userID string, includePublic, includeGroups bool, afterProjectName string, limit int)

Source from the content-addressed store, hash-verified

82 // FindProjectsForOrgAndUser lists the public projects in the org and the projects where user is added as an external user.
83 // When includeGroups is true, projects accessible through usergroup membership are also included.
84 FindProjectsForOrgAndUser(ctx context.Context, orgID, userID string, includePublic, includeGroups bool, afterProjectName string, limit int) ([]*Project, error)
85 FindPublicProjectsInOrganization(ctx context.Context, orgID, afterProjectName string, limit int) ([]*Project, error)
86 FindProjectsByGitRemote(ctx context.Context, remote string) ([]*Project, error)
87 FindProjectsByGithubInstallationID(ctx context.Context, id int64) ([]*Project, error)

Calls

no outgoing calls

Tested by 1