@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make lipsum project generator also fill in project description

Summary:
`./bin/lipsum` allows to fill up a Phorge instance with bogus data for testing. When creating a project, the code creates a project title, project status, random subscribers/members and picks a random project creator, but does not set a project description.

Make this code also set a project description (which is implemented as a custom field).

Closes T15748

Test Plan:
* On the CLI, use `./bin/lipsum generate projects` to create a bogus project.
* In the web browser, go to `/project/query/all/` and open the project page of the recently created bogus project: See no project description.
* Apply this change.
* On the CLI, use `./bin/lipsum generate projects` to create another bogus project.
* In the web browser, go to `/project/query/all/` and open the project page of the recently created bogus project: See a random project description.

Reviewers: O1 Blessed Committers, 20after4

Reviewed By: O1 Blessed Committers, 20after4

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15748

Differential Revision: https://we.phorge.it/D25545

+6
+6
src/applications/project/lipsum/PhabricatorProjectTestDataGenerator.php
··· 19 19 PhabricatorProjectNameTransaction::TRANSACTIONTYPE, 20 20 $this->newProjectTitle()); 21 21 22 + $xactions[] = id(new PhabricatorProjectTransaction()) 23 + ->setTransactionType(PhabricatorTransactions::TYPE_CUSTOMFIELD) 24 + ->setOldValue('') 25 + ->setMetadataValue('customfield:key', 'std:project:internal:description') 26 + ->setNewValue($this->newProjectTitle()); 27 + 22 28 $xactions[] = $this->newTransaction( 23 29 PhabricatorProjectStatusTransaction::TRANSACTIONTYPE, 24 30 $this->newProjectStatus());