michaelmcandrew / pop

A library for populating a CiviCRM site with fake data
4 stars 2 forks source link

Allow executing without patching cv #7

Closed totten closed 1 year ago

totten commented 1 year ago

Overview

Add the pop console command directly into pop.git

Background/Motivation

@michaelmcandrew I needed some sample data recently, so I wondered if I could try pop again.

In the previous work, it required adding everything to cv (https://github.com/civicrm/cv/pull/3). The discussion was a bit long, but the final problem (where the PR stalled) was the raw size of the dependencies -- Faker needs a lot of data, and embedding it incv.phar made it too heavy. So we needed a way to run it without embedding the whole thing in cv.phar.

With this PR, pop is a standalone command. To connect to CiviCRM, it calls cv pipe (aka Civi::pipe(); Pipe Reference). The advantage of this arrangement:

totten commented 1 year ago

So I've gotten a lot further with using pop than I did in prior years. My goal today was to load large dummy data-set. In particular, I ran these:

After running these, I just wanted to braindump some observations/speculations:

michaelmcandrew commented 1 year ago

@totten merging this. glad it was useful. haven't used it for years. feel free to take ownership if you like :)