New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for lotus/lotus issue 185 - Performance issue with rendering a partial view #86
Commits on Dec 31, 2015
-
Add View::Configuration#partials and failing test
The framework configuration object should hold a collection of all the partials in the file system for the given load paths.
Configuration menu - View commit details
-
Copy full SHA for bb1c8b8 - Browse repository at this point
Copy the full SHA bb1c8b8View commit details
Commits on Jan 1, 2016
-
Move partial load test to load_test.rb
view_test.rb doesn't actually load the framework
Configuration menu - View commit details
-
Copy full SHA for 563738c - Browse repository at this point
Copy the full SHA 563738cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36fcaba - Browse repository at this point
Copy the full SHA 36fcabaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 82fead1 - Browse repository at this point
Copy the full SHA 82fead1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a80cd02 - Browse repository at this point
Copy the full SHA a80cd02View commit details
Commits on Jan 2, 2016
-
Configuration menu - View commit details
-
Copy full SHA for bd0b5cb - Browse repository at this point
Copy the full SHA bd0b5cbView commit details -
Fix intermittent test failures in load_test.rb
This seems to be failing because other tests are overwritting the `configuration.root` path causing a side effect in this test. Solution is to explicitly reload the configuration with a known root path value.
Configuration menu - View commit details
-
Copy full SHA for 13bab96 - Browse repository at this point
Copy the full SHA 13bab96View commit details -
Refactor partial file search into PartialTemplatesFinder
Also add some tests to assert that the cache is actually being used rather than re-reading the partial template files
Configuration menu - View commit details
-
Copy full SHA for aee8de6 - Browse repository at this point
Copy the full SHA aee8de6View commit details -
Configuration menu - View commit details
-
Copy full SHA for fede385 - Browse repository at this point
Copy the full SHA fede385View commit details
Commits on Jan 3, 2016
-
Configuration menu - View commit details
-
Copy full SHA for 50b8ad4 - Browse repository at this point
Copy the full SHA 50b8ad4View commit details -
Configuration menu - View commit details
-
Copy full SHA for db0eecd - Browse repository at this point
Copy the full SHA db0eecdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a4ba05 - Browse repository at this point
Copy the full SHA 8a4ba05View commit details -
Use the correct configuration for the given view in partial lookup
I'm still not sure I fully understand the configuration hierarchy but I think this handles the case in which there are multiple applications in the same process. Also force the format keys to be symbols.
Configuration menu - View commit details
-
Copy full SHA for 7a22a32 - Browse repository at this point
Copy the full SHA 7a22a32View commit details -
Remove fall-back to old implementation in PartialFinder
We need to explicitly reload the configuration in some of the tests to make this work. The common code is factored out into reload_configuration_helper.rb.
Configuration menu - View commit details
-
Copy full SHA for e5d804c - Browse repository at this point
Copy the full SHA e5d804cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c401f83 - Browse repository at this point
Copy the full SHA c401f83View commit details -
Make PartialTemplatesFinder.find_partials a class method
Also fix inconsistency in Configuration#load_partials!
Configuration menu - View commit details
-
Copy full SHA for 01de8c0 - Browse repository at this point
Copy the full SHA 01de8c0View commit details
Commits on Jan 16, 2016
-
Add integrations tests for partials
Created two new applications in fixtures because extending Store and CardDeck caused too many side-effects in/from existing tests
Configuration menu - View commit details
-
Copy full SHA for 184e505 - Browse repository at this point
Copy the full SHA 184e505View commit details -
Refactor to encapsulate Configuration partial cache impl details
PartialFinder shouldn't have knowledge of the Configuration objects internal data structures
Configuration menu - View commit details
-
Copy full SHA for 3c06cbd - Browse repository at this point
Copy the full SHA 3c06cbdView commit details
Commits on Jan 18, 2016
-
Some amends suggested in code review
Add default encoding to the partial template Introduce `PartialFile` class to eliminate data clump Instantiate `PartialTemplatesFinder` with instance of configuration Remove redundant `PartialFinder#find_cached_template` method
Configuration menu - View commit details
-
Copy full SHA for 94fbb3d - Browse repository at this point
Copy the full SHA 94fbb3dView commit details