Last modified: 2013-11-30 05:41:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51167, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49167 - Table "namespaces" only exists in enwiki_p
Table "namespaces" only exists in enwiki_p
Status: RESOLVED WONTFIX
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: High major
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks: labs-replication
  Show dependency treegraph
 
Reported: 2013-06-05 08:32 UTC by Magnus Manske
Modified: 2013-11-30 05:41 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Magnus Manske 2013-06-05 08:32:41 UTC
The (rather useful) table "namespaces" is exposed in enwiki_p, but for no other wiki I checked (dewiki_p, svwiki_p, commonswiki_p).

Will you expose the table for the other wikis as well soon, or do I have to change my code to use the API instead? (DB would be more elegant and faster, but mainly I just would like to know either way ASAP)
Comment 1 Alex Monk 2013-06-05 16:40:34 UTC
That table doesn't seem up to date to me (compare it to the wgNamespaceIds JavaScript variable when on the wiki), and is not provided by MediaWiki core...
Comment 2 Bawolff (Brian Wolff) 2013-06-05 16:41:54 UTC
Wikimedia wikis don't use the namespace table for storing namespaces. (We use a cdb database instead) - see $wgInterwikiCache. I imagine the namespace tables in the db don't look anything like the actual namespaces in use.
Comment 3 Magnus Manske 2013-06-06 09:58:50 UTC
Thanks, I'll use the API instead.
Comment 4 Addshore 2013-11-29 17:09:13 UTC
If we are not going to add the namespace tables to all DBs could we please remove it from the enwiki db as it appears to be causing some confusion :)
Comment 5 Marc A. Pelletier 2013-11-29 18:32:22 UTC
There are a number of old, generally obsolete tables in some of the older wikis (enwiki being the most cluttered, for historical reason).

While the mediawiki code base no longer uses those tables (and, in some cases, never used them in production), we replicate under the principle of "maximal transparency" and they are made available wherever they do not include private information.

While we could remove the views to old or unused tables, I see no reason to remove access to that historical data.
Comment 6 p858snake 2013-11-30 05:41:21 UTC
(In reply to comment #4)
> If we are not going to add the namespace tables to all DBs could we please
> remove it from the enwiki db as it appears to be causing some confusion :)

Open a new bug for that please.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links