TEASEDocs
ProductsLinkLinks on a domain

Troubleshooting

Known Links-on-a-domain failure modes, their cause, and how to confirm it.

Symptom: Historical per-link stat snapshots that used to be attached to a link on a domain can no longer be found by that link, once the domain itself has been deleted. The rows look wiped.

Cause: Deleting a domain (not a single link through this section's own delete endpoints) hard-removes that domain's of_links registry rows as part of the domain-delete cascade. Because of_link_stats.of_link_id has a foreign key into of_links, the cascade first sets of_link_id to NULL on every stats row that pointed at one of those links, before the of_links rows themselves are removed a few lines later in the same function. The stats rows survive — they just lose the link they were attached to, so a per-link lookup no longer finds them.

Check: backend/app/products/link/api/admin/domain_safety.py:132-135 — the UPDATE of_link_stats SET of_link_id = NULL that runs immediately before OfLink is deleted further down delete_domain_rows.

What's next

Back to Links on a domain for the full task list.

On this page