FriendsOfSymfony / FOSElasticaBundle

Elasticsearch PHP integration for your Symfony project using Elastica.
http://friendsofsymfony.github.io
MIT License
1.24k stars 795 forks source link

Symfony 7 support #1933

Closed l-you closed 8 months ago

l-you commented 12 months ago

Fixes https://github.com/FriendsOfSymfony/FOSElasticaBundle/issues/1932. Add PHP 8.3 tests.

This PR replaces https://github.com/FriendsOfSymfony/FOSElasticaBundle/pull/1931 and https://github.com/FriendsOfSymfony/FOSElasticaBundle/pull/1930.

l-you commented 12 months ago

There is an issue with dependencies. doctrine/phpcr-odm locked to symfony/console@6.0. There is a ready PR that adds support for Symfony 7 in doctrine/phpcr-odm. Take a look at https://github.com/doctrine/phpcr-odm/pull/846.

l-you commented 12 months ago

The second reason tests are failing is that jms/serializer-bundle has no support for Symfony 7 components. There is a draft PR that would fix that: https://github.com/schmittjoh/JMSSerializerBundle/pull/937 but merge state is unknown.

l-you commented 12 months ago

Current PR will be updated after the following PR is merged.

evertharmeling commented 10 months ago

@XWB do you or somebody else be able to check this PR and move it forward? @rusted-love could you check the Code style errors in the CI flow (/ re-push code to re-run the CI which should have the other errors fixed since the mentioned blocked issues are merged)? 🚀

XWB commented 10 months ago

I can only merge when all pipelines have passed.

l-you commented 10 months ago

@rusted-love could you check the Code style errors in the CI flow (/ re-push code to re-run the CI which should have the other errors fixed since the mentioned blocked issues are merged)? 🚀

@evertharmeling Yes, https://github.com/doctrine/phpcr-odm/pull/846 was merged a few days ago, but it was not released under next minor version (1.8.0 -> 1.8.1). Still waiting for a release tag to move forward.

Seb33300 commented 10 months ago

What version of PHP-CS-fixer did you use to update the code style? The workflow is using version 3.8.0 https://github.com/FriendsOfSymfony/FOSElasticaBundle/blob/f44abba6cf6a902ddcbbaac5acc2bdac7d8b318d/.github/workflows/continuous-integration.yaml#L17 You may need to update the workflow version to prevent it to fail

llupa commented 9 months ago

Hey 👋 @rusted-love Do you still have time/interest to work on this PR?

l-you commented 9 months ago

Hey 👋 @rusted-love Do you still have time/interest to work on this PR?

@llupa Yes, but I need a community suggestion how to move forward. Should I wait for a stable phpcr-odm v2 release or there is a way to release current PR with beta version of 'phpcr-odm' today?

llupa commented 9 months ago

but I need a community suggestion how to move forward.

I think first it would be great if you can run php-cs-fixer at 3.8.0 on your code and update this branch so Continuous integration / Coding style (pull_request) passes.

And dbu asked (in the same PR your linked):

have you been able to build FOSElasticaBundle with the latest dev-2.x version? that would be a good check to know if we break anything for you.

Since you have all this work done, you could switch to their upcoming v2 and see if this pipeline will keep working. I personally would update in this same PR and mark it as Draft just in case. Or if you feel unsure, make another branch out of this branch and try it out.

If the tests pass, pinging David will only add reassurance for his ~planned release end of this month.

What do you think? @rusted-love

l-you commented 9 months ago

@llupa I've done what you said. There are issues with dependencies again. For some reason composer does not use RC-1 and beta releases. I would be glad to get help again. :)

evertharmeling commented 9 months ago

For some reason composer does not use RC-1 and beta releases. I would be glad to get help again. :)

Probably due to not having minimum-stablity defined in the composer.json, which defaults to stable (see).

...
    "minimum-stability": "RC",
    "prefer-stable": true,
...

This should do the trick, allowing specific RC versions when defined, but rely on stable otherwise. But we should also be careful using RC/beta releases from a bundle perspective of course.

evertharmeling commented 8 months ago

This issue may be closed due to the merge of #1938

XWB commented 8 months ago

Closing in favor of https://github.com/FriendsOfSymfony/FOSElasticaBundle/pull/1938