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

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

Known subclasses: lp.registry.interfaces.person.IPersonViewRestricted

IPersons can have reviews requested of them in merge proposals.

This interface defines the common methods for getting these merge proposals for a particular person.

Method getRequestedReviews Returns merge proposals where a person was asked to review.
Method getOwnedAndRequestedReviews Returns merge proposals for branches owned by a person, or where
@operation_parameters(List(_('A list of merge proposal statuses to filter by.'), Choice(BranchMergeProposalStatus)))
@call_with(REQUEST_USER)
@operation_returns_collection_of(Interface)
@export_read_operation()
@operation_for_version('beta')
def getRequestedReviews(status=None, visible_by_user=None):
Returns merge proposals where a person was asked to review.

This does not include merge proposals that were requested from teams that the person is part of. If status is not passed then it will return proposals that are in the "Needs Review" state.

ParametersstatusA list of statuses to filter with.
visible_by_userNormally the user who is asking.
ReturnsA list of IBranchMergeProposal.
def getOwnedAndRequestedReviews(status=None, visible_by_user=None, project=None):
Returns merge proposals for branches owned by a person, or where that person was asked to review.

This does not include merge proposals that were requested from teams that the person is part of. If status is not passed then it will return proposals that are in the "Needs Review" state.

ParametersstatusA list of statuses to filter with.
visible_by_userNormally the user who is asking.
projectLimit results to branches for this IProduct.
ReturnsA list of IBranchMergeProposal.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.