Skip to main content

Link resources, ADRs and diagrams

View as Markdown

A proposal can link to three things:

FieldWhat it links toSidebar section
impactsThe resources that the change impactsImpacts
decisionsThe ADRs that came from the reviewDecision records
diagramsDiagrams of the proposed architectureDiagrams

Show the resources that a proposal impacts​

The Impacts section in the sidebar of a proposal. It lists the Ordering domain, two services, an event, an entity and a data store

Add the impacts field to the frontmatter. Give the type and the id of each resource that the change impacts:

proposals/split-orders-across-warehouses/index.mdx
impacts:
# The change impacts the Ordering domain
- type: domain
id: ordering
# The change impacts the Order Service
- type: service
id: order-service
# The change impacts the Order Fulfilment Started event
- type: event
id: order-fulfilment-started

A proposal can impact these resource types: domain, system, service, agent, event, command, query, channel, flow, entity, container, data-product, diagram, team and user.

The Impacts section in the sidebar lists each impacted resource. Select a resource to open its page. EventCatalog does not show a resource that is not in the catalog.

EventCatalog links to the latest version of a resource. To link to a specific version, add the version field:

impacts:
- type: service
id: order-service
version: 1.0.0
- type: event
id: order-fulfilment-started
version: latest # The same as no version

The sidebar of a proposal. The Decision records section lists two ADRs. The Diagrams section lists one diagram

The review of a proposal often produces architecture decision records (ADRs). Add the decisions field to link these ADRs:

proposals/real-time-search-indexing/index.mdx
decisions:
- id: adr-001-use-transactional-outbox
- id: adr-003-offload-async-work-to-worker

The Decision records section in the sidebar lists each ADR. A reader of the proposal can open each decision that came from it.

Add the diagrams field to link diagrams. For example, a diagram that compares the current architecture with the proposed architecture:

proposals/real-time-search-indexing/index.mdx
diagrams:
- id: real-time-indexing-pipeline

The Diagrams section in the sidebar lists each diagram.

You can keep a diagram in the folder of its proposal:

proposals/
real-time-search-indexing/
index.mdx
diagrams/
real-time-indexing-pipeline/
index.mdx

Hide a section​

To hide a section in the sidebar, use detailsPanel:

detailsPanel:
impacts:
visible: false
decisions:
visible: false
diagrams:
visible: false

Next steps​