[Wikidata-bugs] [Maniphest] [Reopened] T183019: Wikibase must not insert local recentchanges entries for nonexistent local users (days: 5)

2018-11-29 Thread hashar
hashar reopened this task as "Open".hashar added a comment.
Based on Brad comment at T210732#4785277  that might have regressed :(TASK DETAILhttps://phabricator.wikimedia.org/T183019EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ladsgroup, hasharCc: hashar, Stashbot, gerritbot, WMDE-leszek, hoo, Lydia_Pintscher, daniel, Ladsgroup, aude, thiemowmde, Anomie, Aklapper, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, lisong, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, _jensen, D3r1ck01, Fjalapeno, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Reopened] T183019: Wikibase must not insert local recentchanges entries for nonexistent local users (days: 5)

2018-02-23 Thread Anomie
Anomie reopened this task as "Open".Anomie added a comment.
It appears that the fix committed for this task isn't actually being used. Doing some investigation, I find:

anomie@terbium:~$ mwrepl enwiki
hphpd> $c = Wikibase\Client\WikibaseClient::getDefaultInstance();
$c = Wikibase\Client\WikibaseClient::getDefaultInstance();
hphpd> =Wikimedia\TestingAccessWrapper::newFromObject( $c->getRecentChangeFactory() )->externalUsernames;
=Wikimedia\TestingAccessWrapper::newFromObject( $c->getRecentChangeFactory() )->externalUsernames;
null

In other words, the new ExternalUsernames class isn't being used in RecentChangeFactory.

hphpd> $cc = Wikimedia\TestingAccessWrapper::newFromObject( $c );
$cc = Wikimedia\TestingAccessWrapper::newFromObject( $c );
hphpd> $s = $cc->siteLookup->getSite( $c->getRepositoryDefinitions()->getDatabaseNames()[''] ); 
$s = $cc->siteLookup->getSite( $c->getRepositoryDefinitions()->getDatabaseNames()[''] );
hphpd> =$s->getInterwikiIds();
=$s->getInterwikiIds();
Array
(
)

That's probably why, for whatever reason it's not finding any interwiki ID.

Digging into that SiteLookup class, it looks like someone needs to run whatever maintenance script will repopulate site_identifiers on every wiki, and then make sure it gets re-run in the future whenever the interwiki map changes. That should fix the problem for WMF sites.

I also note that this behavior of not using ExternalUsernames if the client wiki doesn't have an interwiki map entry for the repo is going to start failing once the actor table starts being used. Instead of falling back to just not using ExternalUsernames, you might want to start throwing exceptions to tell people they need to configure the necessary interwiki map entry.TASK DETAILhttps://phabricator.wikimedia.org/T183019EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: Ladsgroup, AnomieCc: gerritbot, WMDE-leszek, hoo, Lydia_Pintscher, daniel, Ladsgroup, aude, thiemowmde, Anomie, Aklapper, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Wikidata-bugs, Mbch331___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs