Repository navigation
fix(workflows): list a draft's test runs under its workflow; drafts in the Docs portal - #866
Merged
Merged
Conversation
…d out Each draft is its own hidden workflow row, so the Sessions & Runs workflow filter gained one identical "<name> (draft)" entry per draft that had a test run, and the rows themselves did not say they ran a draft. The filter now offers the workflow once and takes its drafts' test runs with it, and a test run's row is named "<name> (draft)". The workflow_id filter of the personal MCP's list_workflow_runs and list_sessions folds drafts the same way. Found in UAT (Flow Dev #347). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
The section went into docs/user-guide only; the in-app /docs portal renders its own copy, which had no word on drafts, including that a test run is a real run. Found in UAT (Flow Dev #346). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
UAT of workflow drafts (#837) found two gaps.
Sessions & Runs lists one "(draft)" entry per draft (Flow Dev #347)
Each draft is its own hidden workflow row. Because of that, the Workflow filter gained one identical
<name> (draft)entry for every draft that had a test run, and a test run's row was named like a live run.The filter now works like this:
<name> (draft).The changes:
Workflow.with_drafts_of(id): the workflow and every draft it has had.SessionsRunsFeed#workflow_optionsmaps a draft to the workflow it is a draft of. Filtering by a workflow takes its drafts' runs.RunListEntryResource#nameadds(draft)to a draft's run.list_workflow_runsandlist_sessionsfold drafts intoworkflow_idthe same way. Their parameter descriptions say so.The Docs portal has no section on drafts (Flow Dev #346)
The section went into
docs/user-guide/workflows.mdonly. The in-app/docsportal renders its own copy,app/frontend/pages/Docs/data/pages/workflows.md, and that copy is maintained by hand, not synced.The portal page now has "Changing a workflow that is in use: drafts". It includes a
warningcallout: a test run is a real run, and its agents push, comment and message with your credentials. The user guide gets the Sessions & Runs line as well.No CHANGELOG entry: drafts are still under
[Unreleased], so this is a change to an unreleased feature.Testing
Locally:
make lint_check_allpassed: rubocop, brakeman, eslint, tsc, fsd, watcher-test.sessions_runs_feed_test,list_sessions_test,list_workflow_runs_test,sessions_controller_test,personal_mcp_workflows_test,documentation_drift_testanddocs_render_testpassed, 128 runs.… (draft).list_sessionswithworkflow_idreturns the draft's step sessions.CI is the full verification.
🤖 Generated with Claude Code