Page MenuHomePhabricator

Pre-populate database with sample data for new MW
Open, LowestPublic

Description

Author: aditya.iiita102

Description:
When a new instance of MW is installed, all the pages are empty which make it difficult to instantly work on the bug fixes because most bugs do not reflect on the developer's machine in absence of data.

To give a quick start, all database tables should be populated with sample data.

Make a file "seeds.php", with SQL INSERT commands to populate all/relevant tables.


Version: unspecified
Severity: normal

Details

Reference
bz60116

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:58 AM
bzimport set Reference to bz60116.
bzimport added a subscriber: Unknown Object (MLST).

Bulk unassigning bugs from Ori.

bd808 triaged this task as Lowest priority.Dec 30 2014, 1:51 AM
bd808 subscribed.

Some examples of things I would like to see
A page with a complete infobox e.g. a clone of the Barack Obama page (including all templates)
A page for working with Wikidata e.g. A clone of the Albert Einstein wikidata (installed in wikidata instance) and linked wikipedia entry
A page with clean up templates
A page with alternative languages e.g. San Francisco
All existing wikidata.org property definitions

Some examples of things I would like to see
A page for working with Wikidata e.g. A clone of the Albert Einstein wikidata (installed in wikidata instance) and linked wikipedia entry
All existing wikidata.org property definitions

@Jdlrobson can you file these two as a sub-task specific to the wikidata role? Since that is not "core" functionality it should come with that role I think.

@bd808 the issue is the Wikidata stuff requires an article on the English Wikipedia instance that links to it so they'd need to be created the same way and it is something to consider.

Once the infrastructure is provided for adding stock content, if we did it in such a way that non-Vagrant devs like me can help out - e.g. write json files / text blobs I am more than happy to help out.

@bd808 the issue is the Wikidata stuff requires an article on the English Wikipedia instance that links to it so they'd need to be created the same way and it is something to consider.

Once the infrastructure is provided for adding stock content, if we did it in such a way that non-Vagrant devs like me can help out - e.g. write json files / text blobs I am more than happy to help out.

We have the mediawiki::import_dump Puppet define that can be used to load a normal MediaWiki dump file (as created by Special:Export). The define uses the importDump.php maintenance script to load a dump that contains one or more pages into a target wiki. The application of each dump is guarded by a check to see if a specific page exists in the wiki. There is no facility in the current Puppet code to update an existing page. Usage examples can be seen in the gwtoolset role (ie puppet/modules/role/manifests/gwtoolset.pp).

Change 226230 had a related patch set uploaded (by Robmoen):
WIP: Add testarticles role.

https://gerrit.wikimedia.org/r/226230

Is this about creating pages specifically? The title sounds much more generic than that.

Something like Faker made available via a role would be super nice.

Change 226230 abandoned by Robmoen:
WIP: Add testarticles role.

https://gerrit.wikimedia.org/r/226230