Skip to content

fix(wiki): link article bodies by ID - #5441

Closed
azizur100389 wants to merge 1 commit into
Graphify-Labs:v8from
azizur100389:fix/wiki-article-identity
Closed

azizur100389 wants to merge 1 commit into
Graphify-Labs:v8from
azizur100389:fix/wiki-article-identity

Conversation

@azizur100389

@azizur100389 azizur100389 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #3032, #3033, and #5369.

What does this PR do?

Wiki article bodies now resolve community and god-node links by ID. Communities with the same label keep separate relationship counts and filenames. A connected node without its own article renders as plain text.

Reproduction

Export a wiki with an Entry community connected to two communities both named Workers. On v8 the Entry article combines the counts and links only to Workers.md. God-node articles also route same-label links to the first file.

Verification

  • Both wiki regressions failed on v8 at 013a6461 and passed with the patch.
  • python -m pytest tests/test_wiki.py tests/test_wiki_truncation_indicator.py -q --tb=short on Windows reported 51 passed and one built-in skip.
  • Ruff, pre-commit, the five skillgen checks, and the AST-only graphify update . passed. Scoped Pyright diagnostics matched clean v8.
  • The full Linux suite ran on Python 3.11–3.14. Outside the watch suites, each version had 11,875 passes, 122 built-in skips, and one expected failure. The 25 isolated watch tests passed on 3.12. On each other version, one watch timing case failed.
  • Upstream CI stopped at watch failures also seen in the clean v8 workflow.
  • Serial retries on clean v8 also showed intermittent failures in the same watch-config lifecycle test.

@github-actions

Copy link
Copy Markdown

Thanks for the pull request, @azizur100389. A maintainer will review it soon.

Want to talk it through while it is in review? Come join us on our Discord server. For longer-form discussion there is also GitHub Discussions.

A couple of things that speed up review: make sure the test suite passes on Python 3.11 and 3.13, and that the change keeps extraction deterministic.

@github-actions github-actions Bot added the contributor Pull request from a returning community contributor label Nov 24, 2026

@graphify-labs graphify-labs Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Graphify review View in Graphify

Nothing blocking · 5 possible issues to check · Merge confidence 5/5

5 possible issues to check · High impact

The wiki generator now uses community and node IDs to link article bodies to the exact files assigned to those entities.

5 possible issues we couldn't confirm
  • Wiki export crashes with KeyError when a god node entry has no label, even though the same loop skips entries without an id · graphify/wiki.py:395
  • A god node listed twice in god_nodes_data gets two article files, and the index and links use only one of them · graphify/wiki.py:396
  • The same-label community test checks link text but never confirms Workers_2.md exists, so an orphaned article would still pass · tests/test_wiki.py:602
  • +2 more in Graphify

They don't change the score.

Code graph · 411 functions depend on this change
  • 1 function became more coupled. to_wiki() (61 callers).
  • 6 of 620 test files are affected by this change.
  • Gate, test list and every flagged function: in the Graphify check.

Reviewed 49ff76e · Full report in the Graphify check

safishamsi added a commit that referenced this pull request Nov 24, 2026
Bump _AST_CACHE_SCHEMA 54 -> 55 for the Python function-parameter call change
(#5418), so cached Python extractions re-run; its walk_calls guard was combined
with the 0.9.119 lambda-parameter guard (both suppress a bare Python call under
a shadowing binding). Harden the #5414 go-fold test with a node-count assert so
it fails without the fix. The wiki/affected/build changes need no schema bump.
0.9.120 changelog and version bump.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@safishamsi

Copy link
Copy Markdown
Member

Landed in v0.9.119 via an authorship-preserving cherry-pick. Wiki article bodies now link cross-references by node ID rather than label, so two nodes sharing a label link to their own articles instead of collapsing onto the first; link text stays the human-readable label. Thanks @azizur100389!

@safishamsi safishamsi closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor Pull request from a returning community contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants