Skip to content

Move Sulu Content Bundle namespace and integrate the content bundle into test setup #7675

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

Merged

Conversation

alexander-schranz
Copy link
Member

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?

Move Sulu Content Bundle namespace and integrate the content bundle into test setup.

Why?

We moved ContentBundle in #7674 to the mono repository. Now some refactoring is required to move it into the correct namespace.

BC Breaks

  • Sulu\Bundle\ContentBundle\Content -> Sulu\Content
  • Sulu\Bundle\ContentBundle\SuluContentBundle -> Sulu\Content\Infrastructure\Symfony\HttpKernel\SuluContentBundle

@@ -115,6 +109,7 @@
"symfony/translation-contracts": "^2.5 || ^3.0",
"symfony/twig-bundle": "^6.4 || ^7.1",
"symfony/validator": "^6.4 || ^7.1",
"symfony/workflow": "^6.4 || ^7.1",
Copy link
Member Author

Choose a reason for hiding this comment

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

new requirement

@@ -152,7 +147,7 @@
"scheb/2fa-google-authenticator": "^6.10 || ^7.0",
"scheb/2fa-totp": "^6.10 || ^7.0",
"scheb/2fa-trusted-device": "^6.0 || ^7.0",
"sulu/content-bundle": "dev-feature/content-resolver as 0.9.0",
"sulu/automation-bundle": "^3.0@dev",
Copy link
Member Author

Choose a reason for hiding this comment

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

content bundle has tests based on automation bundle which we need to check

@alexander-schranz alexander-schranz force-pushed the feature/content-bundle-integration branch from 0ab4629 to 291f6ba Compare November 25, 2024 12:35
@alexander-schranz alexander-schranz force-pushed the feature/content-bundle-integration branch from e78eeac to 60aaa7a Compare November 25, 2024 12:45
@alexander-schranz alexander-schranz added the Feature New functionality not yet included in Sulu label Nov 25, 2024
@alexander-schranz alexander-schranz force-pushed the feature/content-bundle-integration branch from 9958fbc to bd44d61 Compare November 25, 2024 13:26
@alexander-schranz alexander-schranz marked this pull request as ready for review November 25, 2024 14:21
@alexander-schranz alexander-schranz merged commit 2d29573 into sulu:3.0 Nov 25, 2024
7 of 9 checks passed
Comment on lines +223 to +227
$entityFieldQuery = self::CONTENT_RICH_ENTITY_ALIAS . '.' . $this->getEntityIdField();
if ($this->entityManager->getConnection()->getDatabasePlatform() instanceof PostgreSQLPlatform) {
// TODO no casting because indexes can then not be used
$entityFieldQuery = 'CAST(' . self::CONTENT_RICH_ENTITY_ALIAS . '.' . $this->getEntityIdField() . ' AS STRING)';
}
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 a temp hack to support PostgreSQL at current state we should remove this kind of general services to make things easier in future handled directly in the bundles they belong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in Sulu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant