diff --git a/backend/graph-proxy/src/graphql/filters.rs b/backend/graph-proxy/src/graphql/filters.rs index d63024bbb..33fa21c39 100644 --- a/backend/graph-proxy/src/graphql/filters.rs +++ b/backend/graph-proxy/src/graphql/filters.rs @@ -1,5 +1,6 @@ use std::collections::HashSet; +use argo_workflows_openapi::IoArgoprojWorkflowV1alpha1Workflow; use async_graphql::{ Enum, InputObject, InputValueError, InputValueResult, Scalar, ScalarType, Value, }; @@ -114,7 +115,6 @@ pub enum WorkflowLabelSelectorOperator { /// Represents a label selector for filtering workflows based on labels #[derive(Debug, Clone, InputObject)] -/// Represents a label selector for filtering workflows based on labels pub struct LabelSelector { /// The label key to filter on key: String, @@ -126,19 +126,34 @@ pub struct LabelSelector { // Workflows-------------------------------------------- +/// Represents a workflow parameter filter +#[derive(Debug, Clone, InputObject)] +pub struct WorkflowParameterFilter { + /// The workflow parameter name + key: String, + + /// The workflow parameter value + value: String, +} + /// All the supported Workflows filters #[derive(Debug, Default, Clone, InputObject)] pub struct WorkflowFilter { /// The status of the workflow (e.g., pending, running, succeeded, failed, error) workflow_status_filter: Option, + /// The fedid of the user who created the workflow creator: Option, + /// The workflow template template: Option