sonata-project / sandbox

[Abandoned] Sonata Project's sandbox
https://sonata-project.org
MIT License
268 stars 198 forks source link

Upgrade to Symfony 3.4 #614

Closed wbloszyk closed 4 years ago

wbloszyk commented 5 years ago

Hello,

My name is Wojciech Błoszyk, a PHP developer from Poland. I work with sonata-project bundles for many years.

I want upgrade sandbox for 3.0 (stable) to use Symfony 3.4 (minimum require for ecommerce 3.x)

Work i done for now:

Work to do:

Also i have questions:

  1. Should I renew User Block in SonataUserBundle or create it in SonataDemoBundle?
  2. Could someone help me with Test and travis config?
  3. Do u have any roadmap for sonata bundles?

link to my fork - branch 3.0

greg0ire commented 5 years ago

Hey! Thanks for working on this!

  1. I don't understand the question, maybe elaborate?
  2. Sure, what's the issue? If you create a PR, tests will run.
  3. We don't, sorry.
wbloszyk commented 5 years ago

BlockService: sonata.user.block.account and sonata.user.block.menu are in SonataUserBunle >= 3.x. Missing in 4.x. Now i add them to SonataDemoBundle. Better solution will be:

Also make some change in SonataBlockBundle to make it more stanadalone:

greg0ire commented 5 years ago

The fewer dependencies between block and user bundle, the better IMO, so I think extending it in SonataDemoBundle would be ok.

wbloszyk commented 5 years ago

Some update! I done! Of course some are some things to like:

For stable version is needed:

Should i create PR with current code? It can be tag as 4.0@dev. Or w8 for stable version and finish update all project code?

greg0ire commented 5 years ago

You can completely create a PR right now, not an issue. That way you can get feedback, and it does not mean we are forced to merge it immediately anyway :)

wbloszyk commented 5 years ago

Ok. I will update documentation then make PR.

wbloszyk commented 5 years ago

Before i create PR can you reorganize branches?

Archive branches

Mark this bundles as archive/2.x

Branches with bug fix support only

Make only stable version after fix composer (in future)

Maintained version

Create this branches after make stable version in -develop version

Develop version

It will be more understandable naming.

wbloszyk commented 5 years ago

Update. What do you think about it? @Bladrak, @rande ,@greg0ire, @phansys

greg0ire commented 5 years ago

Mark this bundles as archive/2.x

Does that mean removing the branches or what?

greg0ire commented 5 years ago

The sandbox is not a bundle, not sure we really need to maintain all these branches. IMO, if we want to revive the sandbox, we should just have one branch with the latest version of Symfony (bear in mind that Symfony 5 is for this month).

core23 commented 5 years ago

IMHO we can drop all branches, except the master branch

wbloszyk commented 5 years ago

At first I working on stable Symfony3.4. It is easy way to upgrade for Symfony4. I made behat test working (without api) and got some errors. Some of it (like "Login" => "Log in" button rename) i fix. Other need change in ecommerce.

I'm working on 3.0 branch to make is stable. After that and release Symfony 4.4 i upgrade sandbox. Then we decide what to do with other branches. @greg0ire

Symfony 4.4 is long term support. @core23

BTW I this week I want release sandbox-develop version to easy fix ecommerce (by using tests).

wbloszyk commented 4 years ago

@greg0ire @core23 can u release SonataBlockBundle in 3.x branch? I need fix macros issue in stable version.

greg0ire commented 4 years ago

@wbloszyk you mean 4.x, right?

wbloszyk commented 4 years ago

@greg0ire

roadmap for sandbox releases:

sandbox 3.x-dev: (Support for ecommerce 3.x minimum dependencies - symfony/symfony 3.4).

sandbox 3.x:

sandbox 4.x:

greg0ire commented 4 years ago

My bad, we indeed have an unreleased commit in 3.x, I'll fix this

greg0ire commented 4 years ago

Released :) https://github.com/sonata-project/SonataBlockBundle/releases/tag/3.18.3

wbloszyk commented 4 years ago

@greg0ire thanks

wbloszyk commented 4 years ago

@greg0ire Can u release next ecommerce minor version? This is last dev version in sandbox.

greg0ire commented 4 years ago

Ping me if I forget to do it this week-end

wbloszyk commented 4 years ago

@core23 @greg0ire Can you review SonataUserBundle#1136?

It is last dependencies to update sandbox without additional code. After merge I will update sandbox:3.x, then update roadmap for this version and prepere for sandbox:4.0.

wbloszyk commented 4 years ago

This issue was resolved in upgrade process. More information here: https://github.com/sonata-project/sandbox/pull/616