l.b.b.b.BugTaskView(LaunchpadView, BugViewMixin, FeedsMixin) : class documentation

Part of lp.bugs.browser.bugtask View In Hierarchy

Known subclasses: lp.bugs.browser.bugtask.BugTaskBatchedCommentsAndActivityView

View class for presenting information about an IBugTask.
Method __init__ Undocumented
Method page_title Undocumented
Method label Undocumented
Method page_description Undocumented
Method next_url Provided so returning to the page they came from works.
Method cancel_url Provided so returning to the page they came from works.
Method is_duplicate_active Undocumented
Method api_request Undocumented
Method recommended_canonical_url Undocumented
Method information_type Undocumented
Method initialize Set up the needed widgets.
Method userIsSubscribed Is the user subscribed to this bug?
Method render Render the bug list if the user has permission to see the bug.
Method comments Return the bugtask's comments.
Method interesting_activity Undocumented
Method activity_and_comments Build list of comments interleaved with activities
Method visible_initial_comments How many initial comments are being shown.
Method visible_recent_comments How many recent comments are being shown.
Method visible_comments_truncated_for_display Whether the visible comment list is truncated for display.
Method total_comments We count all comments because the db cannot do visibility yet.
Method total_activity Return the count of all activity items for the bug.
Method wasDescriptionModified Return a boolean indicating whether the description was modified
Method linked_branches Filter out the bug_branch links to non-visible private branches.
Method linked_merge_proposals Filter out the links to non-visible private MPs.
Method days_to_expiration Return the number of days before the bug is expired, or None.
Method expiration_message Return a message indicating the time to expiration for the bug.
Method official_tags The list of official tags for this bug.
Method unofficial_tags The list of unofficial tags for this bug.
Method available_official_tags_js Return the list of available official tags for the bug as JSON.
Method user_is_admin Is the user a Launchpad admin?
Method bug_description_html The bug's description as HTML.
Method bug_heat_html HTML representation of the bug heat.
Method _nominateBug Nominate the bug for the series and redirect to the bug page.
Method _getComments Undocumented
Method _getInterestingActivity A sequence of interesting bug activity.
Method _getEventGroups Undocumented
Method _event_groups Return a sorted list of event groups for the current BugTask.

Inherited from BugViewMixin:

Method subscription_info Undocumented
Method direct_subscribers Return the list of direct subscribers.
Method duplicate_subscribers Return the list of subscribers from duplicates.
Method getSubscriptionClassForUser Return a set of CSS class names based on subscription status.
Method regular_attachments The list of bug attachments that are not patches.
Method patches The list of bug attachments that are patches.
Method current_bugtask Return the current IBugTask.
Method specifications Undocumented
Method _bug_attachments Get a dict of attachment type -> attachments list.

Inherited from FeedsMixin:

Method feed_links Undocumented
def __init__(self, context, request):
Undocumented
@property
def page_title(self):
Undocumented
@property
def label(self):
Undocumented
@cachedproperty
def page_description(self):
Undocumented
@property
def next_url(self):
Provided so returning to the page they came from works.
@property
def cancel_url(self):
Provided so returning to the page they came from works.
@cachedproperty
def is_duplicate_active(self):
Undocumented
@cachedproperty
def api_request(self):
Undocumented
@cachedproperty
def recommended_canonical_url(self):
Undocumented
@property
def information_type(self):
Undocumented
def initialize(self):
Set up the needed widgets.
def userIsSubscribed(self):
Is the user subscribed to this bug?
def render(self):
Render the bug list if the user has permission to see the bug.
def _nominateBug(self, series):
Nominate the bug for the series and redirect to the bug page.
@cachedproperty
def comments(self):
Return the bugtask's comments.
def _getComments(self, slice_info=None):
Undocumented
@cachedproperty
def interesting_activity(self):
Undocumented
def _getInterestingActivity(self, earliest_activity_date=None, latest_activity_date=None):
A sequence of interesting bug activity.
def _getEventGroups(self, batch_size=None, offset=None):
Undocumented
@cachedproperty
def _event_groups(self):
Return a sorted list of event groups for the current BugTask.

This is a @cachedproperty wrapper around _getEventGroups(). It's here so that we can override it in descendant views, passing batch size parameters and suchlike to _getEventGroups() as we go.

@cachedproperty
def activity_and_comments(self):
Build list of comments interleaved with activities

When activities occur on the same day a comment was posted, encapsulate them with that comment. For the remainder, group then as if owned by the person who posted the first action that day.

If the number of comments exceeds the configured maximum limit, the list will be truncated to just the first and last sets of comments.

The division between the most recent and oldest is marked by an entry in the list with the key 'num_hidden' defined.

@property
def visible_initial_comments(self):
How many initial comments are being shown.
@property
def visible_recent_comments(self):
How many recent comments are being shown.
@cachedproperty
def visible_comments_truncated_for_display(self):
Whether the visible comment list is truncated for display.
@cachedproperty
def total_comments(self):
We count all comments because the db cannot do visibility yet.
@cachedproperty
def total_activity(self):
Return the count of all activity items for the bug.
def wasDescriptionModified(self):
Return a boolean indicating whether the description was modified
@cachedproperty
def linked_branches(self):
Filter out the bug_branch links to non-visible private branches.
@cachedproperty
def linked_merge_proposals(self):
Filter out the links to non-visible private MPs.
@property
def days_to_expiration(self):
Return the number of days before the bug is expired, or None.
@property
def expiration_message(self):
Return a message indicating the time to expiration for the bug.

If the expiration date of the bug has already passed, the message returned will indicate this. This deals with situations where a bug is due to be marked invalid but has not yet been dealt with by the bug expiration script.

If the bug is not due to be expired None will be returned.

@property
def official_tags(self):
The list of official tags for this bug.
@property
def unofficial_tags(self):
The list of unofficial tags for this bug.
@property
def available_official_tags_js(self):
Return the list of available official tags for the bug as JSON.

The list comprises of the official tags for all targets for which the bug has a task. It is returned as Javascript snippet, to be embedded in the bug page.

@property
def user_is_admin(self):
Is the user a Launchpad admin?
@property
def bug_description_html(self):
The bug's description as HTML.
@property
def bug_heat_html(self):
HTML representation of the bug heat.
API Documentation for Launchpad, generated by pydoctor at 2019-09-23 00:00:04.