Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql/workflow execution query #832

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

JeffreyThiessen
Copy link
Member

@JeffreyThiessen JeffreyThiessen commented Nov 1, 2024

What does this PR do and why?

Describe in detail what your merge request does and why.

Adds the workflow execution graphql query, with associated type and resolvers

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other pull requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Via the gui, submit a couple of pipelines so you have data to fetch.
  2. Query for workflow executions.
query getWEs {
  workflowExecutions {
    nodes {
      id
    }
  }
}
  1. Query for a specific workflow execution.
query getOneWE {
  node(
    id: "gid://irida/WorkflowExecution/2eba5816-f486-4cec-b49a-aa1e933cdc91"
  ) {
  	... on WorkflowExecution {
      id
      blobRunDirectory
      cleaned
      httpErrorCode
      metadata
      runId
      state
      project{
        id
        name
      }
      group{
        id
        name
      }
      submitter {
        id
        email
      }
      submitterId
      tags
      workflowEngine
      workflowEngineParameters
      workflowEngineVersion
      workflowParams
      workflowType
      workflowTypeVersion
      workflowUrl
      samples {
        edges {
          node {
            id
          }
        }
      }
    }
  }
}

PR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

@JeffreyThiessen JeffreyThiessen changed the title Graphql/workflow execution type Graphql/workflow execution query Nov 1, 2024
@JeffreyThiessen JeffreyThiessen marked this pull request as ready for review November 1, 2024 19:55

This comment has been minimized.

@JeffreyThiessen JeffreyThiessen added ready for review Pull request is ready for review graphql GraphQL API related changes labels Nov 6, 2024
@JeffreyThiessen JeffreyThiessen self-assigned this Nov 6, 2024
ksierks
ksierks previously approved these changes Nov 7, 2024
Copy link
Contributor

@ksierks ksierks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described.

ChrisHuynh333
ChrisHuynh333 previously approved these changes Nov 7, 2024
Copy link
Collaborator

@ChrisHuynh333 ChrisHuynh333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ericenns ericenns self-requested a review November 18, 2024 16:34
@JeffreyThiessen JeffreyThiessen force-pushed the graphql/workflow_execution_type branch from 73aee36 to 0230b2e Compare November 26, 2024 22:20
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql GraphQL API related changes ready for review Pull request is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants