Release cycle diagram as a ring, written as JSON
Teams who work in a loop can draw it as a ring. This page's example is an invented product team's release cycle, with its goals in the middle, in a 25-line JSON file.
Updated
A product team's release cycle. Drawn by open-diagram 0.6.2 from examples/release_cycle.json: 0 layout problems. Open in the editor · Source
The picture as text
A product team's release cycle
Written as JSON with the ring layout. Draw it with: open-diagram draw examples/release_cycle.json
States shown: Live, Being built, In trial. Solid lines: data flows today.
Blocks, left to right:
- Learn: Customer calls; Team retro
- Measure: Usage; Error alerts (being built)
- Plan: Roadmap; Pick the next bet
- Product goals: Keep customers; Grow usage
- Ship: Staged rollout; Release notes
- Build: Write code; Code review
- Test: Automated tests; Beta group (in trial)
Lines:
- Plan -> Build
- Build -> Test
- Test -> Ship
- Ship -> Measure
- Measure -> Learn
- Learn -> Plan, labeled "next cycle"What does this ring diagram show?
Six stages around a circle. The line from Learn back to Plan, labelled "next cycle", closes the loop.
When is a ring better than columns?
When the last step leads back to the first. In columns, that line runs the width of the picture in a lane, as the rollback line does in the release pipeline example. In a ring it is one more short line between neighbours.
How does the ring layout work?
Write "ring" where a flow would have "columns", and list the panels in order:
{
"title": "A product team's release cycle",
"subtitle": "Written as JSON with the ring layout. Draw it with: open-diagram draw examples/release_cycle.json",
"tag": "EXAMPLE",
"ring": [
{"id": "plan", "title": "Plan", "tiles": ["Roadmap", "Pick the next bet"], "cols": 1},
{"id": "build", "title": "Build", "tiles": ["Write code", "Code review"], "cols": 1},
{"id": "test", "title": "Test", "tiles": ["Automated tests", {"label": "Beta group", "status": "trial"}], "cols": 1},
{"id": "ship", "title": "Ship", "tiles": ["Staged rollout", "Release notes"], "cols": 1},
{"id": "measure", "title": "Measure", "tiles": ["Usage", {"label": "Error alerts", "status": "building"}], "cols": 1},
{"id": "learn", "title": "Learn", "tiles": ["Customer calls", "Team retro"], "cols": 1}
],
"center": [
{"id": "goals", "title": "Product goals", "tone": "accent", "tiles": ["Keep customers", "Grow usage"], "cols": 1}
],
"gap": 84,
"links": [
{"from": "plan", "to": "build"},
{"from": "build", "to": "test"},
{"from": "test", "to": "ship"},
{"from": "ship", "to": "measure"},
{"from": "measure", "to": "learn"},
{"from": "learn", "to": "plan", "label": "next cycle"}
]
}- The first panel goes at the top and the rest follow clockwise.
start_anglemoves the starting point. The default, -90, is the top. - The ring grows until every panel is at least
gapfrom every other, here 84 px, and from the panels incenter. centerlists the middle panels."tone": "accent"gives Product goals its yellow header.- Each line leaves and enters on the sides where its two panels face each other, so no link needs a
startorend.
How do I draw a ring from Python?
d.ring() takes the ring panels and the centre panels and returns both lists. Join each panel to the next, and the last back to the first:
from open_diagram import Diagram, Panel, Tile
def build():
d = Diagram("A product team's release cycle")
ring, (goals,) = d.ring(
[Panel("Plan", ["Roadmap"]), Panel("Build", ["Write code"]),
Panel("Test", [Tile("Beta group", status="trial")]), Panel("Ship", ["Staged rollout"]),
Panel("Learn", ["Customer calls"])],
center=[Panel("Product goals", ["Keep customers"], tone="accent")])
for a, b in zip(ring, ring[1:] + ring[:1]):
d.link(a, b, start="auto", end="auto")
return d
The check: 0 layout problems
A plain list of words in a Panel, such as ["Roadmap"], becomes its tiles.
How do I make my own?
Open the example in the editor, or copy examples/release_cycle.json. Rename the stages, change their tiles, and add or remove panels: the ring resizes. After pip install open-diagram, open-diagram check release_cycle.json and open-diagram draw release_cycle.json check and draw your copy.