## What Follow-up to the `--no-discord` flag added to `stats:experiment-funnel`. Extends the same flag to the **other stats report commands that post to Discord**, so any of them can be run on demand (e.g. inside the prod container) and just printed to the console without posting: ```bash php artisan stats:subscription-funnel --no-discord php artisan stats:ai-cohort-report --no-discord php artisan stats:stuck-cohort-report --no-discord php artisan stats:daily-report --no-discord ``` ## How - The two **funnel** commands (`subscription-funnel`) already printed their table to the console, so `--no-discord` just short-circuits the `->send()`. - The **cohort/daily** commands only ever built a Discord embed. A small `App\Console\Commands\Concerns\RendersReportToConsole` trait renders an embed (title / description / fields) as plain text, so `--no-discord` prints a readable report to the console instead of posting. - Default behaviour is unchanged: without the flag (and on the scheduled weekly/daily runs) they post to Discord exactly as before. ## Tests A `--no-discord` test added to each command (`Http::assertNothingSent()` + the command succeeds). Pint + Larastan + all four command suites green. > Note: the commands query the default DB connection, so for **production** numbers run them inside the prod container (Coolify terminal). |
||
|---|---|---|
| .. | ||
| .pest | ||
| Browser | ||
| Feature | ||
| Performance | ||
| Support | ||
| Unit | ||
| Pest.php | ||
| TestCase.php | ||
| bootstrap.php | ||