Skip to main content

Model proposal relationships

View as Markdown

Ideas change. A team accepts a proposal and builds it. Later, the team finds a better approach and writes a new proposal. Use supersedes and supersededBy to link the two proposals.

An old proposal with a Superseded by section in its sidebar, and a banner that links to the new proposal

Supersedes and supersededBy​

Add supersedes to the new proposal. Give the id of the proposal that it replaces:

proposals/real-time-search-indexing/index.mdx (new proposal)
---
id: real-time-search-indexing
version: 1.0.0
status: accepted
supersedes:
- id: hourly-search-reindex
---

You can also add supersededBy to the old proposal:

proposals/hourly-search-reindex/index.mdx (old proposal)
---
id: hourly-search-reindex
version: 1.0.0
status: accepted
supersededBy:
- id: real-time-search-indexing
---

You only have to add the link on one proposal. EventCatalog finds the link in the other direction.

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

supersedes:
- id: hourly-search-reindex
version: 1.0.0

A link to a specific version applies to that version only. Other versions of the old proposal do not show the link.

How relationships appear​

EventCatalog shows the relationships in these locations:

  • Supersedes in the sidebar of the new proposal. It lists the proposals that the new proposal replaces.
  • Superseded by in the sidebar of the old proposal. It lists the proposals that replace the old proposal.
  • A warning banner at the top of the old proposal page. The banner links to each proposal that replaces it.

To hide the Supersedes and Superseded by sections, use detailsPanel:

detailsPanel:
relationships:
visible: false

Next steps​