## What `feature:enable <feature> <target>` now accepts a percentage like `25%` as the target, in addition to a user email or `all`. ```bash php artisan feature:enable AiConsentSettings 25% ``` This activates the feature for a random `ceil(total * N/100)` sample of the **current** users, persisted in Pennant's `features` table — no need to edit the feature class and redeploy for a percentage-based rollout. ## Notes - It targets the current user base. New users keep the feature's default (`false`) unless the command is run again. - Percentage is validated to be between 1 and 100. - `feature:disable` was left unchanged — disabling for a random subset has no clear use case. ## Test plan - [x] `feature:enable AiConsentSettings 40%` enables the feature for exactly 4 of 10 users - [x] An out-of-range percentage (`0%`) fails |
||
|---|---|---|
| .. | ||
| AgentDatabaseCommandTest.php | ||
| CheckBankLogosCommandTest.php | ||
| FeatureEnableCommandTest.php | ||
| GenerateLandingAuthLinkCommandTest.php | ||
| ResetDemoAccountCommandTest.php | ||
| ResetUserCategoriesCommandTest.php | ||
| SendPaywallFollowUpEmailsCommandTest.php | ||
| SendSubscriptionCancelledEmailCommandTest.php | ||
| SendUpdateEmailCommandTest.php | ||
| SetBankLogoCommandTest.php | ||
| SetupMainUserCommandTest.php | ||