Repository navigation
fix(wiki): link article bodies by ID - #5441
azizur100389 wants to merge 1 commit into
Conversation
Follow-up to Graphify-Labs#3032, Graphify-Labs#3033, and Graphify-Labs#5369. Co-authored-by: Codex <[email protected]>
|
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. |
There was a problem hiding this comment.
Graphify review 
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 anid·graphify/wiki.py:395 - A god node listed twice in
god_nodes_datagets 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.mdexists, 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
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]>
|
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! |
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
v8the Entry article combines the counts and links only toWorkers.md. God-node articles also route same-label links to the first file.Verification
v8at013a6461and passed with the patch.python -m pytest tests/test_wiki.py tests/test_wiki_truncation_indicator.py -q --tb=shorton Windows reported 51 passed and one built-in skip.graphify update .passed. Scoped Pyright diagnostics matched cleanv8.