Issue updated since https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212530813:
This will not be 2.4 but 3.0. See reasons:
dev-master has already several BC breaking modifications that was merged (sigh)Since this time, if you're requiring sonata-project/admin-bundle 2.4.*@dev on composer.json, you have to change to 3.*@dev, 3.x-dev@dev or dev-master@dev.
This is the only breaking change.
For possible dependencies issues, see https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212636270.
This issue is not here for that. If you tried previous solutions and are still stuck, please open another issue on the concerned project.
Even if it's a new major, no BC breaking Pull Request will be merge until 3.0.0 release.
The reason is simple: Lot of user are already using dev-master version of sonata-admin and we didn't tag minor/major releases from a long time. Let's do it painless.
This issue goal is to list all to do things that we must do before and after tag this version.
To many changes between 2.3 and master branch, we have to take precaution.
This issue will be a model for another repository minor tag before start the new release process management.
2.4.x-dev to 3.x-dev on composer.json (#3732)List etablished from composer show --all sonata-project/*.
Not all packages need to be updated.
v3.0.0 release. Rofl.[ ]
[x] Remove 2.0 -> 2.2 branches
2.3 to 2.x branch (just for history, no modification will be allowed).3.x branch => For minor releases3.xAm I missing something? Tell me! :+1:
Would be great merge pending PRs first https://github.com/sonata-project/SonataAdminBundle/pulls?q=is%3Aopen+is%3Apr+milestone%3A2.4
ping @mvhirsch
@Soullivaneuh what about signing the new v2.4.0 tag? Reference
@Soullivaneuh another suggestion: prepare a "curated" changelog of the main features and bug fixes introduced by the new version.
What about updating the documentation for 2.4?
Closes all PR concerning patch or minor modification with a message to tell user to rebase it on 2.x
@Soullivaneuh I would say do not close right away. Label the issue as outdated, send a message to author telling authors to rebase and that the issue will be closed in a given time frame if they don't. And encourage them to close it by themselves if they don't intend to work on it any further (or the issue has been fixed since).
People tend to get angry when their PR/tickets receive no response for months, then is abruptly closed because the version changes.
@Koc I would say :-1: for merging #3258 in 2.4
The idea is great but there's a big responsiveness problem with the current top nav layout that can't be fixed in a BC way.
Basically, we first need to move the breadcrumb from the top bar to the main body, because a breadcrumb has by definition a _potentially infinite length_, and in a fixed appbar everything must fit on one line.
Then #3258 can be merged easilly, and make the breadcrumb component kick asses.
After discussing with @rande and @sonata-project/contributors we decided to not push a minor release but a major one.
So it will not be 2.4.0 but 3.0.0.
For some reasons:
dev-master has already several BC breaking modifications that was merged (sigh)I'll update the issue accordingly, with corresponding warns.
@Soullivaneuh another suggestion: prepare a "curated" changelog of the main features and bug fixes introduced by the new version.
Yeah, I think we should create a new clear changelog starting from 3.0.
What about updating the documentation for 2.4?
2.4 -> 3.0
What do you mean?
[ ] Move tickets from milestones to > 3.0 / 4.0
I would say do not close right away. Label the issue as outdated, send a message to author telling authors to rebase and that the issue will be closed in a given time frame if they don't.
@ju1ius I would see on a reverse way: people would reopen a pr if they want to continue.
In your way, we will have a lot of PR without continuing work but still open on the list. It's hard, but we will have a new and clean start.
ping @rande and @sonata-project/contributors for opinion.
People tend to get angry when their PR/tickets receive no response for months, then is abruptly closed because the version changes.
We just have to explain clearly why we are doing this. Sebastian did this for PHPUnit and it works great AFAIK.
For https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212509707, this is not related to this issue. Please comment on the related PR.
[ ] Move tickets from milestones to > 3.0 / 4.0
I think we will reset the milestones at all.
We just have to explain clearly why we are doing this. Sebastian did this for PHPUnit and it works great AFAIK.
Yes explaining is key.
I had the GNOME project in mind with their habit to automatically close every ticket that was submitted against an old version. More often than not the bug is still present and it leads to issues staying unresolved for years. It really pisses people off and discourage them to submit bugs and patches, which is a shame.
@ju1ius I understand your point of view. I still think we should do the closing way.
This is a kind of sacrifice, but we have to cleanup to have a good see of what to do for the future.
@Avtonom just see https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212530813 and #3732.
@Soullivaneuh, thanks for the tip! I not immediately caught the depth changes.
How do I fix it?
sonata-project/classification-bundle 2.3.x-dev requires sonata-project/admin-bundle ~2.4 -> no matching package found
@Avtonom Have you tried something like this (untested) ?
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/sonata-project/SonataAdminBundle"
}
],
"require": {
"sonata-project/admin-bundle": "dev-master as 2.4"
}
}
You might need to tweak the version alias, like maybe 2.4.x or 2.4.x-dev...
Thank you!
+
"sonata-project/admin-bundle": "dev-master as 2.4",
"sonata-project/doctrine-orm-admin-bundle": "dev-master as 2.4",
@Soullivaneuh Maybe document this in the release note as a temporary solution until all bundles switch to the new release process ?
There will be a boatload of similar questions coming if the other bundles take time to catchup...
@ju1ius I updated the post.
After creating the new 3.x branches, what will we do with the old 2.x versions? Leave them as they are or would we supply patches and security updates?
IMO we must support them too, because the users couldn't simply use the new versions and rely on the old one.
@core23 The goal is to not support legacy branch and focus to only one to reduce the maintaining difficulty.
So globally no. After that, if someone have a very critical security issue to fix, we can consider that. But that's all, no patches will be accepted.
As I said, lot of people are already using dev-master because of compatibility with recent framework / library. Just see the download stats: https://packagist.org/packages/sonata-project/admin-bundle/stats#dev-master
This is also why I prefer to not merge new BC breaking PR until 3.0.
@Soullivaneuh Hi, how much time need for migrate to 3.0 and stabilization?
@muspelheim We hope to get a stable release of each bundle at beginning of may 2016.
Since this time, if you're requiring sonata-project/admin-bundle 2.4._@dev on composer.json, you have to change to 3.0._@dev of dev-master@dev.
i think it should be
3.*@dev
not
3.0.*@dev
right?
@boltunoreh indeed! Corrected, thanks!
@Soullivaneuh How I can help in this?
For Internal dependencies issues:
Maybe add: sonata-project/SonataDoctrineMongoDBAdminBundle
Presently: sonata-project/doctrine-mongodb-admin-bundle dev-master requires sonata-project/admin-bundle ~2.3
Dependency issue with pagebundle:
Problem 1
- sonata-project/page-bundle dev-master requires sonata-project/admin-bundle ~2.4 -> satisfiable by sonata-project/admin-bundle[2.4.x-dev].
- sonata-project/page-bundle dev-master requires sonata-project/admin-bundle ~2.4 -> satisfiable by sonata-project/admin-bundle[2.4.x-dev].
- Can only install one of: sonata-project/admin-bundle[3.x-dev, 2.4.x-dev].
- Installation request for sonata-project/admin-bundle 3.x-dev -> satisfiable by sonata-project/admin-bundle[3.x-dev].
- Installation request for sonata-project/page-bundle dev-master -> satisfiable by sonata-project/page-bundle[dev-master].
Maybe it will be a good idea to make sandbox based in 3.x
Please don't post your dependencies issues here.
See: https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212636270
If you don't success to fix it, please open an issue on the concerned project.
Maybe it will be a good a day to make sandbox based in 3.x
It's planned.
Currently Composer update fails:
"friendsofsymfony/user-bundle": "1.3.*",
"sonata-project/core-bundle": "dev-master",
"sonata-project/admin-bundle": "3.*@dev",
"sonata-project/doctrine-orm-admin-bundle": "dev-master",
"sonata-project/cache-bundle": "dev-master",
"sonata-project/datagrid-bundle": "dev-master",
"sonata-project/user-bundle": "dev-master",
"sonata-project/intl-bundle": "dev-master",
"sonata-project/easy-extends-bundle": "dev-master",
"sonata-project/doctrine-mongodb-admin-bundle": "dev-master",
"sonata-project/translation-bundle": "dev-master",
- sonata-project/translation-bundle dev-master requires sonata-project/admin-bundle ^2.3.0|~2.4@dev -> satisfiable by sonata-project/admin-bundle[2.4.x-dev, 2.3.x-dev].
- sonata-project/translation-bundle dev-master requires sonata-project/admin-bundle ^2.3.0|~2.4@dev -> satisfiable by sonata-project/admin-bundle[2.4.x-dev, 2.3.x-dev].
- Can only install one of: sonata-project/admin-bundle[3.x-dev, 2.4.x-dev].
- Can only install one of: sonata-project/admin-bundle[3.x-dev, 2.3.x-dev].
- Installation request for sonata-project/admin-bundle 3.*@dev -> satisfiable by sonata-project/admin-bundle[3.x-dev].
- Installation request for sonata-project/translation-bundle dev-master -> satisfiable by sonata-project/translation-bundle[dev-master].
Other versions I tested fail with "sonata-project/doctrine-orm-admin-bundle". What is the current recommended setup?
@webdevilopers please read https://github.com/sonata-project/SonataAdminBundle/issues/3731#issuecomment-212636270. You have to use dependency aliases for now.
Please again, open issues on dedicated projects if you're still failing.
All other dependency issues messages posted here will be deleted.
What is the current recommended setup?
The current recommended setup is and always will be : stable branches. :trollface:
If anyone needs some insight into their own depedencies.. I just resolved mine with
"sonata-project/admin-bundle" : "3.x-dev as 2.4",
"sonata-project/doctrine-orm-admin-bundle" : "3.x-dev as 2.4",
"sonata-project/user-bundle" : "^2.2",
"sonata-project/media-bundle" : "2.4.x-dev",
"sonata-project/classification-bundle" : "dev-master as 2.3",
"sonata-project/datagrid-bundle" : "dev-master",
For the moment ;)
Remove 2.0 -> 2.2 branches
@Soullivaneuh this can't be done. It will cause to break projects that use the old Sonata version and we will probably lose something of the history.
Reminder : PLEASE DO NOT POST YOUR DEPENDENCIES ISSUES HERE, CREATE YOUR OWN ISSUE INSTEAD
@pulzarraider why? 2.0 -> 2.2 branches has stable releases and those branches must not be maintained anymore.
Branch 2.0 has no 2.0.* tag. We should release at least 2.0.0.
Branches 2.1 and 2.2 has some commits, that wasn't tagged yet after the latest release.
New versions 2.1.1, 2.2.13 should be released.
After this we should inform all users, that using the branch alias (e.g. "dev-2.2 as 2.2.x-dev") probably won't work and they should use just the stable releases, e.g. ~2.2 for projects using old Sonata.
Branch
2.0has no2.0.*tag. We should release at least2.0.0.Branches
2.1and2.2has some commits, that wasn't tagged yet after the latest release.
New versions2.1.1,2.2.13should be released.
Yeah in this case I will add releases. It's weird that this was not done before.
After this we should inform all users, that using the branch alias (e.g. "dev-2.2 as 2.2.x-dev") probably won't work and they should use just the stable releases, e.g.
~2.2for projects using old Sonata.
The issue is right here for this. And using 2.2.x-dev is using a unstable branch, so breaking things can coming. The developer should know about that. ;-)
@pulzarraider concerning branches and tags for admin-bundle:
2.0: Absolutely not tag. I think this branch is old and not really used: https://packagist.org/packages/sonata-project/admin-bundle/stats#2.0.x-dev2.1: Tagged 2.1.1: https://github.com/sonata-project/SonataAdminBundle/compare/2.1.1...2.12.2: Tagged 2.12.13: https://github.com/sonata-project/SonataAdminBundle/compare/2.2.13...2.22.3: Nothing to do: https://github.com/sonata-project/SonataAdminBundle/compare/2.3.10...2.3Right now we should not accept any PR on 2.0 to 2.2 anymore.
Plan for soon:
After that, 2.x branch should be for bugfixes only and master for no BC breaking features.
After 3.0 stable, a 3.x branch will be created. So we will get:
3.x for BC features and bugfix.master (4.x) for BC breaking feature, deprecation removal etc.And we will start following the new organization: https://github.com/sonata-project/SonataAdminBundle/issues/3053 :tada:
After 3.0 stable, a 3.x branch will be created. So we will get:
3.x for BC features and bugfix.
master (4.x) for BC breaking feature, deprecation removal etc.
After 3.0 stable, we remove the 2.x branch @Soullivaneuh? Or will we support bugfixes for 2.x and 3.x? Just to clearify your list...
@core23 No I'm talking about removing 2.0, 2.1, 2.2 and 2.3 branches.
2.x will be created but just for history at the end.
The rule will always be the same, only two branch to maintain: master and the last stable branch (3.x at the end).
We hope to get a stable release of each bundle at beginning of may 2016.
@Soullivaneuh do you need some help?
@tim96 Not especially for this part thanks.
Actually we have a must have to validate, the changelog: https://github.com/sonata-project/dev-kit/issues/8
After that, I think major releases will be push project by project, beginning by core-bundle... :wink:
2.0: Absolutely not tag. I think this branch is old and not really used: https://packagist.org/packages/sonata-project/admin-bundle/stats#2.0.x-dev This can be removed.
@Soullivaneuh yes, probably no one is using it with composer, but it should be tagged so we don't lost any commit that was merged. I think that we should tag it is as 2.0.0.
@Soullivaneuh thank you
SonataCoreBundle 3.0.0 is out!
Tagging progress will be updated at the end of the main issue message: https://github.com/sonata-project/SonataAdminBundle/issues/3731
We are almost here! :tada:
All packages are now updated except 3 of them.
I closes this one in favor of dev-kit one: https://github.com/sonata-project/dev-kit/issues/140
Thanks all for your support about this new adventure! :dancers: :smiley:
Most helpful comment
If anyone needs some insight into their own depedencies.. I just resolved mine with
For the moment ;)