Skip to content

Report the whole workflow chain of a content type (#2061) - #2090

Open
sneridagh wants to merge 1 commit into
issue-2061-workflowsfrom
issue-2061-workflow-chain
Open

sneridagh wants to merge 1 commit into
issue-2061-workflowsfrom
issue-2061-workflow-chain

Conversation

@sneridagh

Copy link
Copy Markdown
Member

Part of #2061. Stacked on #2081.

davisagli noted in the review of #2070 that a content type's chain can have several workflows, but the workflow summary only showed the first one.

What changes

  • The workflow of a type in @content-types, and GET /@content-types/{type}/workflow, return chain, the IDs of every workflow of the type's chain in order, instead of id, the first one. It's empty when the type has no workflow. follows_default stays as it is.
  • POST /@content-types/{type}/workflow still assigns one workflow, and that replaces the whole chain. The state mapping and the item counts use the first workflow of the current chain, which is the one that sets an item's state.

Nothing released uses these endpoints yet, so the rename has no compatibility cost. The Aurora content types control panel will follow.

Docs

  • content-types.md describes workflow.chain, and what assigning a workflow does to a chain of several.
  • Updated http examples: content_types_get_item, content_types_get_workflow, content_types_post.

Tests

  • A chain of two workflows is reported in full, in the type's workflow and in its representation.
  • Assigning a workflow to a type with two replaces the chain.

Assisted-by: Claude Opus 5.5

@read-the-docs-community

read-the-docs-community Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

A type's chain can have several workflows. The workflow summary of
@Content-Types, and GET @content-types/{type}/workflow, now return
`chain`, the IDs of every workflow in order, instead of `id`, the first
one. Assigning a workflow still sets one, and replaces the whole chain.

Assisted-by: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants