l.b.m.b.BugTask(SQLBase) : class documentation

Part of lp.bugs.model.bugtask View In Hierarchy

See IBugTask.
Method status Undocumented
Method title See IBugTask.
Method bug_subscribers See IBugTask.
Method bugtargetname See IBugTask.
Method target See IBugTask.
Method related_tasks See IBugTask.
Method pillar See IBugTask.
Method other_affected_pillars See IBugTask.
Method bugtargetdisplayname See IBugTask.
Method age See IBugTask.
Method task_age See IBugTask.
Method is_complete See IBugTask.
Method canBeDeleted Undocumented
Method checkCanBeDeleted Undocumented
Method delete See IBugTask.
Method findSimilarBugs See IBugTask.
Method subscribe See IBugTask.
Method isSubscribed See IBugTask.
Method getContributorInfo See IBugTask.
Method getConjoinedMaster See IBugTask.
Method conjoined_master See IBugTask.
Method conjoined_slave See IBugTask.
Method transitionToMilestone See IBugTask.
Method transitionToImportance See IBugTask.
Method maybeConfirm Maybe confirm this bugtask.
Method canTransitionToStatus See IBugTask.
Method transitionToStatus See IBugTask.
Method userCanSetAnyAssignee See IBugTask.
Method userCanUnassign See IBugTask.
Method canTransitionToAssignee See IBugTask.
Method transitionToAssignee See IBugTask.
Method validateTransitionToTarget See IBugTask.
Method transitionToTarget See IBugTask.
Method updateTargetNameCache See IBugTask.
Method getPackageComponent See IBugTask.
Method asEmailHeaderValue See IBugTask.
Method getDelta See IBugTask.
Class Method userHasDriverPrivilegesContext Does the user have driver privileges for the given context?
Class Method userHasBugSupervisorPrivilegesContext Does the user have bug supervisor privileges for the given
Method userHasDriverPrivileges See IBugTask.
Method userHasBugSupervisorPrivileges See IBugTask.
Method __repr__ Undocumented
Method _syncSourcePackages Synchronize changes to source packages with other distrotasks.
Method _get_shortlisted_bugtasks Undocumented
Method _syncFromConjoinedSlave Ensure the conjoined master is synched from its slave.
Method _checkAutoconfirmFeatureFlag Does a feature flag enable automatic switching of our bugtasks?
Method _setStatusDateProperties Undocumented

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented
@property
def status(self):
Undocumented
@property
def title(self):
See IBugTask.
@property
def bug_subscribers(self):
See IBugTask.
@property
def bugtargetname(self):
See IBugTask.
@property
def target(self):
See IBugTask.
@property
def related_tasks(self):
See IBugTask.
@property
def pillar(self):
See IBugTask.
@property
def other_affected_pillars(self):
See IBugTask.
@property
def bugtargetdisplayname(self):
See IBugTask.
@property
def age(self):
See IBugTask.
@property
def task_age(self):
See IBugTask.
@property
def is_complete(self):
See IBugTask.

Note that this should be kept in sync with the completeness_clause above.

def canBeDeleted(self):
Undocumented
def checkCanBeDeleted(self):
Undocumented
def delete(self, who=None):
See IBugTask.
def findSimilarBugs(self, user, limit=10):
See IBugTask.
def subscribe(self, person, subscribed_by):
See IBugTask.
def isSubscribed(self, person):
See IBugTask.
def _syncSourcePackages(self, new_spn, user):
Synchronize changes to source packages with other distrotasks.

If one distroseriestask's source package is changed, all the other distroseriestasks with the same distribution and source package has to be changed, as well as the corresponding distrotask.

def getContributorInfo(self, user, person):
See IBugTask.
def getConjoinedMaster(self, bugtasks, bugtasks_by_package=None):
See IBugTask.
def _get_shortlisted_bugtasks(self):
Undocumented
@property
def conjoined_master(self):
See IBugTask.
@property
def conjoined_slave(self):
See IBugTask.
def _syncFromConjoinedSlave(self):
Ensure the conjoined master is synched from its slave.

This method should be used only directly after when the conjoined master has been created after the slave, to ensure that they are in sync from the beginning.

def transitionToMilestone(self, new_milestone, user):
See IBugTask.
def transitionToImportance(self, new_importance, user):
See IBugTask.
def _checkAutoconfirmFeatureFlag(self):
Does a feature flag enable automatic switching of our bugtasks?
def maybeConfirm(self):
Maybe confirm this bugtask. Only call this if the bug._shouldConfirmBugtasks(). This adds the further constraint that the bugtask needs to be NEW, and not imported from an external bug tracker.
def canTransitionToStatus(self, new_status, user):
See IBugTask.
def transitionToStatus(self, new_status, user, when=None):
See IBugTask.
def _setStatusDateProperties(self, old_status, new_status, when=None):
Undocumented
def userCanSetAnyAssignee(self, user):
See IBugTask.
def userCanUnassign(self, user):
See IBugTask.
def canTransitionToAssignee(self, assignee):
See IBugTask.
def transitionToAssignee(self, assignee, validate=True):
See IBugTask.
def validateTransitionToTarget(self, target, check_source_package=True):
See IBugTask.
def transitionToTarget(self, target, user, validate=True, _sync_sourcepackages=True):
See IBugTask.

If validate is True then we need to check that the new target is valid, otherwise the check has already been done (eg during form submission) and we don't need to repeat it.

If _sync_sourcepackages is True (the default) and the sourcepackagename is being changed, any other tasks for the same name in this distribution will have their names updated to match. This should only be used by _syncSourcePackages.

def updateTargetNameCache(self, newtarget=None):
See IBugTask.
def getPackageComponent(self):
See IBugTask.
def asEmailHeaderValue(self):
See IBugTask.
def getDelta(self, old_task):
See IBugTask.
@classmethod
def userHasDriverPrivilegesContext(cls, context, user):
Does the user have driver privileges for the given context?
Returnsa boolean.
@classmethod
def userHasBugSupervisorPrivilegesContext(cls, context, user):
Does the user have bug supervisor privileges for the given context?
Returnsa boolean.
def userHasDriverPrivileges(self, user):
See IBugTask.
def userHasBugSupervisorPrivileges(self, user):
See IBugTask.
def __repr__(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2020-04-03 00:00:14.