l.b.m.bug : module documentation

Part of lp.bugs.model

Launchpad bug-related database table classes.
Function snapshot_bug_params Return a snapshot of a CreateBugParams object.
Class BugTag A tag belonging to a bug.
Function get_bug_tags_open_count Worker for IBugTarget.getUsedBugTagsWithOpenCounts.
Class BugBecameQuestionEvent See IBugBecameQuestionEvent.
Function update_bug_heat Update the heat for the specified bugs.
Class Bug A bug.
Function get_also_notified_subscribers Return the indirect subscribers for a bug or bug task.
Function load_people Get subscribers from subscriptions.
Class BugSubscriberSet A set of bug subscribers
Class BugSubscriptionSet A set of bug subscriptions.
Class StructuralSubscriptionSet A set of structural subscriptions.
Function freeze Return a decorator that wraps returned values with factory.
Class BugSubscriptionInfo Represents bug subscription sets.
Class BugSet See BugSet.
Class BugAffectsPerson A bug is marked as affecting a user.
Class BugMute Contains bugs a person has decided to block notifications from.
Function generate_subscription_with Undocumented
def snapshot_bug_params(bug_params):
Return a snapshot of a CreateBugParams object.
def get_bug_tags_open_count(context_condition, user, tag_limit=0, include_tags=None):
Worker for IBugTarget.getUsedBugTagsWithOpenCounts.

See `IBugTarget` for details.

The only change is that this function takes a SQL expression for limiting
the found tags.
:param context_condition: A Storm SQL expression, limiting the
    used tags to a specific context. Only the BugSummary table may be
    used to choose the context. If False then no query will be performed
    (and {} returned).
def update_bug_heat(bug_ids):
Update the heat for the specified bugs.
@ProxyFactory
def get_also_notified_subscribers(bug_or_bugtask, recipients=None, level=None):
Return the indirect subscribers for a bug or bug task.

Return the list of people who should get notifications about changes to the bug or task because of having an indirect subscription relationship with it (by subscribing to a target, being an assignee or owner, etc...)

If recipients is present, add the subscribers to the set of bug notification recipients.

def load_people(*where):
Get subscribers from subscriptions.

Also preloads ValidPersonCache records if they exist.

ParameterspeopleAn iterable sequence of Person IDs.
ReturnsA DecoratedResultSet of Person objects. The corresponding ValidPersonCache records are loaded simultaneously.
def freeze(factory):
Return a decorator that wraps returned values with factory.
def generate_subscription_with(bug, person):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.