def get_bugs_for_search_term(search, base_uri): """ Fetch the base_uri endpoint filtering on search and status. Status must be either 'open' or 'closed' """ from treeherder.etl.common import get_remote_content params = {'search': search} return get_remote_content(base_uri, params=params)
def get_bugs_for_search_term(search, base_uri): """ Fetch the base_uri endpoint filtering on search and status. Status must be either 'open' or 'closed' """ from treeherder.etl.common import get_remote_content params = {'search': search} query_string = urllib.urlencode(params) url = '{0}?{1}'.format(base_uri, query_string) return get_remote_content(url)
def get_bugs_for_search_term(search, base_uri): """ Fetch the base_uri endpoint filtering on search and status. Status must be either 'open' or 'closed' """ from treeherder.etl.common import get_remote_content params = { 'search': search } return get_remote_content(base_uri, params=params)
def get_bugs_for_search_term(search, base_uri): """ Fetch the base_uri endpoint filtering on search and status. Status must be either 'open' or 'closed' """ from treeherder.etl.common import get_remote_content params = { 'search': search } query_string = urllib.urlencode(params) url = '{0}?{1}'.format( base_uri, query_string ) return get_remote_content(url)
def get_bugs_for_search_term(search, status, base_uri): """ Fetch the base_uri endpoint filtering on search and status. Status must be either 'open' or 'closed' """ assert status in ('open', 'closed') params = { 'search': search, 'status': status } query_string = urllib.urlencode(params) url = '{0}?{1}'.format( base_uri, query_string ) return get_remote_content(url)