How to add or remove domains from an entity (company/organization) in Tracker Radar. Use when modifying domain-to-entity mappings.
npm install.config.json so trackerRadarRepoPath points to your local clone of this repo (tracker-radar).build-data/generated/entity_map.jsonFind the target entity and add the new domain to its properties array in alphabetical order.
npm run apply-entity-changes in the tracker-radar-detector repoThis propagates changes to all dependent files:
| File | What changes |
|---|---|
build-data/generated/entity_map.json | The source of truth you edited |
build-data/generated/domain_map.json | Reverse mapping — one entry per domain with entityName, aliases, displayName |
entities/<Entity Name>.json | The entity file gets the domain added to its properties array |
entity_map.json — domain in the entity's properties, alphabetically sorteddomain_map.json — new key for the domain with correct entityName, aliases, displayNameentities/<Entity Name>.json — domain in properties, alphabetically sortednpm test to validate schemas