Skip to content

Two-part transitions #2

@jace

Description

@jace

Just like properties have two aspects, the getter and the setter, transitions need two parts:

  1. The GET aspect of the transition returns a form indicating what sort of response it expects from the client.
  2. The POST aspect of the transition accepts a filled out form and if valid, performs the transition. If invalid, it returns the form again with a list of errors.

Having a two-part transition will make it possible to hook them up directly with views. The current approach requires a separate GET view per transition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions