Skip to content

fix(workflows): list a draft's test runs under its workflow; drafts in the Docs portal - #866

Merged
artempartos merged 2 commits into
developfrom
artempartos/workflow-drafts-qa-fixes
Nov 24, 2026
Merged

artempartos merged 2 commits into
developfrom
artempartos/workflow-drafts-qa-fixes

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

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:

  • It offers the workflow once.
  • Picking it also lists its drafts' test runs, from open and closed drafts alike.
  • A test run's row is named <name> (draft).

The changes:

  • Workflow.with_drafts_of(id): the workflow and every draft it has had.
  • SessionsRunsFeed#workflow_options maps a draft to the workflow it is a draft of. Filtering by a workflow takes its drafts' runs.
  • RunListEntryResource#name adds (draft) to a draft's run.
  • The personal MCP's list_workflow_runs and list_sessions fold drafts into workflow_id the 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.md only. The in-app /docs portal 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 warning callout: 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_all passed: rubocop, brakeman, eslint, tsc, fsd, watcher-test.
  • Backend: sessions_runs_feed_test, list_sessions_test, list_workflow_runs_test, sessions_controller_test, personal_mcp_workflows_test, documentation_drift_test and docs_render_test passed, 128 runs.
  • New tests:
    • Two drafts, each with a test run, give one filter option.
    • The filter returns the live run and both test runs.
    • The row names a draft's run … (draft).
    • A draft's test run alone still names its workflow among the options.
    • list_sessions with workflow_id returns the draft's step sessions.
  • Vitest for Docs and Sessions passed: 141 tests.

CI is the full verification.

🤖 Generated with Claude Code

artempartos and others added 2 commits November 24, 2026 12:34
…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]>
@artempartos
artempartos merged commit 2ad9c53 into develop Nov 24, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant