Commit Graph

80 Commits

Author SHA1 Message Date
Dylan Wagstaff
367343c481 FIX permit reindexing on a Windows machine
It appears that when executing in a Microsoft Windows environment the
default shell used in the immediate reindex handler is CMD, which has
some severely different syntax support from that of a POSIX machine (e.g.
GNU bash). This leads to errors to do with double escaping certain
parameters passed in via the CLI - culminating in an Injector error about
an non-extant class e.g. 'SilverStripe\\CMS\\Model\\SiteTree' - two
slashes a namespace separator does not make!
2018-02-23 16:46:44 +13:00
Robbie Averill
6e5b37e728 NEW Add SearchVariant::withCommon to run callbacks on relevant variants rather than all 2018-02-23 16:42:00 +13:00
Robbie Averill
de4e2ba889 NEW Use symfony/process to execute immediate system commands for reindexing 2018-02-16 12:05:46 +13:00
Robbie Averill
345a45d532 MINOR Correct PHPDoc types and remove unused imports 2018-01-10 19:57:19 +13:00
Robbie Averill
7b933cb36e API More TestState into source folder from tests 2018-01-10 15:16:04 +13:00
Robbie Averill
415a1b9960 Merge branch '2' 2017-12-13 18:07:54 +13:00
Robbie Averill
a47d5e8a8e FIX Use correct namespace for SQLite3 adapter, implement injector prioritisation for database 2017-12-07 09:14:08 +13:00
Robbie Averill
21a045165b Skip testSoftCap for now, passes in isolation but not in the suite. Use constants for queue statics 2017-12-07 09:12:57 +13:00
Robbie Averill
45c402fc4c API Remove bind_manipulation_capture and RequestFilter, use Injector instead 2017-12-07 09:12:57 +13:00
Robbie Averill
fccac37621 FIX Ensure queued job signature remains under 64 character limit (fixes Postgres error) 2017-12-07 09:12:57 +13:00
Robbie Averill
e47ab9c07d FIX Implement correct namespace for PostgreSQL and add to Travis matrix 2017-12-07 09:12:57 +13:00
Robbie Averill
4d57f09230 NEW Replace backslashes in Solr index names with dashes 2017-12-06 10:17:24 +13:00
Robbie Averill
b64f02727c FIX Double escape namespace separators in class names when boosting fields 2017-12-05 16:49:55 +13:00
Robbie Averill
7ae7f704ce FIX Double escape namespace separators in class names when excluding fields 2017-12-05 16:07:49 +13:00
Dylan Wagstaff
3e491088b5
Merge pull request #187 from creative-commoners/pulls/3.0/subsites-compat
API Update Subsite integration, remove Polyhome variant
2017-12-05 15:10:45 +13:00
Robbie Averill
861f87514d API Update Subsite integration, remove Polyhome variant
Add a method to clear cached variants from SearchVariant, and a configuration flag for whether
a variant should be enabled or not. Add a FullTextSearch TestState class which will globally
disable the queuedjobs and fulltextsearch shutdown handlers during tests, and is not used to
clear cached variants on each test to prevent global state leakage.

Also removes Phockito as a test dependency.
2017-12-05 14:29:53 +13:00
Matt Peel
7bacda9a0f
FIX: coreIsActive() failed when using a namespaced core 2017-12-05 13:38:35 +13:00
Robbie Averill
ceff657c62
Merge pull request #185 from creative-commoners/pulls/4.0/namespaces-over-classnames
FIX Replace uppercase String occurrences with lowercase version ones
2017-12-05 11:03:32 +13:00
Raissa North
b066628fcc FIX Replace uppercase String occurences with lowercase version ones 2017-12-05 10:52:24 +13:00
Robbie Averill
7d762012d9
Merge pull request #183 from creative-commoners/pulls/4.0/namespaces-over-classnames
ENHANCEMENT Use namespace imports over fully qualified class names
2017-12-04 12:24:51 +13:00
Raissa North
0c3b4ff95b ENHANCEMENT Use namespace imports rather than fully qualified class names in strings 2017-12-04 11:56:18 +13:00
Dylan Wagstaff
71d837d7b0
Merge pull request #179 from creative-commoners/pulls/3.0/env-var-support
NEW Support environment variables for Solr index prefix and suffix
2017-12-04 11:53:22 +13:00
Raissa North
bd405c622a API Remove deprecated code 2017-12-04 10:43:57 +13:00
Robbie Averill
71107e0e96
Merge pull request #180 from creative-commoners/pulls/3.0/symbiote-namespaces-update
API Make SearchVariant::call(...) arguments variadic
2017-11-30 13:24:14 +13:00
Raissa North
193fe8139e API Make SearchVariant::call(...) arguments variadic 2017-11-30 12:01:57 +13:00
Robbie Averill
6811082263 NEW Support environment variables for Solr index prefix and suffix 2017-11-30 10:40:25 +13:00
Robbie Averill
7f22cb98c2
Merge pull request #177 from creative-commoners/pulls/3.0/symbiote-namespaces-update
FIX Update namespace references to Symbiote
2017-11-30 09:58:54 +13:00
Robbie Averill
9b26af1290 API Remove Solr PHP client from thirdparty library and include with composer instead 2017-11-29 19:28:31 +13:00
Raissa North
acd8b7b164 FIX Update namespace references to Symbiote 2017-11-29 15:40:47 +13:00
Robbie Averill
7b72774890 FIX Update directory structure for PSR-4 compatibility and rename "code" to "src" 2017-11-29 15:13:46 +13:00