bert.hausmans
a40486572b
refactor(form-builder): align binding registry with model column reality (WS-6)
Three renames (registry → matches actual Eloquent model column):
- person.phone_number → person.phone
- company.email → company.contact_email
- company.phone_number → company.contact_phone
Six removals (registry attribute does not exist as model column,
intentionally deferred):
- person.dietary_preferences (custom_fields JSON path; BACKLOG
FORM-BINDING-JSON-PATH)
- artist.email (Artist model absent + column absent)
- artist.stage_name (column absent)
- artist.tech_rider (column absent)
- artist.hospitality_rider (column absent)
- artist entity removed entirely (no v1 bindable attributes)
Decisions documented inline in binding_targets.php and tracked
via BACKLOG entries (Task 4 of this session).
Tests touched:
- BindingTypeRegistryTest:
test_resolve_person_dietary_preferences_returns_collection_array →
renamed test_resolve_collection_attribute_returns_collection_array,
uses Config::set to inject a synthetic 'test_entity.tags' collection
target. v1 has no production collection targets (BACKLOG
FORM-BINDING-JSON-PATH).
test_validate_append_strategy_accepts_collection_target — same pattern.
test_entities_returns_known_entities — drop 'artist' from expected list.
test_attributes_for_person_includes_email_and_dietary_preferences →
renamed _includes_email_and_phone (the renamed attribute).
- AppendStrategyRequiresCollectionTargetTest:
test_passes_with_collection_target — same Config::set synthetic-
target pattern.
- MaxOneIdentityKeyPerTargetEntityTest:
test_passes_with_one_identity_key_each_on_different_entities —
'company.email' → 'company.contact_email' to match registry rename.
Refs: WS-6 sessie 3a binding-target drift audit
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 20:26:15 +02:00
..
2026-04-28 20:26:15 +02:00
2026-03-29 23:19:06 +02:00
2026-04-15 08:44:10 +02:00
2026-01-06 03:11:46 +01:00
2026-01-06 03:11:46 +01:00
2026-04-15 08:44:10 +02:00
2026-04-13 00:44:34 +02:00
2026-01-06 03:11:46 +01:00
2026-01-06 03:11:46 +01:00
2026-04-24 20:09:27 +02:00
2026-04-26 13:18:30 +02:00
2026-04-17 11:54:11 +02:00
2026-01-06 03:11:46 +01:00
2026-01-06 03:11:46 +01:00
2026-03-29 23:19:06 +02:00
2026-04-17 11:54:11 +02:00
2026-04-14 01:34:51 +02:00
2026-04-14 16:14:37 +02:00
2026-01-06 03:11:46 +01:00
2026-01-06 03:11:46 +01:00
2026-04-25 04:03:31 +02:00