l.b.s.bugsummaryrebuild : module documentation

Part of lp.bugs.scripts

No module docstring
Class RawBugSummary Like BugSummary, except based on the raw DB table.
Class BugSummaryJournal Just the necessary columns of BugSummaryJournal.
Function get_bugsummary_targets Get the current set of targets represented in BugSummary.
Function get_bugtask_targets Get the current set of targets represented in BugTask.
Function load_target Undocumented
Function format_target Undocumented
Function get_bugsummary_constraint Convert an IBugTarget to a list of constraints on RawBugSummary.
Function get_bugtaskflat_constraint Convert an IBugTarget to a list of constraints on BugTaskFlat.
Function get_bugsummary_rows Find the RawBugSummary rows for the given IBugTarget.
Function get_bugsummaryjournal_rows Find the BugSummaryJournal rows for the given IBugTarget.
Function calculate_bugsummary_changes Calculate the changes between between the new and old dicts.
Function apply_bugsummary_changes Apply a set of BugSummary changes to the DB.
Function rebuild_bugsummary_for_target Undocumented
Function calculate_bugsummary_rows Calculate BugSummary row fragments for the given IBugTarget.
Class BugSummaryRebuildTunableLoop Undocumented
Function _get_bugsummary_constraint_bits Undocumented
def get_bugsummary_targets():
Get the current set of targets represented in BugSummary.
def get_bugtask_targets():
Get the current set of targets represented in BugTask.
def load_target(pid, psid, did, dsid, spnid):
Undocumented
def format_target(target):
Undocumented
def _get_bugsummary_constraint_bits(target):
Undocumented
def get_bugsummary_constraint(target, cls=RawBugSummary):
Convert an IBugTarget to a list of constraints on RawBugSummary.
def get_bugtaskflat_constraint(target):
Convert an IBugTarget to a list of constraints on BugTaskFlat.
def get_bugsummary_rows(target):
Find the RawBugSummary rows for the given IBugTarget.

RawBugSummary is the bugsummary table in the DB, not to be confused with BugSummary which is actually combinedbugsummary, a view over bugsummary and bugsummaryjournal.

def get_bugsummaryjournal_rows(target):
Find the BugSummaryJournal rows for the given IBugTarget.
def calculate_bugsummary_changes(old, new):
Calculate the changes between between the new and old dicts.

Takes {key: int} dicts, returns items from the new dict that differ from the old one.

def apply_bugsummary_changes(target, added, updated, removed):
Apply a set of BugSummary changes to the DB.
def rebuild_bugsummary_for_target(target, log):
Undocumented
def calculate_bugsummary_rows(target):
Calculate BugSummary row fragments for the given IBugTarget.

The data is re-aggregated from BugTaskFlat, BugTag and BugSubscription.

API Documentation for Launchpad, generated by pydoctor at 2018-10-17 00:00:11.