Page MenuHomePhabricator

Add "--force" and "--quickly" flags to `bin/lipsum`
ClosedPublic

Authored by epriestley on Feb 27 2017, 1:14 PM.
Tags
None
Referenced Files
F18200314: D17421.id41890.diff
Mon, Aug 18, 5:04 AM
F18044362: D17421.id41896.diff
Sun, Aug 3, 7:06 AM
F18039631: D17421.id.diff
Sun, Aug 3, 3:44 AM
F18025368: D17421.diff
Sat, Aug 2, 9:42 PM
F17948240: D17421.id.diff
Jul 31 2025, 8:25 PM
F17940092: D17421.id41890.diff
Jul 31 2025, 3:53 AM
F17939745: D17421.diff
Jul 31 2025, 3:23 AM
F17766124: D17421.id.diff
Jul 23 2025, 3:11 AM
Subscribers
None

Details

Summary

Ref T12319.

  • Lipsum can trash an install by creating a lot of junk that's hard to get rid of, so we're cautious about letting you run it. Add a --force flag if you're sure you know what you're doing. This makes the edit/test cycle a bit easier when actually writing Lipsum generators.
  • Lipsum normally sleeps for a second before creating objects, to give users more control over how much stuff they create and limit the amount of damage caused by mistakes. Sometimes, you want to generate a LOT of stuff because you want to reproduce a performance/scale issue (like T12319). Add a --quickly flag to generate objects as fast as possible.
  • When loading random users (used as authors, assignees, etc), also load user settings so we can ConduitCall with them.
  • Allow generators to return a PHID instead of an actual object (more convenient for Conduit-based generators).
Test Plan
  • With next change, ran lipsum generate badges --force --quickly.

Diff Detail

Repository
rP Phabricator
Branch
lipsum3
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 15791
Build 20880: Run Core Tests
Build 20879: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 27 2017, 3:42 PM
This revision was automatically updated to reflect the committed changes.