0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/test
Hannah Wolfe 7761873db7 Abstract findPage & add pagination Bookshelf plugin
closes #2896

- move default options / custom code into model functions
- move most of the filtering logic into base/utils.filtering (to be relocated)
- move the remainder of findPage back into base/index.js and remove from posts/users&tags
- move pagination-specific logic to a separate 'plugin' file
- pagination provides new fetchPage function, similar to fetchAll but handling pagination
- findPage model method uses fetchPage
- plugin is fully unit-tested and documented
2015-06-22 10:20:47 +01:00
..
functional Merge pull request #5451 from cobbspur/userRoutes 2015-06-18 14:20:06 -05:00
integration Ensure sqlite3 uses a single database connection 2015-06-18 00:54:23 -05:00
unit Abstract findPage & add pagination Bookshelf plugin 2015-06-22 10:20:47 +01:00
utils Use urlJoin in RSS + test coverage 2015-06-10 09:18:52 +01:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00