Bugsy
stable
  • Bugsy
  • Bug
  • Comment
  • Search
Bugsy
  • Docs »
  • Search
  • Edit on GitHub

Search¶

Changed in version 0.2.

class bugsy.Search(bugsy)[source]¶

This allows searching for bugs in Bugzilla

__init__(bugsy)[source]¶

Initialises the search object

Parameters:bugsy – Bugsy instance to use to connect to Bugzilla.
__weakref__¶

list of weak references to the object (if defined)

assigned_to(*args)[source]¶

When search() is called it will search for bugs assigned to these users

Parameters:args – items passed in will be turned into a list
Returns:Search
>>> bugzilla.search_for.assigned_to("dburns@mozilla.com")
bug_number(bug_numbers)[source]¶

When you want to search for a bugs and be able to change the fields returned.

Parameters:bug_numbers – A string for the bug number or a list of strings
Returns:Search
>>> bugzilla.search_for.bug_number(['123123', '123456'])
change_history_fields(fields, value=None)[source]¶
component(*components)[source]¶

When search() is called it will limit results to items in a component.

Parameters:component – items passed in will be turned into a list
Returns:Search
include_fields(*args)[source]¶

Include fields is the fields that you want to be returned when searching. These are in addition to the fields that are always included below.

Parameters:args – items passed in will be turned into a list
Returns:Search
>>> bugzilla.search_for.include_fields("flags")
The following fields are always included in search:
‘version’, ‘id’, ‘summary’, ‘status’, ‘op_sys’, ‘resolution’, ‘product’, ‘component’, ‘platform’
keywords(*args)[source]¶

When search() is called it will search for the keywords passed in here

Parameters:args – items passed in will be turned into a list
Returns:Search
>>> bugzilla.search_for.keywords("checkin-needed")
product(*products)[source]¶

When search is called, it will limit the results to items in a Product.

Parameters:product – items passed in will be turned into a list
Returns:Search
search()[source]¶

Call the Bugzilla endpoint that will do the search. It will take the information used in other methods on the Search object and build up the query string. If no bugs are found then an empty list is returned.

>>> bugs = bugzilla.search_for\
...                .keywords("checkin-needed")\
...                .include_fields("flags")\
...                .search()
summary(*args)[source]¶

When search is called it will search for bugs with the words passed into the methods

Parameters:args – items passed in will be turned into a list
Returns:Search
>>> bugzilla.search_for.summary("663399")
timeframe(start, end)[source]¶

When you want to search bugs for a certain time frame.

Parameters:
  • start –
  • end –
Returns:

Search

whiteboard(*args)[source]¶

When search is called it will search for bugs with the words passed into the methods

Parameters:args – items passed in will be turned into a list
Returns:Search
>>> bugzilla.search_for.whiteboard("affects")
Previous

© Copyright 2016, David Burns. Revision ac14df84.

Built with Sphinx using a theme provided by Read the Docs.