-
Notifications
You must be signed in to change notification settings - Fork 351
Add new properties parser which returns new metadata for sulu form xmls #7943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new properties parser which returns new metadata for sulu form xmls #7943
Conversation
4565102
to
717fd56
Compare
@@ -32,7 +32,7 @@ class OptionMetadata | |||
protected $type; | |||
|
|||
/** | |||
* @var string|int|OptionMetadata[] | |||
* @var string|float|int|OptionMetadata[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was adjusted by @draconivis in: alexander-schranz#8 (comment)
we need to recheck if "new metadata" ever writes as a value float
if not we need adjust the test that such data comes as string '1.5'
and maybe need to parse it to a float value.
ded1b16
to
e38b834
Compare
e38b834
to
6ad09b9
Compare
96fc201
to
f60cce3
Compare
e9c9471
to
d54d9dc
Compare
782af4e
to
60cb5d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this service is a copy of existing FormMetadataMapper and old structure loader logic, I did just a little bit refactoring on the xml parse and phpstan baselined the other parts.
60cb5d1
to
0d69812
Compare
@@ -35,7 +26,7 @@ | |||
*/ | |||
class FormMetadataMapper | |||
{ | |||
public function __construct(private PropertyMetadataMapperRegistry $propertyMetadataMapperRegistry) | |||
public function __construct() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
Adopted the FormXmlLoader with blocks test to test also against global blocks as only the deprecated and the service whiche we want to remove included global blocks metadata. |
8bb17ed
to
1434a3d
Compare
What's in this PR?
Add new properties parser which returns new metadata.
Why?
Example Usage
This is more internal service. External service should get the metadata via the
MetadataProviderRegistry
service instead of using the underlaying services.To Do (Meta WIP)
mapPropertyMetadata
similar to old and imagemap integrationSchemaMetadataProvider
tests, see removed FormMetadataMapperTest.php Schema testsCall to a member function toJsonSchema()
on arrayTo Do 2
FieldMetadata::findOption
FormMetadata::findTag
FormMetadata::hasTag
To Do 3 all test for
mapPropertyMetadata
Check existing changs
ImageMapContentTypeTest
to new MetadataMediaSelectionContentTypeTest
to new MetadataSingleMediaSelectionTest::testMapPropertyMetadata
to new MetadataPageTreeRouteContentTypeTest::testMapPropertyMetadata
to new MetadataNumberTest::testMapPropertyMetadata
new MetadatatestMapPropertyMetadata
unit tests