Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Workflow][RFC] Simplify workflow configuration #52378

Closed
@lyrixx

Description

@lyrixx

I have been thinking about this for a while, so it's time to open a RFC!

The workflow definition is redundant. You have to define the places twice:

  • in the places
  • in the transitions

Example:

framework:
    workflows:
        article:
            places:
                - first
                - last
            transitions:
                go:
                    from: first
                    to: last

I think we could simplify it to:

framework:
    workflows:
        article:
            transitions:
                go:
                    from: first
                    to: last

Indeed, all places could be guessed from the transitions froms et tos. If a
place is not reached by a transition, it become useless anyway.

Pros

  • Simpler configuration

Cons

  • If one made a typo between the place and the transitions transition, it's
    not caught anymore

WDYT ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)Workflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions