Part of lp.bugs.model.bug View In Hierarchy
Method | linked_branches | Undocumented |
Method | cves | Undocumented |
Method | questions | Undocumented |
Method | specifications | Undocumented |
Method | getSpecifications | See IBug . |
Method | security_related | Undocumented |
Method | latest_patch | See IBug . |
Method | comment_count | See IBug . |
Method | users_affected | See IBug . |
Method | users_unaffected | See IBug . |
Method | user_ids_affected_with_dupes | Return all IDs of Persons affected by this bug and its dupes. |
Method | users_affected_with_dupes | See IBug . |
Method | users_affected_count_with_dupes | See IBug . |
Method | other_users_affected_count_with_dupes | See IBug . |
Method | indexed_messages | See IMessageTarget . |
Method | displayname | See IBug . |
Method | bugtasks | See IBug . |
Method | default_bugtask | See IBug . |
Method | is_complete | See IBug . |
Method | affected_pillars | See IBug . |
Method | permits_expiration | See IBug . |
Method | can_expire | See IBug . |
Method | isExpirable | See IBug . |
Method | initial_message | See IBug . |
Method | official_tags | See IBug . |
Method | followup_subject | See IBug . |
Method | has_patches | See IBug . |
Method | subscribe | See IBug . |
Method | unsubscribe | See IBug . |
Method | unsubscribeFromDupes | See IBug . |
Method | isSubscribed | See IBug . |
Method | isSubscribedToDupes | See IBug . |
Method | isMuted | See IBug . |
Method | mute | See IBug . |
Method | unmute | See IBug . |
Method | subscriptions | The set of BugSubscriptions for this bug. |
Method | getSubscriptionInfo | See IBug . |
Method | getDirectSubscriptions | See IBug . |
Method | getDirectSubscribers | See IBug . |
Method | getDirectSubscribersWithDetails | See IBug . |
Method | getIndirectSubscribers | See IBug . |
Method | getSubscriptionsFromDuplicates | See IBug . |
Method | getSubscribersFromDuplicates | See IBug . |
Method | getSubscribersForPerson | See `IBug. |
Method | getSubscriptionForPerson | See IBug . |
Method | getAlsoNotifiedSubscribers | See IBug . |
Method | getBugNotificationRecipients | See IBug . |
Method | clearBugNotificationRecipientsCache | Undocumented |
Method | addCommentNotification | See IBug . |
Method | addChange | See IBug . |
Method | expireNotifications | See IBug . |
Method | newMessage | Create a new Message and link it to this bug. |
Method | linkMessage | See IBug . |
Method | addTask | See IBug . |
Method | addWatch | See IBug . |
Method | removeWatch | See IBug . |
Method | addAttachment | See IBug . |
Method | linkAttachment | See IBug . |
Method | linkBranch | See IBug . |
Method | unlinkBranch | See IBug . |
Method | getVisibleLinkedBranches | See IBug . |
Method | linkMergeProposal | See IBug . |
Method | unlinkMergeProposal | See IBug . |
Method | linked_merge_proposals | Undocumented |
Method | getVisibleLinkedMergeProposals | See IBug . |
Method | has_cves | See IBug . |
Method | linkCVE | See IBug . |
Method | unlinkCVE | See IBug . |
Method | findCvesInText | See IBug . |
Method | canBeAQuestion | See IBug . |
Method | convertToQuestion | See IBug . |
Method | getQuestionCreatedFromBug | See IBug . |
Method | getMessagesForView | See IBug . |
Method | addNomination | See IBug . |
Method | canBeNominatedFor | See IBug . |
Method | getNominationFor | See IBug . |
Method | getNominations | See IBug . |
Method | getBugWatch | See IBug . |
Method | setStatus | See IBug . |
Method | setPrivate | See IBug . |
Method | setSecurityRelated | Setter for the security_related property. |
Method | getAllowedInformationTypes | See IBug . |
Method | transitionToInformationType | See IBug . |
Method | getBugTask | See IBug . |
Static Method | getBugTasksByPackageName | See IBugTask. |
Method | isUserAffected | See IBug . |
Method | shouldConfirmBugtasks | See IBug . |
Method | maybeConfirmBugtasks | See IBug . |
Method | markUserAffected | See IBug . |
Method | markAsDuplicate | See IBug . |
Method | setCommentVisibility | See IBug . |
Method | userCanView | See IBug . |
Method | userCanSetCommentVisibility | See IBug |
Method | linkHWSubmission | See IBug . |
Method | unlinkHWSubmission | See IBug . |
Method | getHWSubmissions | See IBug . |
Method | personIsDirectSubscriber | See IBug . |
Method | personIsAlsoNotifiedSubscriber | See IBug . |
Method | personIsSubscribedToDuplicate | See IBug . |
Method | attachments | See IBug . |
Method | attachments_unpopulated | See IBug . |
Method | getActivityForDateRange | See IBug . |
Method | _subscriber_cache | Caches known subscribers. |
Method | _subscriber_dups_cache | Caches known subscribers to dupes. |
Method | _unsubscribed_cache | Cache known non-subscribers. |
Method | _indexed_messages | Get the bugs messages, indexed. |
Method | _getMutes | Undocumented |
Method | _getBugNotificationRecipients | Get the recipients for the BugNotificationLevel. |
Method | _notification_recipients_for_lifecycle | The cached BugNotificationRecipients for LIFECYCLE events. |
Method | _notification_recipients_for_metadata | The cached BugNotificationRecipients for METADATA events. |
Method | _notification_recipients_for_comments | The cached BugNotificationRecipients for COMMENT events. |
Method | _getQuestionTargetableBugTask | Return the only bugtask that can be a QuestionTarget, or None. |
Method | _question_from_bug | Undocumented |
Method | _getTags | Get the tags as a sorted list of strings. |
Method | _cached_tags | Undocumented |
Method | _setTags | Set the tags from a list of strings. |
Method | _getAffectedUser | Return the IBugAffectsPerson for a user, or None |
Method | _flushAndInvalidate | Flush all changes to the store and re-read self from the DB. |
Method | _markAsDuplicate | Mark this bug as a duplicate of another. |
Method | _known_viewers | A set of known persons able to view this bug. |
Method | _reconcileAccess | Undocumented |
Method | _attachments_query | Helper for the attachments* properties. |
Inherited from SQLBase:
Method | __init__ | Extended version of the SQLObjectBase constructor. |
Method | __repr__ | Undocumented |
Method | destroySelf | Undocumented |
Method | __eq__ | Equality operator. |
Method | __ne__ | Inverse of __eq__. |
Method | __storm_invalidated__ | Flush cached properties. |
Class Method | _get_store | Undocumented |
Inherited from InformationTypeMixin:
Method | private | Undocumented |
Parameters | include_content | If True retrieve the content for the messages too. |
include_parents | If True retrieve the object for parent messages too. If False the parent attribute will be forced to None to reduce database lookups. |
IBug
.
This property checks the general state of the bug to determine if expiration is permitted if a bugtask were to qualify for expiration. This property does not check the bugtask preconditions to identify a specific bugtask that can expire.
See Also | IBug.can_expire or BugTaskSet.findExpirableBugTasks to
check or get a list of bugs that can expire. |
See IBug
.
Only Incomplete bug reports that affect a single pillar with enabled_bug_expiration set to True can be expired. To qualify for expiration, the bug and its bugtasks meet the follow conditions:
Launchpad expiration age.
The bug is not a duplicate.
The bug has at least one message (a request for more information).
The bug does not have any other valid bugtasks.
The bugtask belongs to a project with enable_bug_expiration set to True.
The bugtask has the status Incomplete.
The bugtask is not assigned to anyone.
The bugtask does not have a milestone.
IBug
.
The recipients argument is private and not exposed in the interface. If a BugNotificationRecipients instance is supplied, the relevant subscribers and rationales will be registered on it.
IBug
.
See the comment in getDirectSubscribers for a description of the recipients argument.
IBug
.
See the comment in getDirectSubscribers for a description of the recipients argument.
IBug
.
See the comment in getDirectSubscribers for a description of the recipients argument.
IBug
.IBug
.IBug
.
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.
Parameters | send_notifications | Control sending of notifications for this attachment. This is disabled when adding attachments from 'extra data' in the filebug form, because that triggered hundreds of DB inserts and thus timeouts. Defaults to sending notifications. |
Bugs that are also in external bug trackers cannot be converted to questions. This is also true for bugs that are being developed. None is returned when either of these conditions are true.
The bugtask is selected by these rules: 1. It's status is not Invalid. 2. It is not a conjoined slave. Only one bugtask must meet both conditions to be return. When zero or many bugtasks match, None is returned.
IBug
.
We also record who made the change and when the change took place.
IBugAffectsPerson
for a user, or NoneParameters | user | An IPerson that may be affected by the bug. |
Returns | An IBugAffectsPerson or None. |
Marking a bug as a duplicate requires a recalculation of the heat of this bug and of the master bug. None of this is done here in order to avoid unnecessary repetitions in recursive calls for duplicates of this bug, which also become duplicates of the new master bug.
This method must return an empty set or bug searches will trigger late evaluation. Any 'should be set on load' properties must be done by the bug search.
If you are tempted to change this method, don't. Instead see userCanView which defines the just-in-time policy for bug visibility, and BugTask._search which honours visibility rules.
IBug
.
This method is called by security adapters but only in the case for authenticated users. It is also called in other contexts where the user may be anonymous.
Most logic is delegated to the query provided by get_bug_privacy_filter, but some short-circuits and caching are reimplemented here.
If bug privacy rights are changed here, corresponding changes need to be made to the queries which screen for privacy. See bugtasksearch's get_bug_privacy_filter.
IBug
.
This property does eager loading of the index_messages so that the API which wants the message_link for the attachment can answer that without O(N^2) overhead. As such it is moderately expensive to call (it currently retrieves all messages before any attachments, and does this when attachments is evaluated, not when the resultset is processed).