Part of lp.bugs.interfaces.bug View In Hierarchy
Known subclasses: lp.bugs.interfaces.bug.IBugAddForm
Known implementations: lp.bugs.model.bug.Bug, lp.bugs.scripts.tests.test_bugnotification.MockBug
Int | ownerID | Undocumented |
TextLine | displayname | Undocumented |
Attribute | initial_message | The message that was specified when creating the bug |
Attribute | affected_pillars | The "pillars", products or distributions, affected by this bug. |
Bool | has_cves | Undocumented |
Attribute | cve_links | Links between this bug and CVE entries. |
Attribute | questions | List of questions related to this bug. |
Attribute | specifications | List of related specifications. |
Bool | is_complete | True or False depending on whether this bug is considered completely addressed. A bug in Launchpad is completely addressed when there are no tasks that are still open for the bug. |
Bool | permits_expiration | Expiration is permitted when the bug is not valid anywhere, a message was sent to the bug reporter, and the bug is associated with pillars that have enabled bug expiration. |
Datetime | heat_last_updated | Undocumented |
Attribute | bug_messages | The bug messages related to this object. |
Attribute | comment_count | The number of comments on this bug, not including the initial comment. |
Attribute | followup_subject | The likely subject of the next message. |
Attribute | has_patches | Does this bug have any patches? |
Attribute | latest_patch | The most recent patch of this bug. |
Attribute | official_tags | The official bug tags relevant to this bug. |
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 | isSubscribed | Is person subscribed to this bug? |
Method | isSubscribedToDupes | Is person directly subscribed to dupes of this bug? |
Method | getDirectSubscriptions | A sequence of IBugSubscriptions directly linked to this bug. |
Method | getDirectSubscribers | A list of IPersons that are directly subscribed to this bug. |
Method | getIndirectSubscribers | Return IPersons that are indirectly subscribed to this bug. |
Method | getAlsoNotifiedSubscribers | Return IPersons in the "Also notified" subscriber list. |
Method | getSubscriptionsFromDuplicates | Return IBugSubscriptions subscribed from dupes of this bug. |
Method | getSubscribersFromDuplicates | Return IPersons subscribed from dupes of this bug. |
Method | getSubscribersForPerson | Find the persons or teams by which person is subscribed. |
Method | getBugNotificationRecipients | Return a complete INotificationRecipientSet instance. |
Method | addChangeNotification | Add a bug change notification. |
Method | addCommentNotification | Add a bug comment notification. |
Method | addChange | Record a change to the bug. |
Method | expireNotifications | Expire any pending notifications that have not been emailed. |
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 | hasBranch | Is this branch linked to this bug? |
Method | addAttachment | Attach a file to this bug. |
Method | linkAttachment | Link an ILibraryFileAlias to this bug. |
Method | linkCVE | Ensure that this CVE is linked to this bug. |
Method | linkCVEAndReturnNothing | Ensure that this CVE is linked to this bug. |
Method | unlinkCVE | Ensure that any links between this bug and the given CVE are |
Method | findCvesInText | Find any CVE references in the given text, make sure they exist |
Method | canBeAQuestion | Return True of False if a question can be created from this bug. |
Method | convertToQuestion | Create and return a Question from this Bug. |
Method | getQuestionCreatedFromBug | Return the question created from this Bug, or None. |
Method | linkMessage | Add a comment to this bug. |
Method | getMessageChunks | Return MessageChunks corresponding to comments made on this bug |
Method | getNullBugTask | Create an INullBugTask and return it for the given parameters. |
Method | addNomination | Nominate a bug for an IDistroSeries or IProductSeries. |
Method | canBeNominatedFor | Can this bug nominated for this target? |
Method | getNominationFor | Return the IBugNomination for the target. |
Method | getNominations | Return a list of all IBugNominations for this bug. |
Method | getBugWatch | Return the BugWatch that has the given bugtracker and remote bug. |
Method | setStatus | Set the status of the bugtask related to the specified target. |
Method | setPrivate | Set bug privacy. |
Method | setSecurityRelated | Set bug security. |
Method | getBugTask | Return the bugtask with the specified target. |
Method | getBugTasksByPackageName | Return a mapping from ISourcePackageName to its bug tasks. |
Method | isUserAffected | Is :user: marked as affected by 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 | userCanView | Return True if user can see this IBug, false otherwise. |
Method | linkHWSubmission | Link a HWSubmission to this bug. |
Method | unlinkHWSubmission | Remove a link to a HWSubmission . |
Method | getHWSubmissions | Return HWDB submissions linked to this bug. |
Method | setHeat | Set the heat for the bug. |
Method | updateHeat | Update the heat for the bug. |
Method | isExpirable | Is this bug eligible for expiration and was it last updated |
Inherited from ICanBeMentored:
Method | canMentor | True if this user could now offer mentoring on this piece of |
Method | isMentor | True if the user is offering mentoring for this piece of work. |
Method | offerMentoring | Record that the user is willing to mentor anyone who is trying to |
Method | retractMentoring | Remove the offer of mentoring for this work by this user. |
Inherited from IHasMentoringOffers (via ICanBeMentored):
Attribute | mentoring_offers | The list of mentoring offers related to this object. |
Inherited from IPrivacy:
Bool | private | Private objects are visible to members or subscribers. |
Inherited from IHasLinkedBranches:
Method | linkBranch | Associate a branch with this bug. |
Method | unlinkBranch | Unlink a branch from this bug. |
person
to the bug.Parameters | person | the subscriber. |
subscribed_by | the person who created the subscription. | |
suppress_notify | a flag to suppress notify call. | |
Returns | an IBugSubscription . |
Returns True if the user is explicitly subscribed to this bug (no matter what the type of subscription), otherwise False.
If person is None, the return value is always False.
Returns True if the user is directly subscribed to at least one duplicate of this bug, otherwise False.
Direct subscribers have an entry in the BugSubscription table.
Indirect subscribers get bugmail, but don't have an entry in the BugSubscription table. This includes bug contacts, subscribers from dupes, etc.
This includes bug contacts and assignees, but not subscribers from duplicates.
This call should be quite cheap to make and performs a single query.
Returns | An IResultSet. |
The INotificationRecipientSet instance will contain details of all recipients for bug notifications sent by this bug; this includes email addresses and textual and header-ready rationales. See canonical.launchpad.interfaces.BugNotificationRecipients for details of this implementation. If this bug is a dupe, set include_master_dupe_subscribers to True to include the master bug's subscribers as recipients.
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.
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.
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. |
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. |
The user is the one linking to the CVE.
Return True of False if a question can be created from this bug. A Question can be created from a bug if: 1. There is only one bugtask with a status of New, Incomplete, Confirmed, or Wont Fix. Any other bugtasks must be Invalid. 2. The bugtask's target uses Launchpad to track bugs. 3. The bug was not made into a question previously.
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. |
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. |
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. |
Returns True or False.
Unknown Field: nomination_target | An IDistroSeries or IProductSeries. |
If no nomination is found, a NotFoundError is raised.
Parameters | nomination_target | An IDistroSeries or IProductSeries. |
The list is ordered by IBugNominations.target.bugtargetdisplayname.
Parameters | target | An IProduct or IDistribution. Only nominations for this target are returned. |
nominations | The list of nominations to search through. If none is given, the bug's nominations are looked through. This can be useful when having to call this method multiple times, to avoid getting the list of nominations each time. |
Return None if this bug doesn't have such a bug watch.
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. |
Return True if a change is made, False otherwise.
Unknown Field: private | True/False. | |
Unknown Field: who | The IPerson who is making the change. |
This may also cause the security contact to be subscribed if one is registered and if the bug is not private.
Return True if a change is made, False otherwise.
Unknown Field: security_related | True/False. |
Return None if no such bugtask is found.
ISourcePackageName
to its bug tasks.
This mapping is suitable to pass as the bugtasks_by_package cache to getConjoinedMaster().
The mapping is from a ISourcePackageName
to all the bug tasks
that are targeted to such a package name, no matter which
distribution or distro series it is.
All the tasks that don't have a package will be available under None.
HWSubmission
to this bug.HWSubmission
.Only those submissions are returned which the user can access. Public submissions are always included; private submisisons only if the user is the owner or an admin.
Parameters | user | The user making the request. |
Returns | A sequence of HWDB submissions linked to this bug. |
If days_old is None the default number of days without activity is used.
Returns True or False.