Skip to content

Wiki export silently truncates relation groups over 20 entries with no indicator #3127

Closed

Description

@Mvizzotto8444

_god_node_article in graphify/wiki.py caps each relation-type group at 20 entries with no truncation notice:

for t in targets[:20]:
    lines.append(f"- {t}")

If a god node has more than 20 edges of the same relation type, the article's header still reports the correct total degree, but the body silently drops the lowest-degree entries past 20 — with nothing telling the reader anything was cut.

Repro: any node with >20 same-relation edges. Concretely: a node with 26 references-type edges + 3 shares_data_with edges (29 total, matching the header) only lists 23 entries in the body — 6 silently missing from the references section.

Fix: remove the cap (or add an explicit "... and N more" line if a cap is intentionally kept for very high-degree nodes):

for t in targets:
    lines.append(f"- {t}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions