Filters
class indico.filters._init_.SubmissionFilter(input_filename=None, status=None, retrieved=None, reviews=None)
Create a Filter when querying for WorkflowSubmissions.
- Parameters:
- input_filename (str) – submissions with input file names containing this string
- status (str) – submissions in this status. Options:
[PROCESSING, PENDING_REVIEW, PENDING_ADMIN_REVIEW, COMPLETE, FAILED] - retrieved (bool) – Filter submissions on the retrieved flag
- Returns:
dict containing query filter parameters
class indico.filters._init_.SubmissionReviewFilter(rejected=None, created_by=None, review_type=None)
class indico.filters._init_.ModelGroupExampleFilter(file_name=None, partial=None, status=None, text_search=None)
Create a Filter when querying for examples associated with model groups.
- Parameters:
- file_name (str) – examples with input file names containing this string
- partial (bool) – examples that are or are not partially labeled
- status (str) – submissions in this status. Options:
[COMPLETE, INCOMPLETE] - text_search (bool) – examples that contain this substring in their text
- Returns:
dict containing query filter parameters
class indico.filters._init_.UserMetricsFilter(user_id=None, user_email=None)
Create a Filter when querying for UserSnapshots.
- Parameters:
- user_id (int) – username to filter on
- user_email (str) – email to filter for
- Returns:
dict containing query filter parameters
class indico.filters._init_.DocumentReportFilter(submission_id=None, workflow_id=None, status=None, created_at_start_date=None, created_at_end_date=None, updated_at_start_date=None, updated_at_end_date=None)
Create a filter for the DocumentReport query.
- Parameters:
- workflow_id (int) – workflow id
- submission_id (int) – submission id
- status (str) – submission status
- created_at_start_date (datetime) – earliest creation date
- created_at_end_date (datetime) – latest creation date
- updated_at_start_date (datetime) – earliest update date
- updated_at_end_date (datetime) – latest update date
- Returns:
dict containing query filter parameters
Updated about 1 year ago