Skip to main content

Maintaining the module dependency map

This page describes how the inventory behind Module dependencies is maintained. The data is kept apart from the component that displays it.

FileRole
docs/scripts/module-dependencies/catalog.jsonModules and reviewed relationships, each with a source file and an identifiable excerpt as evidence
docs/scripts/module-dependencies/generate.pyChecks the evidence and generates line numbers, excerpts and links to the commits of the repositories
docs/src/components/ModuleDependencyMap/data.jsonGenerated data used by the page, with no network call at run time

From open-ent/docs, with the neighboring open-ent-mods repository and its submodules initialized:

python3 scripts/module-dependencies/generate.py
python3 scripts/module-dependencies/generate.py --check

For another location, add --mods-root /path/to/open-ent-mods.

The check fails when a piece of evidence has disappeared, when a relationship is duplicated, or when the generated data is out of date.

To record a new integration, read the call and the service it reaches, add the relationship to the catalog, then regenerate and review the result. The script validates the relationships listed; it does not discover new ones.

Links point to a specific commit. Evidence that comes from a local change absent from that commit is flagged, and keeps its path and excerpt without a link to another version.