0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test/regression
Kevin Ansfield 35f8042d7b
Added ?search= param to Admin API members endpoint ()
no issue

- adds `search` bookshelf plugin that calls out to an optional `searchQuery()` method on individual models to apply model-specific SQL conditions to queries
- updated the base model's `findPage()` method to use the search plugin within `findPage` calls
- added a `searchQuery` method to the `member` model that performs a basic `LIKE %query%` for both `name` and `email` columns
- allowed the `?search=` parameter to pass through in the `options` object for member browse requests
2020-05-28 10:14:02 +01:00
..
api Added ?search= param to Admin API members endpoint () 2020-05-28 10:14:02 +01:00
exporter Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
importer Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
migrations Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
models Refactored tests to destructure common lib import () 2020-05-25 09:49:38 +01:00
site Moved config from server to shared () 2020-05-27 18:47:53 +01:00
update-check Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
README.md

Regression Tests

This folder should contain packages which we test in a cron job once per day. These tests should ensure that we don't break Ghost.

The goal is that most of these packages use Ghost's API's to test behaviours, otherwise transform the tests into unit tests.