Add workflow events to project graphql
What does this MR do and why?
Add workflow events to project graphql
Continues the work in !196164 (merged)
References
How to set up and validate locally
- Set up Duo Workflow in GDK
- Create local workflows in remote execution. Workflows need to have checkpoints/events to show up with this query. You can also generate workflows using
bundle exec rake "gitlab:duo_workflow:populate[50,20,user@example.com,gitlab-org/gitlab-test,web]" - Open
graphql_explorer - Check that the current user can see a remote execution workflow that the user created
- Check that the user can see a remote execution workflow that another user created, within the same project.
- The query will not return workflows that are within another project (i.e.
$workflowIdOtheris not in$projectPath)
query getEvents($workflowIdOther: AiDuoWorkflowsWorkflowID!, $projectPath: ID!){
project(fullPath: $projectPath){
duoWorkflowEvents(workflowId: $workflowIdOther){
nodes {
checkpoint
errors
workflowGoal
workflowStatus
workflowDefinition
}
}
}
}
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Roman Eisner