Last modified: 2014-04-27 12:05:44 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.
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.
(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
(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.
s/done/down/
simple and mw.o are both on s3, it would be useful to find examples outside s3.
(https://noc.wikimedia.org/conf/highlight.php?file=s3.dblist)
(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]].
(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)?
(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.
[[WP:SEWP]] = simplewiki
Where is the source code of <https://tools.wmflabs.org/guc/>?
(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.
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?
(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.
Fixed like PiRSquared17 proposed.
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...
(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.