Part of lp.bugs.interfaces.bug View In Hierarchy
Known subclasses: lp.bugs.interfaces.webservice.IBug
Method | addAttachment | Attach a file to this bug. |
Method | addCommentNotification | Add a bug comment notification. |
Method | addChange | Record a change to the bug. |
Method | addNomination | Nominate a bug for an IDistroSeries or IProductSeries. |
Method | addWatch | Create a new watch for this bug on the given remote bug and bug |
Method | removeWatch | Remove a bug watch from the bug. |
Method | addTask | Create a new bug task on this bug. |
Method | convertToQuestion | Create and return a Question from this Bug. |
Method | expireNotifications | Expire any pending notifications that have not been emailed. |
Method | findCvesInText | Find any CVE references in the given text, make sure they exist |
Method | linkAttachment | Link an ILibraryFileAlias to this bug. |
Method | linkMergeProposal | Ensure that this MP is linked to this bug. |
Method | unlinkMergeProposal | Ensure that any links between this bug and the given MP are removed. |
Method | linkCVE | Ensure that this CVE is linked to this bug. |
Method | unlinkCVE | Ensure that any links between this bug and the given CVE are |
Method | setPrivate | Set bug privacy. |
Method | setSecurityRelated | Set bug security. |
Method | transitionToInformationType | Set the information type for this bug. |
Method | linkHWSubmission | Link a HWSubmission to this bug. |
Method | unlinkHWSubmission | Remove a link to a HWSubmission . |
Method | linkMessage | Add a comment to this bug. |
Method | markUserAffected | Mark :user: as affected by this bug. |
Method | markAsDuplicate | Mark this bug as a duplicate of another. |
Method | setCommentVisibility | Set the visible attribute on a bug comment. This is restricted |
Method | mute | Add a muted subscription for person . |
Method | unmute | Remove a muted subscription for person . |
Method | newMessage | Create a new message, and link it to this object. |
Method | subscribe | Subscribe person to the bug. |
Method | unsubscribe | Remove this person's subscription to this bug. |
Method | unsubscribeFromDupes | Remove this person's subscription from all dupes of this bug. |
Method | setStatus | Set the status of the bugtask related to the specified target. |
Unknown Field: owner | An IPerson. | |
Unknown Field: data | A file-like object, or a str . | |
Unknown Field: description | A brief description of the attachment. | |
Unknown Field: comment | An IMessage or string. | |
Unknown Field: filename | A string. | |
Unknown Field: is_patch | A boolean. |
If a BugActivity instance is provided as an activity
, it is linked
to the notification.
Record a change to the bug. :param change: An `IBugChange` instance from which to take the change data. :param recipients: A set of `IBugNotificationRecipient`s to whom to send notifications about this change. If None is passed the default list of recipients for the bug will be used. :param update_heat: Whether to update the bug heat.
This method creates and returns a BugNomination. (See lp.bugs.model.bugnomination.BugNomination.)
Unknown Field: owner | An IPerson. | |
Unknown Field: target | An IDistroSeries or IProductSeries. |
Raises | IllegalTarget | if the bug task cannot be added to the bug. |
Bugs that are also in external bug trackers cannot be converted to questions. This is also true for bugs that are being developed.
The IQuestionTarget
is provided by the IBugTask
that is not
Invalid and is not a conjoined slave. Only one question can be
made from a bug.
An AssertionError is raised if the bug has zero or many BugTasks that can provide a QuestionTarget. It will also be raised if a question was previously created from the bug.
Unknown Field: person | The IPerson creating a question from this bug | |
Unknown Field: comment | A string. An explanation of why the bug is a question. |
This will mark any notifications related to this bug as having been emailed. The intent is to prevent large quantities of bug mail being generated during bulk imports or changes.
The user is the one linking to the CVE.
ILibraryFileAlias
to this bug.
This method should only be called by addAttachment() and FileBugViewBase.submit_bug_action, otherwise we may get inconsistent settings of bug.private and file_alias.restricted.
Unknown Field: owner | An IPerson. | |
Unknown Field: file_alias | The ILibraryFileAlias to link to this bug. | |
Unknown Field: description | A brief description of the attachment. | |
Unknown Field: comment | An IMessage or string. | |
Unknown Field: is_patch | A boolean. |
Return True if a change is made, False otherwise.
Unknown Field: private | True/False. | |
Unknown Field: who | The IPerson who is making the change. |
Return True if a change is made, False otherwise.
Unknown Field: security_related | True/False. | |
Unknown Field: who | The IPerson who is making the change. |
Unknown Field: information_type | The InformationType to transition to. | |
Unknown Field: who | The IPerson who is making the change. |
HWSubmission
to this bug.HWSubmission
.Parameters | message | The IMessage to be used as a comment. |
bugwatch | The IBugWatch of the bug this comment was
imported from, if it's an imported comment. | |
user | The IPerson adding the comment. | |
remote_comment_id | The id this comment has in the remote bug tracker, if it's an imported comment. |
person
.person
to the bug.Parameters | person | the subscriber. |
subscribed_by | the person who created the subscription. | |
suppress_notify | a flag to suppress notify call. | |
level | The BugNotificationLevel for the new subscription. | |
Returns | an IBugSubscription . |
If a bug task was edited, emit a
lazr.lifecycle.interfaces.IObjectModifiedEvent
and
return the edited bugtask.
Return None if no bugtask was edited.
Unknown Field: target | The target of the bugtask that should be modified. | |
Unknown Field: status | The status the bugtask should be set to. | |
Unknown Field: user | The IPerson doing the change. |