Last modified: 2014-04-27 12:05:44 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 T63699, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61699 - Global user contributions: Namespace problem
Global user contributions: Namespace problem
Status: RESOLVED FIXED
Product: Tool Labs tools
Classification: Unclassified
Global user contributions (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Luxo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-20 19:58 UTC by George Barnick (Meiko)
Modified: 2014-04-27 12:05 UTC (History)
7 users (show)

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


Attachments

Description George Barnick (Meiko) 2014-02-20 19:58:35 UTC
Currently, global user contributions (guc) shows a users contributions on many Wikimedia projects, but one it leaves out is MediaWiki.org (mediawikiwiki). MediaWiki.org is the project I'm most active at second to the English Wikipedia, so I, and many others I'm sure, think that it should be included in guc.
Comment 1 PiRSquared17 2014-02-20 20:02:32 UTC
Actually, scratch the confirmation. I see MW.org here: https://tools.wmflabs.org/guc/?user=Azhar+sabri&blocks=true&lang=en

Please give steps to reproduce.
Comment 2 George Barnick (Meiko) 2014-02-20 20:16:46 UTC
(In reply to PiRSquared17 from comment #1)
> Actually, scratch the confirmation. I see MW.org here:
> https://tools.wmflabs.org/guc/?user=Azhar+sabri&blocks=true&lang=en
> 
> Please give steps to reproduce.

Weird, I don't see MediaWiki.org on it, even though it's the project I have the second most edits on. See https://tools.wmflabs.org/guc/?user=GeorgeBarnick and https://www.mediawiki.org/wiki/Special:CentralAuth/GeorgeBarnick
Comment 3 PiRSquared17 2014-02-20 23:21:18 UTC
(In reply to George Barnick from comment #2)
> (In reply to PiRSquared17 from comment #1)
> > Actually, scratch the confirmation. I see MW.org here:
> > https://tools.wmflabs.org/guc/?user=Azhar+sabri&blocks=true&lang=en
> > 
> > Please give steps to reproduce.
> 
> Weird, I don't see MediaWiki.org on it, even though it's the project I have
> the second most edits on. See
> https://tools.wmflabs.org/guc/?user=GeorgeBarnick and
> https://www.mediawiki.org/wiki/Special:CentralAuth/GeorgeBarnick

I see it in mine ([[luxo:PiRSquared17]]). OTOH, it is missing simple.wikipedia, which is the project I have the second most edits on. Can you figure out which users are displayed and which aren't? That might help narrow it done.
Comment 4 PiRSquared17 2014-02-20 23:21:53 UTC
s/done/down/
Comment 5 Nemo 2014-02-20 23:24:40 UTC
simple and mw.o are both on s3, it would be useful to find examples outside s3.
Comment 7 Glaisher 2014-02-21 10:31:39 UTC
(In reply to PiRSquared17 from comment #3)
> (In reply to George Barnick from comment #2)
> > (In reply to PiRSquared17 from comment #1)
> > > Actually, scratch the confirmation. I see MW.org here:
> > > https://tools.wmflabs.org/guc/?user=Azhar+sabri&blocks=true&lang=en
> > > 
> > > Please give steps to reproduce.
> > 
> > Weird, I don't see MediaWiki.org on it, even though it's the project I have
> > the second most edits on. See
> > https://tools.wmflabs.org/guc/?user=GeorgeBarnick and
> > https://www.mediawiki.org/wiki/Special:CentralAuth/GeorgeBarnick
> 
> I see it in mine ([[luxo:PiRSquared17]]). OTOH, it is missing
> simple.wikipedia, which is the project I have the second most edits on. Can
> you figure out which users are displayed and which aren't? That might help
> narrow it done.

I can see both mw.org and sewp's edits from [[luxo:PiRSquared17]].
Comment 8 Nemo 2014-02-21 16:18:26 UTC
(In reply to Glaisher from comment #7)
> I can see both mw.org and sewp's edits from [[luxo:PiRSquared17]].

What is "sewp"? simple, se (Sami) or sv (Swedish)?
Comment 9 Glaisher 2014-02-21 16:22:45 UTC
(In reply to Nemo from comment #8)
> (In reply to Glaisher from comment #7)
> > I can see both mw.org and sewp's edits from [[luxo:PiRSquared17]].
> 
> What is "sewp"? simple, se (Sami) or sv (Swedish)?

Sorry. Simple English Wikipedia. AFAIK, that is how it is normally shortened.
Comment 10 PiRSquared17 2014-02-21 22:51:12 UTC
[[WP:SEWP]] = simplewiki
Comment 11 MZMcBride 2014-03-03 17:31:32 UTC
Where is the source code of <https://tools.wmflabs.org/guc/>?
Comment 12 Luxo 2014-03-05 10:47:47 UTC
(In reply to MZMcBride from comment #11)
> Where is the source code of <https://tools.wmflabs.org/guc/>?

Sorry I don't had the time to publish it until now, I'll put it on git when I get the repository <https://www.mediawiki.org/wiki/Git/New_repositories/Requests>

Would be nice to have some more maintainers for this tool, I don't have the time to really improve the tool.
Comment 13 Luxo 2014-03-05 17:52:38 UTC
Ok the error was because of the namespaces. On the toolserver, there was a table in the database with all namespaces of the different wikis in it. Now I use a fix list because there is no table on labs. 
If a namespace-id was unknown, the tool threw a exception for this wiki but didn't showed it. Now if a namespace is unknown, it just call the namespace "UNKNOWN NAMESPACE:" 

Maybe anyone has a better idea how to get the namespace names into the tool?
Comment 14 PiRSquared17 2014-03-06 01:09:46 UTC
(In reply to Luxo from comment #13)
> Ok the error was because of the namespaces. On the toolserver, there was a
> table in the database with all namespaces of the different wikis in it. Now
> I use a fix list because there is no table on labs. 
> If a namespace-id was unknown, the tool threw a exception for this wiki but
> didn't showed it. Now if a namespace is unknown, it just call the namespace
> "UNKNOWN NAMESPACE:" 
> 
> Maybe anyone has a better idea how to get the namespace names into the tool?

Bug 48625. You could fetch unknown namespace ids from the API and store the namespaces in a SQL table or (probably more efficient) a redis cache. If the namespace is already in the SQL table (or the redis cache, JSON or whatever other format you are using), just use that value. If it is not in the cache, add it. With redis you could have the data expire after some time if you want. Note that you would need to store them by wiki, as namespace names vary between projects.
Comment 15 Luxo 2014-03-07 10:19:53 UTC
Fixed like PiRSquared17 proposed.
Comment 16 George Barnick (Meiko) 2014-03-07 14:07:53 UTC
It's working now, thanks! :) The only thing is that [[luxo:]] is showing "1604 edits found in 42 projects." yet CentralAuth says I have 1,650". I'm not sure what guc is still missing...
Comment 17 Nemo 2014-03-07 16:32:21 UTC
(In reply to George Barnick from comment #16)
> It's working now, thanks! :) The only thing is that [[luxo:]] is showing
> "1604 edits found in 42 projects." yet CentralAuth says I have 1,650". I'm
> not sure what guc is still missing...

Probably CentralAuth is wrong, it only sums the edit_count field from database, doesn't count actual edits.

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


Navigation
Links