Part of lp.bugs.interfaces.bugtask View In Hierarchy
Attribute | title | Title |
Attribute | orderby_expression | The SQL expression for a sort key |
Method | get | Retrieve a BugTask with the given id. |
Method | getBugTaskTags | Return a set of bugtasks bug tags |
Method | getBugTaskPeople | Return a set of people related to bugtasks. |
Method | getBugTaskBadgeProperties | Return whether the bugtasks should have badges. |
Method | getMultiple | Retrieve a dictionary of bug tasks for the given sequence of IDs. |
Method | findSimilar | Find bugs similar to the given summary. |
Method | search | Search IBugTasks with the given search parameters. |
Method | searchBugIds | Search bug ids. |
Method | countBugs | Count open bugs that match params, grouping by group_on. |
Method | getStatusCountsForProductSeries | Returns status counts for a product series' bugs. |
Method | createManyTasks | Create a series of bug tasks and return them. |
Method | createTask | Create a bug task on a bug and return it. |
Method | findExpirableBugTasks | Return a list of bugtasks that are at least min_days_old. |
Method | getBugCountsForPackages | Return open bug counts for the list of packages. |
Method | getOpenBugTasksPerProduct | Return open bugtask count for multiple products. |
Method | getPrecachedNonConjoinedBugTasks | List of non-conjoined bugtasks targeted to the milestone. |
Method | getBugTaskTargetMilestones | Get all the milestones for the selected bugtasks' targets. |
Attribute | open_bugtask_search | A search returning open bugTasks. |
Raise a NotFoundError if there is no IBugTask matching the given id. Raise a zope.security.interfaces.Unauthorized if the user doesn't have the permission to view this bug.
Return a dict mapping from bugtask to tag.
Return a dict mapping from Person.id to Person.
Return a mapping from a bug task, to a dict of badge properties.
Parameters | task_ids | a sequence of bug task IDs. |
Returns | an empty dictionary if the given sequence of IDs is empty, or if none of the specified IDs matches a bug task in the database. |
The search is limited to the given product or distribution (together with an optional source package).
Only BugTasks that the user has access to will be returned.
Note: only use this method of BugTaskSet if you want to query tasks across multiple IBugTargets; otherwise, use the IBugTarget's searchTasks() method.
If more than one BugTaskSearchParams is given, return the union of IBugTasks which match any of them, with the results ordered by the orderby specified in the first BugTaskSearchParams object.
Parameters | search_params | a BugTaskSearchParams object |
args | any number of BugTaskSearchParams objects |
This is a variation on IBugTaskSet.search that returns only bug ids.
Parameters | params | the BugTaskSearchParams to search on. |
This serves results from the bugsummary fact table: it is fast but not completely precise. See the bug summary documentation for more detail.
Parameters | user | The user to query on behalf of. |
contexts | A list of contexts to search. Contexts must support the IBugSummaryDimension interface. | |
group_on | The column(s) group on - .e.g ( BugSummary.distroseries_id, BugSummary.milestone_id) will cause grouping by distro series and then milestone. | |
Returns | A dict {group_instance: count, ...} |
Both the nominated and scheduled blueprints are included in the count.
Parameters | product_series | ProductSeries object. |
Returns | A list of tuples containing (status_id, count). |
If the bug is public, bug supervisors will be automatically subscribed.
If the bug has any accepted series nominations for a supplied distribution, series tasks will be created for them.
A bugtask is expirable if its status is Incomplete, and the bug report has been never been confirmed, and it has been inactive for min_days_old. Only bugtasks that belong to Products or Distributions that use launchpad to track bugs can be returned. The implementation must define the criteria for determining that the bug report is inactive and have never been confirmed.
Parameters | min_days_old | An int representing the minimum days of inactivity for a bugtask to be considered expirable. Setting this parameter to 0 will return all bugtask that can expire. |
user | The IPerson doing the search. Only bugs the user
has permission to view are returned. | |
bug | An IBug . If a bug is provided, only bugtasks that belong
to the bug may be returned. If bug is None, all bugs are searched. | |
target | An IBugTarget . If a target is provided, only
bugtasks that belong to the target may be returned. If target
is None, all bugtargets are searched. | |
limit | An int for limiting the number of bugtasks returned. | |
Returns | A ResultSet of bugtasks that are considered expirable. |
Parameters | user | The user doing the search. Private bugs that this user doesn't have access to won't be included in the count. |
packages | A list of IDistributionSourcePackage
instances. | |
Returns | A list of dictionaries, where each dict contains: 'package': The package the bugs are open on. 'open': The number of open bugs. 'open_critical': The number of open critical bugs. 'open_unassigned': The number of open unassigned bugs. 'open_inprogress': The number of open bugs that are In Progress. |
The assignee and the assignee's validity are precached.