Page MenuHomeMiraheze

Maintain default wikimedia sites when running populateWikibaseSitesTables
Closed, DeclinedPublic

Description

Per request in parent task, the MirahezeMagic script should maintain the wikimedia sites as well

Event Timeline

Unknown Object (User) added a comment.Jan 5 2021, 04:40

I will try to look into it, and it may be as simple as adding the Wikimedia sites to populateWikibaseSitesTable.php#L69

Unknown Object (User) lowered the priority of this task from Normal to Low.Jan 8 2021, 01:18
Unknown Object (User) closed this task as Declined.Jan 10 2021, 05:32
Unknown Object (User) claimed this task.

Due to the complexity of this and the conflict it'd have with our WikiDiscover API, I'm going to have to mark this as declined.

John subscribed.

Due to the complexity of this and the conflict it'd have with our WikiDiscover API, I'm going to have to mark this as declined.

Making another API request makes this complex, when all we did before was essentially change the URL and make a minor schematic change?

RhinosF1 removed Unknown Object (User) as the assignee of this task.Jan 10 2021, 12:19
Unknown Object (User) added a comment.Jan 10 2021, 17:06
In T6045#132149, @John wrote:

Due to the complexity of this and the conflict it'd have with our WikiDiscover API, I'm going to have to mark this as declined.

Making another API request makes this complex, when all we did before was essentially change the URL and make a minor schematic change?

My apologies I just looked at your reply on PR again. I misunderstood. Sorry

Unknown Object (User) moved this task from Unsorted to Long Term on the Universal Omega board.Mar 21 2021, 19:46
Unknown Object (User) removed a project: Universal Omega.Mar 27 2021, 15:40
Unknown Object (User) unsubscribed.Apr 3 2021, 19:58
Unknown Object (User) subscribed.Jun 21 2021, 08:48
Unknown Object (User) edited projects, added Configuration; removed MediaWiki.Jul 24 2021, 16:53
Reception123 removed a subscriber: Unknown Object (User).Aug 24 2021, 19:05
Unknown Object (User) claimed this task.Sep 7 2021, 00:08
Unknown Object (User) moved this task from Backlog to In Progress on the Configuration board.
Unknown Object (User) subscribed.
Unknown Object (User) added a comment.Nov 22 2021, 23:21
universalomega@test3:~$ sudo -u www-data php /srv/mediawiki/w/extensions/MirahezeMagic/maintenance/populateWikibaseSitesTable.php --wiki=test3wiki --api-group=wikidiscover --api-group=sitematrix
done.
done.
Wikimedia\Rdbms\DBQueryError from line 1809 of /srv/mediawiki/w/includes/libs/rdbms/database/Database.php: Error 1062: Duplicate entry 'equivalent-aa' for key 'PRIMARY' (db12)
Function: DBSiteStore::saveSites
Query: INSERT INTO `site_identifiers` (si_site,si_type,si_key) VALUES (19808,'equivalent','aa')

doing this with both SiteMatrix and WikiDiscover seems to conflict, I am unsure if this is even really possible to do both.

Unknown Object (User) closed this task as Declined.EditedDec 6 2021, 08:04

Unfortunately I'm going to mark this as declined per above, it seems that for some reason attempting to do from both WikiDiscover and SiteMatrix conflict, making this not correctly work (that is unless I'm missing something). If I am please do point that out and reopen this task. Thanks!