Part of lp.bugs.model.bug View In Hierarchy
Represents bug subscription sets.
The intention for this class is to encapsulate all calculations of subscriptions and subscribers for a bug. Some design considerations:
Method | __init__ | Undocumented |
Method | cache_key | A (bug ID, bugtask ID, level) tuple for use as a hash key. |
Method | forTask | Create a new BugSubscriptionInfo limited to bugtask . |
Method | forLevel | Create a new BugSubscriptionInfo limited to level . |
Method | muted_subscribers | Undocumented |
Method | visible_recipients_filter | Undocumented |
Method | direct_subscriptions | The bug's direct subscriptions. |
Method | direct_subscribers | The bug's direct subscriptions. |
Method | direct_subscriptions_at_all_levels | The bug's direct subscriptions at all levels. |
Method | direct_subscribers_at_all_levels | The bug's direct subscribers at all levels. |
Method | duplicate_subscriptions | Subscriptions to duplicates of the bug. |
Method | duplicate_subscribers | Subscribers to duplicates of the bug. |
Method | duplicate_only_subscriptions | Subscriptions to duplicates of the bug only. |
Method | duplicate_only_subscribers | Subscribers to duplicates of the bug only. |
Method | structural_subscriptions | Structural subscriptions to the bug's targets. |
Method | structural_subscribers | Structural subscribers to the bug's targets. |
Method | all_assignees | Assignees of the bug's tasks. |
Method | also_notified_subscribers | All subscribers except direct, dupe, and muted subscribers. |
Method | indirect_subscribers | All subscribers except direct subscribers. |
This helps forTask()
and forLevel()
to be more efficient,
returning previously populated instances to avoid running the same
queries against the database again and again.
BugSubscriptionInfo
limited to bugtask
.
The given task must refer to this object's bug. If None
is passed a
new BugSubscriptionInfo
instance is returned with no limit.
Excludes muted subscriptions.
Excludes muted subscriptions.
Excludes muted subscribers.
Excludes muted subscriptions, and subscribers who can not see the master bug.
Excludes muted subscribers.
Excludes muted subscriptions, subscriptions for people who have a direct subscription, or who are also notified for another reason.
Excludes muted subscribers, subscribers who have a direct subscription, or who are also notified for another reason.
Excludes direct subscriptions.
Excludes direct subscribers.
Does not exclude muted subscribers.