8000 Add new properties parser which returns new metadata by alexander-schranz · Pull Request #7943 · sulu/sulu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add new properties parser which returns new metadata #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

Draft
wants to merge 1 commit into
base: 3.0
Choose a base branch
from

Conversation

alexander-schranz
Copy link
Member
@alexander-schranz alexander-schranz commented May 5, 2025
Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #
Related issues/PRs #
License MIT
Documentation PR sulu/sulu-docs#

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

  • Block mapPropertyMetadata similar to old and imagemap integration
  • Add SchemaMetadataProvider tests, see removed FormMetadataMapperTest.php Schema tests
  • Update Tests

@alexander-schranz alexander-schranz added the Technical Debt Impacts code quality, no or just small impact on end developers and users label May 5, 2025
Comment on lines -63 to -70
/**
* @param ContentItemMetadata[] $itemsMetadata
*/
public function mapSchema(array $itemsMetadata): SchemaMetadata
{
return new SchemaMetadata($this->mapSchemaProperties($itemsMetadata));
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only method we may still require. As discussed with @Prokyonn we are moving this into an own SchemaMetadataProvider service which is build ontop of the new metadata and not the old one. We use that service then in the formxmlloader and in the future templatexmlloader (currently structurexmlloader)

@alexander-schranz alexander-schranz force-pushed the feature/refactor-form-xml-loader-to-new-properties-parser branch 4 times, most recently from 49dd444 to 4565102 Compare May 5, 2025 15:24
@alexander-schranz alexander-schranz force-pushed the feature/refactor-form-xml-loader-to-new-properties-parser branch from 4565102 to 717fd56 Compare May 5, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Technical Debt Impacts code quality, no or just small impact on end developers and users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0