~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/interfaces/branchcollection.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-18 00:32:33 UTC
  • mfrom: (13687.4.9 bug-826692)
  • Revision ID: launchpad@pqm.canonical.com-20110818003233-m7ip8f487fg3ssyu
[r=jtv][bug=826692] Preload related merge proposal data to reduce
        number of queries needed for rendering +activereviews page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        """
71
71
 
72
72
    def getMergeProposals(statuses=None, for_branches=None,
73
 
                          target_branch=None):
 
73
                          target_branch=None, eager_load=False):
74
74
        """Return a result set of merge proposals for the branches in this
75
75
        collection.
76
76
 
81
81
            branch is one of the branches specified.
82
82
        :param target_branch: If specified, only return merge proposals
83
83
            that target the specified branch.
 
84
        :param eager_load: If True, preloads all the related information for
 
85
            merge proposals like PreviewDiffs and Branches.
84
86
        """
85
87
 
86
88
    def getMergeProposalsForPerson(person, status=None):