0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
Hannah Wolfe 6a0f1cf231 Filter plugin with enforce/default logic
refs #5614, #5943

- adds a new 'filter' bookshelf plugin which extends the model
- the filter plugin provides handling for merging/combining various filters (enforced, defaults and custom/user-provided)
- the filter plugin also handles the calls to gql
- post processing is also moved to the plugin, to be further refactored/removed in future
- adds tests showing how filter could be abused prior to this commit
2015-11-17 10:39:44 +00:00
..
controllers/frontend Don't use api to lookup theme in frontend controller 2015-10-30 19:02:06 +00:00
middleware Check client is enabled before auth 2015-11-04 16:59:56 +00:00
models_plugins Filter plugin with enforce/default logic 2015-11-17 10:39:44 +00:00
server_helpers Add meta tags for client_id & client_secret 2015-11-04 16:39:39 +00:00
api_utils_spec.js Add access rules bookshelf plugin 2015-11-16 12:24:01 +00:00
apps_filters_spec.js Filter plugin with enforce/default logic 2015-11-17 10:39:44 +00:00
apps_spec.js
config_spec.js Test support for various URL schemes 2015-09-27 10:31:49 +01:00
error_handling_spec.js Public API 2015-10-22 15:28:47 +02:00
filters_spec.js
importer_spec.js Rename error.type to error.errorType 2015-04-22 22:29:45 +02:00
mail_spec.js Email error message cleanup 2015-10-16 12:07:09 +02:00
migration_spec.js Maintain tag order for posts 2015-09-02 16:39:34 +01:00
permissions_spec.js deps: grunt-jscs@2.1.0 2015-10-12 19:21:16 +01:00
rss_spec.js Switch RSS to use new filter param 2015-10-27 10:00:51 +00:00
server_helpers_index_spec.js
server_helpers_template_spec.js refactors the frontend controller 2015-05-05 07:35:08 -05:00
server_spec.js
server_utils_spec.js Make read-directory ignore invalid package.json files 2015-10-28 15:37:52 +01:00
showdown_client_integrated_spec.js Upgrade grunt-jscs to fix whitespace linting. 2015-04-30 16:14:19 -05:00
sitemap_spec.js Refactor sitemaps to use centralised events 2015-04-05 19:32:18 +01:00
storage_local-file-store_spec.js Use extends correctly & consistently 2015-06-25 19:56:27 +01:00
utils_pipeline_spec.js Pipeline util tests, clean & fix 2015-11-03 09:14:44 +00:00
xmlrpc_spec.js Refactor sitemaps to use centralised events 2015-04-05 19:32:18 +01:00