Part of lp.code.interfaces.gitcollection View In Hierarchy
Known subclasses: lp.code.interfaces.gitcollection.IAllGitRepositories
IGitCollection is an immutable collection of Git repositories. It
has two kinds of methods: filter methods and query methods.
Implementations of this interface are not 'content classes'. That is, they do not correspond to a particular row in the database.
This interface is intended for use within Launchpad, not to be exported as a public API.
|Method||count||The number of repositories in this collection.|
|Method||is_empty||Is this collection empty?|
|Method||ownerCounts||Return the number of different repository owners.|
|Method||getRepositories||Return a result set of all repositories in this collection.|
|Method||getRepositoryIds||Return a result set of all repository ids in this collection.|
|Method||getMergeProposals||Return a result set of merge proposals for the repositories in|
|Method||getMergeProposalsForReviewer||Return a result set of merge proposals for the given reviewer.|
|Method||getRuleGrantsForGrantee||Return a result set of access grants to the given grantee.|
|Method||getTeamsWithRepositories||Return the teams that person is a member of that have|
|Method||inProject||Restrict the collection to repositories in 'project'.|
|Method||inProjectGroup||Restrict the collection to repositories in 'projectgroup'.|
|Method||inDistribution||Restrict the collection to repositories in 'distribution'.|
|Method||inDistributionSourcePackage||Restrict to repositories in a package for a distribution.|
|Method||isPersonal||Restrict the collection to personal repositories.|
|Method||isPrivate||Restrict the collection to private repositories.|
|Method||isExclusive||Restrict the collection to repositories owned by exclusive|
|Method||ownedBy||Restrict the collection to repositories owned by 'person'.|
|Method||ownedByTeamMember||Restrict the collection to repositories owned by 'person' or a|
|Method||registeredBy||Restrict the collection to repositories registered by 'person'.|
|Method||search||Search the collection for repositories matching 'term'.|
|Method||subscribedBy||Restrict the collection to repositories subscribed to by|
|Method||targetedBy||Restrict the collection to repositories targeted by person.|
|Method||visibleByUser||Restrict the collection to repositories that person is allowed to|
|Method||withIds||Restrict the collection to repositories with the specified ids.|
|Returns||a tuple (individual_count, team_count) containing the number of individuals and teams that own repositories in this collection.|
The returned result set will also join across the specified tables as defined by the arguments to this function. These extra tables are joined specifically to allow the caller to sort on values not in the GitRepository table itself.
|Parameters||eager_load||If True trigger eager loading of all the related objects in the collection.|
|order_by_date||If True, order results by descending modification date.|
|order_by_id||If True, order results by ascending ID.|
|Parameters||statuses||If specified, only return merge proposals with these statuses. If not, return all merge proposals.|
|target_repository||If specified, only return merge proposals that target the specified repository.|
|target_path||If specified, only return merge proposals that target the specified path.|
|prerequisite_repository||If specified, only return merge proposals that require a reference in the specified repository to be merged first.|
|prerequisite_path||If specified, only return merge proposals that require a reference with the specified path to be merged first.|
|eager_load||If True, preloads all the related information for merge proposals like PreviewDiffs and GitRepositories.|
Return the proposals for repositories owned by
person or where
person is reviewing or been asked to review.
That is, all merge proposals that 'reviewer' has voted on or has been invited to vote on.
|status||An iterable of queue_status of the proposals to return. If None is specified, all the proposals of all possible states are returned.|
A repository is targeted by a person if that person has registered a merge proposal with a reference in that repository as the target.
|Parameters||since||If supplied, ignore merge proposals before this date.|