Skip to content

Document namespaceId cross-wiki filtering caveat in the graph model#948

Open
JeroenDeDauw wants to merge 1 commit into
fix/relation-link-namespacefrom
docs/namespace-id-farm-note
Open

Document namespaceId cross-wiki filtering caveat in the graph model#948
JeroenDeDauw wants to merge 1 commit into
fix/relation-link-namespacefrom
docs/namespace-id-farm-note

Conversation

@JeroenDeDauw

@JeroenDeDauw JeroenDeDauw commented Jun 26, 2026

Copy link
Copy Markdown
Member

Implements a documentation suggestion I raised while reviewing #946, at @JeroenDeDauw's request.
Context: the NeoWiki codebase, PR #946, and the multi-wiki graph model (ADR 22).
Written by Claude Code, Opus 4.8 (1M context)

Follows-up to #946

Clarifies how the new namespaceId page property behaves when a graph is shared by multiple wikis. Built-in namespace IDs (e.g. 0 main, 12 Help, 14 Category) are identical on every wiki, so namespaceId filtering behaves consistently across wikis. Custom namespaces defined via $wgExtraNamespaces get per-wiki IDs that may differ in meaning between wikis, so they should be paired with wiki_id for unambiguous cross-wiki filtering.

This sharpens the "canonical MediaWiki namespace ID" wording from #946, which is precise for built-in namespaces but not for custom ones when the graph holds more than one wiki.

🤖 Generated with Claude Code

Follows-up to #946

Clarifies that the new `namespaceId` page property uses MediaWiki's canonical
namespace IDs: built-in namespaces have the same ID on every wiki, so filtering
behaves consistently when the graph is shared by multiple wikis, while custom
namespaces defined via $wgExtraNamespaces get per-wiki IDs and should be paired
with wiki_id for unambiguous cross-wiki filtering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw force-pushed the docs/namespace-id-farm-note branch from bfa9a61 to 88acf25 Compare June 26, 2026 20:33
@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review June 26, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant