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

agressively prefetch the menu as it needs to be completely loaded anyways #166

Merged
merged 1 commit into from
Jan 10, 2014

Conversation

dbu
Copy link
Member

@dbu dbu commented Dec 16, 2013

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? travis
Fixed tickets partially #162
License MIT
Doc PR symfony-cmf/symfony-cmf-docs#374

@lsmith77
Copy link
Member

i guess we need to bump the dependency on the testing lib to 1.1? or use dev-master .. ?

@lsmith77
Copy link
Member

ok bumped it to 1.1 .. but now we have a new issue likely due to the recent CoreBundle merge:

The service "cmf_core.admin_extension.translatable" has a dependency on a n   
  on-existent parameter "cmf_core.sonata_admin.extension.form_group".  

@dbu
Copy link
Member Author

dbu commented Dec 26, 2013

ugh, i merged symfony-cmf/core-bundle#110 today, @dantleech added configuration options. so it seems the defaults are not set. @dantleech could you have a look and do a follow up PR?

@dantleech
Copy link
Member

pr here: symfony-cmf/core-bundle#112

@dbu
Copy link
Member Author

dbu commented Dec 26, 2013

@lsmith77 okay, i triggered a rebuild on travis, lets see.

@lsmith77
Copy link
Member

PHP Fatal error:  Call to undefined method Mock_ObjectManager_bb36d450::getPhpcrSession() in /home/travis/build/symfony-cmf/MenuBundle/Provider/PhpcrMenuProvider.php on line 219

@@ -32,7 +32,8 @@ public function getConfigTreeBuilder()
->canBeEnabled()
->children()
->scalarNode('menu_basepath')->defaultValue('/cms/menu')->end()
->scalarNode('content_basepath')->defaultValue('/cms/content')->end()
->scalarNode('content_basepath')->defaultNull()->end()
->scalarNode('prefetch')->defaultValue(10)->end()
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: update xml schema (wait for #167 to be merged)

Copy link
Member Author

Choose a reason for hiding this comment

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

schema is updated.

@dbu dbu mentioned this pull request Dec 29, 2013
@dbu
Copy link
Member Author

dbu commented Dec 29, 2013

alright, test is fixed hopefully.

we do not test the actual prefetch activity however.

@@ -33,6 +33,7 @@ public function getConfigTreeBuilder()
->children()
->scalarNode('menu_basepath')->defaultValue('/cms/menu')->end()
->scalarNode('content_basepath')->defaultValue('/cms/content')->end()
->scalarNode('prefetch')->defaultValue(10)->end()
Copy link
Member

Choose a reason for hiding this comment

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

scalarNode? Not integerNode ?

Copy link
Member Author

Choose a reason for hiding this comment

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

oh, was not aware that integerNode even exists. thanks.

dbu added a commit that referenced this pull request Jan 10, 2014
agressively prefetch the menu as it needs to be completely loaded anyways
@dbu dbu merged commit 22e4b71 into master Jan 10, 2014
@dbu dbu deleted the prefetch-menu branch January 10, 2014 13:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants