Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
typed data system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Nov 2013 at 10:03 UTC
Updated:
29 Jul 2014 at 23:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mariancalinro commentedComment #2
mariancalinro commentedComment #3
fagoIt's all tests, so "Complex data constraint" should be enough.
unnecessary empty line
Summary should fit in 80chars, so best split it in a summary and additional explanation.
Misses spaces after the commas.
I'm wondering what happens when we pass a map without the "key" being set.
Imo, it should be ignored when the value is not set as you have to add a NotNull constraint for what should be required. Howsoever, we should add a case for that as well.
Comment #4
fagoAdressed the remarks and extended the test-coverage for the case mentioned in 5.
Comment #5
fago4: d8_complex_data_constraint.patch queued for re-testing.
Comment #6
yched commentedMinor: s/Not existing key /Constraint on non-existing key/ ?
Otherwise, same as #2142981-11: Test for AllowedValuesConstraintValidator : would be really nice to get #2132145: Rename 'typed_data' / Drupal::typedData() to 'typed_data_manager' / Drupal::typedDataManager committed...
Comment #7
berdir4: d8_complex_data_constraint.patch queued for re-testing.
Comment #9
fagoAddressed #6 and updated to account for the rename.
Comment #10
yched commented$this->typedData could be renamed accordingly ;-) The point of the rename wsa to remove the naming confusion between data items and their factoty.
Nitpick though. Otherwise RTBC
Comment #11
webchickCommitted and pushed to 8.x. Thanks!