l.b.i.e.IExternalBugTracker(Interface) : interface documentation

Part of lp.bugs.interfaces.externalbugtracker View In Hierarchy

Known subclasses: lp.bugs.interfaces.externalbugtracker.ISupportsBackLinking, lp.bugs.interfaces.externalbugtracker.ISupportsBugImport, lp.bugs.interfaces.externalbugtracker.ISupportsCommentImport, lp.bugs.interfaces.externalbugtracker.ISupportsCommentPushing

A class used to talk with an external bug tracker.
Method getExternalBugTrackerToUse Return the ExternalBugTracker instance to use.
Method getCurrentDBTime Return the current time of the bug tracker's DB server.
Method getModifiedRemoteBugs Return the bug ids that have been modified.
Method initializeRemoteBugDB Do any initialization before each bug watch is updated.
Method convertRemoteStatus Convert a remote status string to a BugTaskStatus item.
Method convertRemoteImportance Convert a remote importance to a BugTaskImportance item.
Method getRemoteProduct Return the remote product for a given remote bug.
def getExternalBugTrackerToUse():
Return the ExternalBugTracker instance to use.

Probe the remote bug tracker and choose the right ExternalBugTracker instance to use further on. In most cases this will simply return self.

def getCurrentDBTime():
Return the current time of the bug tracker's DB server.

The current time will be returned as a timezone-aware datetime.

Returnsdatetime.datetime with timezone.
def getModifiedRemoteBugs(remote_bug_ids, last_checked):
Return the bug ids that have been modified.

Return all ids if the modified bugs can't be determined.

Parametersremote_bug_idsThe remote bug IDs to be checked. (type: list of strings)
last_checkedThe date and time since when a bug should be considered modified.
last_checkeddatetime.datetime
def initializeRemoteBugDB(remote_bug_ids):
Do any initialization before each bug watch is updated.
Parametersremote_bug_idsThe remote bug IDs that to be checked. (type: list of strings)
def convertRemoteStatus(remote_status):
Convert a remote status string to a BugTaskStatus item.
Returnsa member of BugTaskStatus
def convertRemoteImportance(remote_importance):
Convert a remote importance to a BugTaskImportance item.
Returnsa member of BugTaskImportance
def getRemoteProduct(remote_bug):
Return the remote product for a given remote bug.
Parametersremote_bugThe ID of the remote bug for which to return the remote product. (type: string)
ReturnsThe remote product for remote_bug. If no remote product is recorded for remote_bug return None.
RaisesBugNotFoundIf remote_bug doesn't exist for the bug tracker.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.