Skip to content

Replace old metadata usage in new content bundle #7931

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

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Apr 29, 2025

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets fixes #
Related issues/PRs requires #7933,
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Replace old metadata usage in new content bundle.

  • Usage in TemplateDataMapper
  • Usage in RoutableDataMapper
  • Usage in ContentTeaserProvider
  • Usage in ExampleLinkProvider (currently only one which used the old ContentLinkProvider service)

There are a few more todo but in upcoming PRs.

Why?

Get rid of old metadata.

@alexander-schranz alexander-schranz added the Technical Debt Impacts code quality, no or just small impact on end developers and users label Apr 29, 2025
@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch from 74ebe3d to fb13d5b Compare April 29, 2025 15:26
@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch 2 times, most recently from a01acfc to 270e4f8 Compare April 30, 2025 09:56
$value = $property->isLocalized() ? $defaultLocalizedData[$name] ?? null : $defaultLocalizedData[$name] ?? null;
$isMultilingual = $property->isMultilingual();

$value = $isMultilingual ? $defaultLocalizedData[$name] ?? null : $defaultLocalizedData[$name] ?? null;
Copy link
Member Author

Choose a reason for hiding this comment

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

Reminder for us check multilingual="false" handling. /cc @Prokyonn

@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch 5 times, most recently from 808ca19 to 130e4bf Compare April 30, 2025 10:47
@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch 2 times, most recently from 46ba1a4 to 0f3b642 Compare April 30, 2025 10:51
@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch 2 times, most recently from 5c5fd75 to 80f51ea Compare April 30, 2025 12:33
@alexander-schranz alexander-schranz force-pushed the enhancement/replace-usage-of-older-metadata-structure branch from 80f51ea to 962b885 Compare April 30, 2025 13:38
Copy link
Member Author

Choose a reason for hiding this comment

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

removed as article, page, snippet already did not use it only example

@alexander-schranz alexander-schranz merged commit 6d72722 into sulu:3.0 Apr 30, 2025
9 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/replace-usage-of-older-metadata-structure branch April 30, 2025 13:56
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