Part of lp.bugs.interfaces.bug View In Hierarchy
| Method | get | Get a specific bug by its ID. |
| Method | getByNameOrID | Get a specific bug by its ID or nickname |
| Method | createBug | Create a bug and return it. |
| Method | getDistinctBugsForBugTasks | Return :limit: distinct Bugs for a given set of BugTasks. |
| Method | getByNumbers | Get IBug instances identified by the bug_numbers iterable. |
| Method | getBugsWithOutdatedHeat | Return the set of bugs whose heat is out of date. |
If it can't be found, NotFoundError will be raised.
Create a bug and return it.
Things to note when using this factory:
- if no description is passed, the comment will be used as the description
- the reporter will be subscribed to the bug
- distribution, product and package contacts (whichever ones are applicable based on the bug report target) will be subscribed to all public bugs only
- if either product or distribution is specified, an appropiate bug task will be created
| Parameters | bug_params | A CreateBugParams object. |
| notify_event | notify subscribers of the bug creation event. | |
| Returns | the new bug, or a tuple of bug, event when notify_event is false. | |
| Parameters | bug_tasks | An iterable of IBugTasks for which we should return Bugs. |
| user | The Person getting the list of Bugs. Only Bugs visible to :user: will be returned. | |
| limit | The number of distinct Bugs to return. |
IBug instances identified by the bug_numbers iterable.| Parameters | bug_numbers | An iterable of bug numbers for which we should return Bugs. |