def all_issues(get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema()) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) return _search_issues(include_datasets=True, **query)
def issues_for_dataset(dataset_id, get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema()) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) return _search_issues(dataset_id=dataset_id, **query)
def issues_for_dataset(dataset_id, get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema() ) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) return _search_issues(dataset_id=dataset_id, **query)
def all_issues(get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema() ) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) return _search_issues(include_datasets=True, **query)
def issues_for_org(org_id, get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema()) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) template_params = _search_issues(organization_id=org_id, include_datasets=True, **query) template_params['org'] = \ logic.get_action('organization_show')({}, {'id': org_id}) return template_params
def issues_for_org(org_id, get_query_dict): query, errors = toolkit.navl_validate( dict(get_query_dict), schema.issue_dataset_controller_schema() ) if errors: raise toolkit.ValidationError(errors) query.pop('__extras', None) template_params = _search_issues(organization_id=org_id, include_datasets=True, **query) template_params['org'] = \ logic.get_action('organization_show')({}, {'id': org_id}) return template_params