Skip to content

chore: Cherry-pick cdnObjectPickerMulti* validation rules onto develop - #458

Merged
hellopablo merged 1 commit into
developfrom
chore/cherry-pick-form-validation
Sep 6, 2026
Merged

chore: Cherry-pick cdnObjectPickerMulti* validation rules onto develop#458
hellopablo merged 1 commit into
developfrom
chore/cherry-pick-form-validation

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Summary

Cherry-picks the CDN object-picker validation rules from feature/pre-new-admin, ports rules that used to live in nails/common to auto-discovered Nails\Cdn\Validation\Rule classes. Depends only on the base validation engine in nails/common#558 (AbstractRule/Context), not on the Validator subclass work.

  • fb5e207 (ff63c10) feat: Provide the cdnObjectPickerMulti* validation rules from the module

Conflicts resolved

  • src/Constants.php: trivial — develop had independently added MEDIA_MANAGER_V1_URL/MEDIA_MANAGER_V2_URL consts next to the same block this commit adds RULE_* consts to. Merged both in.

Verification

This module has no vendor/ (not composer-installed locally) and no existing test files, so I could only lint the new/changed files — all clean. No PHPUnit/PHPStan run possible here without a full composer install, which felt disproportionate for a self-contained 4-file addition that mirrors the exact pattern of the equivalent rules already reviewed in common.

Do not merge yet — holding for review.

🤖 Generated with Claude Code

…odule

Ports `cdnObjectPickerMultiObjectRequired`, `cdnObjectPickerMultiLabelRequired` and `cdnObjectPickerMultiAllRequired` from `nails/common` as auto-discovered `Nails\Cdn\Validation\Rule` classes with the same string names, and adds matching `RULE_*` constants. Requires the CodeIgniter-free FormValidation in `nails/common`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit ff63c10)
@hellopablo
hellopablo merged commit c658d68 into develop Sep 6, 2026
4 checks passed
@hellopablo
hellopablo deleted the chore/cherry-pick-form-validation branch September 6, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant