l.b.s.c.r.RemoteBugUpdater(WorkingBase) : class documentation

Part of lp.bugs.scripts.checkwatches.remotebugupdater View In Hierarchy

Known subclasses: lp.bugs.scripts.checkwatches.tests.test_core.NoBugWatchesByRemoteBugUpdater, lp.bugs.scripts.tests.test_bugimport.TestRemoteBugUpdater

No class docstring
Method __init__ Undocumented
Method updateRemoteBug Undocumented
Method _getBugWatchesForRemoteBug Return a list of bug watches for the current remote bug.
Method _convertRemoteStatus Convert a remote status to a Launchpad one and return it.
Method _convertRemoteImportance Convert a remote importance to a Launchpad one and return it.
Method _convertRemoteValue Convert a remote bug value to a Launchpad value and return it.

Inherited from WorkingBase:

Method init Undocumented
Method initFromParent Undocumented
Method interaction Context manager for interaction as the given user.
Method transaction Context manager to ring-fence database activity.
Method statement_logging Context manager to start and stop SQL statement logging.
Method warning Record a warning.
Method error Record an error.
Method _statement_logging_start Start logging SQL statements and other database activity.
Method _statement_logging_stop Stop logging SQL statements.
Method _statement_logging_reset Reset the SQL statement log, if enabled.
def __init__(self, parent, external_bugtracker, remote_bug, bug_watch_ids, unmodified_remote_ids, server_time):
Undocumented
def _getBugWatchesForRemoteBug(self):
Return a list of bug watches for the current remote bug.

The returned watches will all be members of self.bug_watch_ids.

This method exists primarily to be overridden during testing.

@commit_before
def updateRemoteBug(self):
Undocumented
def _convertRemoteStatus(self, remote_status):
Convert a remote status to a Launchpad one and return it.
def _convertRemoteImportance(self, remote_importance):
Convert a remote importance to a Launchpad one and return it.
def _convertRemoteValue(self, conversion_method, remote_unknown, launchpad_unknown, remote_value):
Convert a remote bug value to a Launchpad value and return it.

If the remote value cannot be mapped to a Launchpad value, launchpad_unknown will be returned and a warning will be logged.

Parametersconversion_methodA method returning the Launchpad value corresponding to the given remote value.
remote_unknownThe remote value which indicates an unknown value.
launchpad_unknownThe Launchpad value which indicates an unknown value.
remote_valueThe remote value to be converted.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.