Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

[WIP] Refactoring to support 2.0 #214

Merged
merged 15 commits into from
May 25, 2015
Merged

[WIP] Refactoring to support 2.0 #214

merged 15 commits into from
May 25, 2015

Conversation

wouterj
Copy link
Member

@wouterj wouterj commented Nov 1, 2014

Q A
Bug fix? yes
New feature? yes
BC breaks? yes
Deprecations? no
Tests pass? no
Fixed tickets #82, #83, #202
License MIT
Doc PR todo

While updating to 2.0, I also tried to make the code cleaner and easier to understand. Since this will be released as CmfMenuBundle 2.0, we can have BC breaks in it. This is kind of the last change to make things really better.

Todo

@dantleech
Copy link
Member

Looking good. I guess you are also addressing #213 with the QuietFactory

2.0.0-alpha1
------------

* **2014-10-30**: PhpcrMenuProvider now requires the NodeLoader as first argument instead of a FactoryInterface
Copy link
Member

Choose a reason for hiding this comment

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

i would explicitly say we updated to knp menu 2.0 and then list the BC breaks caused by that. and it seems to me there are more than this line.

@dbu
Copy link
Member

dbu commented Nov 2, 2014

looks quite good, seems we can clean up some stuff but its not a huge impact for users of the bundle in the end.

i guess one problematic thing could be other bundles using knp menu but restricting to 1.x. just checked, at least SonataAdminBundle supports both 1.1 and 2

we need to update the documentation, for example about the voters (link to knp doc instead of explaining cmf_menu.voter, but keep explaining our cmf voters)

@wouterj
Copy link
Member Author

wouterj commented Nov 2, 2014

i guess one problematic thing could be other bundles using knp menu but restricting to 1.x. just checked, at least SonataAdminBundle supports both 1.1 and 2

Yeah, that's something I'll find out when updating the sandbox, SE and website. :) At least, I needed to do this since the kunstmaan bundles only support KnpMenu 2.0.

@dbu
Copy link
Member

dbu commented Jan 4, 2015

what is missing here?

@wouterj
Copy link
Member Author

wouterj commented Jan 5, 2015

@dbu some failing PRs, but mostly trouble with the sandbox and missing features in KnpMenu 2.0. I'm going to open a PR there soon and hope they'll merge it quick (and release a new minor version).

@dbu
Copy link
Member

dbu commented Jan 5, 2015

great. anything we can help with at this point?

@wouterj
Copy link
Member Author

wouterj commented Jan 5, 2015

I don't think so.

See KnpLabs/KnpMenu#189 for the Knp PR.

@lsmith77
Copy link
Member

needs a rebase

@coudenysj
Copy link

Any help needed?

@wouterj
Copy link
Member Author

wouterj commented Apr 3, 2015

No, this PR is almost ready. However, we're still waiting for some KnpMenu contributor to merge KnpLabs/KnpMenuBundle#251

@wouterj
Copy link
Member Author

wouterj commented Apr 26, 2015

This PR is now finally passing.

The bundle itself is ready, but I haven't used it in a more complex application like the sandbox, because of missing features in the KnpMenuBundle 2.0 (for instance, determining if a menu item was current in a template). This will be changed in 2.1, but there are no release plans yet.

This wonders which direction we should take: Leave this in 2.0-dev/beta till KnpMenuBundle 2.1 is released and release a 1.3 release together with CMF 1.3 or release a 2.0 version of this bundle, knowing that it would be a bit harder to use it in projects.

@lsmith77
Copy link
Member

doh .. the wait on KnpMenu never seems to stop :(

@dbu
Copy link
Member

dbu commented Apr 28, 2015

i think releasing a cmf menu 2.0 that has severe regressions is not a good idea, so rather lets wait - or see if we can speed up things for knp menu 2.1 ourselves?

can you link all issues that are a problem for us, so that we know what to look at / when things would be ready?

@lsmith77 lsmith77 added ready and removed in progress labels May 1, 2015
@wouterj
Copy link
Member Author

wouterj commented May 8, 2015

@dbu I've created an issue in the KnpMenu repository to ask the maintainers about the status. I've pinged you about it.

I hope they (maybe with help of us) will be able to wrap things up soon. SonataAdminBundle 2.4 now requires KnpMenuBundle 2, so we have to merge this in order to use the new Sonata bundles.

lsmith77 added a commit that referenced this pull request May 25, 2015
[WIP] Refactoring to support 2.0
@lsmith77 lsmith77 merged commit 4f3207e into master May 25, 2015
@lsmith77 lsmith77 removed the wip/poc label May 25, 2015
@lsmith77 lsmith77 deleted the 2.0 branch May 25, 2015 15:47
@lsmith77
Copy link
Member

can you open follow up tickets for anything that still needs to be done?

@wouterj
Copy link
Member Author

wouterj commented May 25, 2015

will do

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants