Commit graph

201 commits

Author SHA1 Message Date
Jeremy Mikola 4a80e27283 Enable PopulateCommand to target indexes and types
This makes the Populator service obsolete.
2012-03-12 12:07:51 -04:00
Jeremy Mikola 118900120b [Provider] ProviderRegistry should return indexed provider arrays
Since Provider instances do not know the index or type for which they are responsible, it's helpful for the ProviderRegistry to include that information when returning multiple providers.
2012-03-12 12:07:51 -04:00
Jeremy Mikola e09225eb09 [Provider] Change provider construction (possible BC break)
* Created AbstractProvider class (for all DB services), which handles the default batch_size option.
 * The logger Closure is now optional for populate().
 * Removed unused Elastica_Type argument from Provider constructors.
 * Added unit tests for Doctrine's AbstractProvider class.
 * The extra argument (ManagerRegistry) for Doctrine providers is now an appended constructor argument, so the extension no longer needs to use different replacement indexes for Propel/Doctrine providers.
2012-03-12 12:07:51 -04:00
Jeremy Mikola 89a368ae35 Allow Resetter to target specific indexes and types (BC break)
The original reset() method is now resetAllIndexes(). Additionally, new resetIndex() and resetIndexType() methods were introduced.
2012-03-12 12:07:51 -04:00
Jeremy Mikola 2d2e209373 Remove obsolete MappingRegistry class 2012-03-12 12:07:51 -04:00
Jeremy Mikola b360a36737 [Provider] Create ProviderRegistry service (BC break)
This introduces a registry service for persistence providers.

Previously, tagging one or more provider services would cause AddProviderPass to clobber the default providers created by the bundle's extension class. Now, the extension class tags its created providers and allows them to be registered via RegisterProvidersPass just like custom providers.

BC break: Custom providers tagged "foq_elastica.provider" must now specify a "type" attribute on their tag. An "index" attribute is optional (the default ES index will be used by default).
2012-03-12 12:07:51 -04:00
Jeremy Mikola 43eda480c5 Rename "reseter" to "Resetter" (BC break) 2012-03-12 12:07:51 -04:00
Jeremy Mikola d3a2335a55 Refactor IndexManager construction (preserves API)
Provide the default index name rather than the service itself. Additionally, inject references to each index by name instead of the definitions.
2012-03-12 12:07:51 -04:00
Jeremy Mikola b60256e8fd Merge branch '2.0' 2012-03-06 20:34:30 -05:00
Jeremy Mikola 0391dff44e Configure Travis CI
This also changes the test suite and bootstrap to depend on packages installed by composer.
2012-03-06 20:33:50 -05:00
Jeremy Mikola 3eb923cc84 Skip Doctrine tests if libraries are not available 2012-03-06 20:22:34 -05:00
Richard Miller 3e50cc95b5 Merge branch '2.0' 2012-02-27 20:13:39 +00:00
Richard Miller 2e5bac1f52 Removed filtering of null values in transformer 2012-02-27 19:37:59 +00:00
Richard Miller 86e5afc469 Merge branch '2.0' 2012-02-24 09:51:51 +00:00
Richard Miller a3f4c95e9c Changed to only filter truly null value in Transformer 2012-02-14 17:08:38 +00:00
Richard Miller d67cd8f9ba Merge remote-tracking branch 'origin/2.0' 2012-02-03 12:40:42 +00:00
Richard Miller 81bd07a90b Updated identifier field fetching in listener 2012-02-02 19:37:49 +00:00
Richard Miller 1d2887a83b Cleaned up doctrine removal fix changes 2012-01-26 09:59:58 +00:00
Richard Miller 65be0a415e Fixing issue with removing mapped Doctrine entities/documents 2012-01-25 19:51:10 +00:00
Richard Miller dce701b259 Merge branch '2.0'
Conflicts:
	DependencyInjection/FOQElasticaExtension.php
	Manager/RepositoryManager.php
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Resources/config/propel.xml
2012-01-25 12:09:06 +00:00
Richard Miller e678ce8cc6 Added configuring repository by annotation
Conflicts:

	Manager/RepositoryManager.php
	Resources/config/mongodb.xml
	Resources/config/orm.xml
	Tests/Manager/RepositoryManagerTest.php
2012-01-25 11:20:47 +00:00
Richard Miller adf85973f5 Added tests for logging and data collection 2012-01-13 09:15:03 +00:00
Jeremy Mikola 0d0c653777 Merge pull request #58 from merk/index_transformer
Index wide finder
Conflicts:

	DependencyInjection/FOQElasticaExtension.php
	Resources/config/config.xml
2012-01-12 16:10:28 +00:00
Jeremy Mikola 5f83fd90c2 Merge pull request #51 from willdurand/propel-support
Propel support
Conflicts:

	DependencyInjection/FOQElasticaExtension.php
2012-01-12 16:01:33 +00:00
Richard Miller 96be3159bc Merge branch 'master' of github.com:Exercise/FOQElasticaBundle 2012-01-05 23:03:00 +00:00
Richard Miller 2d1ce1f98a Added tests for Doctrine Listeners 2012-01-05 23:00:53 +00:00
Richard Miller 539bbebdd5 Added tests for Doctrine Listeners 2012-01-05 22:56:16 +00:00
Tim Nagel 9c4ef3d8bd Added finder capability for an index 2012-01-04 09:12:51 +11:00
Richard Miller 231e3a0b06 Moved annotation use back into RepositoryManager 2011-12-24 14:44:37 +00:00
Richard Miller ba976e3a41 Extracted the Doctine specific parts of the Repository Manager 2011-12-23 15:29:01 +00:00
William DURAND 19ae10ae27 Fixed unit test (phpunit doesn\'t allow to expect the base Exception class) 2011-12-20 17:46:36 +01:00
Richard Miller 048b1ff625 Added configuring repository by annotation 2011-12-13 19:26:03 +00:00
Richard Miller 1a921ec2a3 Added Doctrine shortcut names for getting repositories 2011-12-11 23:09:13 +00:00
Richard Miller 98536d3f29 Renamed and moved repository manager 2011-12-11 20:14:00 +00:00
Richard Miller 587d1e540e Added checking the transformed values to test 2011-12-05 21:44:12 +00:00
Jeremy Mikola 2b0e09f3da Merge pull request #38 from richardmiller/adding_repositories_for_encapsulating_queries
Adding manager that returns Doctrine style repositories
2011-11-14 08:18:14 -08:00
Jeremy Mikola 872b597e5b Merge pull request #37 from richardmiller/updated_object_persister_unit_test
Updated ObjectPersisterTest to reflect change in ObjectPersister object
2011-11-14 08:12:54 -08:00
Richard Miller 7dbc4221ae Adding manager that returns Doctrine style repositories 2011-11-12 21:10:00 +00:00
Richard Miller e38d7f3bc5 Updated ObjectPersisterTest to reflect change in ObjectPersister object 2011-11-12 20:09:48 +00:00
Richard Miller 781bf869dc Updated ReseterTest to match current Reseter class 2011-11-12 20:05:54 +00:00
Leszek 1232e4f86c Merge branch 'add-tests' of github.com:l3l0/ElasticaBundle into add-tests
Conflicts:
	Tests/PopulatorTest.php
	Tests/ReseterTest.php
2011-07-28 23:04:21 +02:00
Leszek b06c268f05 Added Object Persister Test. Made test skipped when elastica library classes are not found. 2011-07-28 22:37:54 +02:00
Leszek c430aeaea1 Added test for MappingRegistry Populator and ModelToElasticaAutoTransformer. Extend Populator 2011-07-28 21:56:58 +02:00
Leszek 3896ffd9ff Added IndexManager test 2011-07-28 21:56:58 +02:00
Leszek 1c5f63d560 Fixed indentations 2011-07-28 21:56:58 +02:00
Leszek 4d49c5f311 Added Reseter tests 2011-07-28 21:56:58 +02:00
Leszek d046271690 Added Populator test 2011-07-28 21:56:58 +02:00
Leszek b6d643b809 Added IndexManager test 2011-07-07 23:42:03 +02:00
Leszek f627645481 Fixed indentations 2011-07-07 22:58:43 +02:00
Leszek d261ee2d0f Added Reseter tests 2011-07-07 22:42:03 +02:00
Leszek 4dcd011781 Added Populator test 2011-07-07 22:41:46 +02:00