l.c.i.h.IHasMergeProposals(Interface) : interface documentation

Part of lp.code.interfaces.hasbranches View In Hierarchy

Known subclasses: lp.code.interfaces.branch.IBranchView, lp.code.interfaces.gitref.IGitRefView, lp.registry.interfaces.person.IPersonViewRestricted, lp.registry.interfaces.personproduct.IPersonProduct, lp.registry.interfaces.product.IProductView, lp.registry.interfaces.projectgroup.IProjectGroupPublic, lp.registry.interfaces.sourcepackage.ISourcePackagePublic, lp.registry.interfaces.webservice.IDistributionSourcePackage

Some things have related merge proposals.

This interface defines the common methods for getting merge proposals for the objects that implement this interface.

Method getMergeProposals Returns all merge proposals of a given status.
@operation_parameters(List(_('A list of merge proposal statuses to filter by.'), Choice(BranchMergeProposalStatus)))
@call_with(REQUEST_USER, True)
@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('beta')
def getMergeProposals(status=None, visible_by_user=None, eager_load=False):
Returns all merge proposals of a given status.
ParametersstatusA list of statuses to filter with.
visible_by_userNormally the user who is asking.
eager_loadIf True, load related objects for the whole collection.
ReturnsA list of IBranchMergeProposal.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.