Roland Haroutiounian
56e2dc1d5f
Code cleaning in the migration handler
пре 8 година
Roland Haroutiounian
2e13ab78bc
Changed the mongodb migration handler name to a more generic one
пре 8 година
Roland Haroutiounian
12006b11ab
Added a condition on the class of the datasource for the classes used in the init_collection_names
пре 8 година
Yann Weber
df8e38d9a9
Bugfix in leapi_dyncode import for migration handler
пре 8 година
Roland Haroutiounian
67ce738578
Gets the initial collection names from the dynamic code
пре 8 година
Roland Haroutiounian
46732d6ce0
fixed a method call in the migration handler
пре 8 година
Roland Haroutiounian
9ee52042bd
Init collection names are dynamically defined in the migration handler
пре 8 година
Roland Haroutiounian
74463649da
Added the editorial model in the init of the migration handler
пре 8 година
Roland Haroutiounian
77a857be5e
Bug fix on the migration_handler's register change method
пре 8 година
Yann Weber
79cd9b21b1
Bugfixes in MongoDb datasource
- bugfixes in connection string generator
- bugfixes in garbage collection of opened connections
пре 8 година
Roland Haroutiounian
ca6af9432b
Split of the connect function to create a connection function that return a MongoClient object
This is used for the tests that needs to have access to a connection to be able to drop the test databases
пре 8 година
Roland Haroutiounian
a37fc6da2d
Added connection arguments check
пре 8 година
Roland Haroutiounian
6fa7f8848f
Added an empty connection args check to the migration handler
пре 8 година
Roland Haroutiounian
953e1447f4
deleted a useless import
пре 8 година
Yann Weber
9a82936fbf
Datasources plugins enhancement and loading bugfixes
- now we have a LodelHook to trigger migration handlers loading
- datasources initialization in dyncode is now trigger by a hook (lodel2_plugin_loaded)
- datasources loading by dyncode is better
пре 8 година
Roland Haroutiounian
417ce0258a
Added a default connection check in the _activate function of the mongodb datasource, to see if the plugin can connect
пре 8 година
Yann Weber
9da19f3665
Moved exceptions + LeUpdateQuery.__query implementation
- The LeUpdateQuery implementation is broken or at least have huge performance issue
- Moved LeObject exceptions and LeQuery exceptions in lodel.leapi.exceptions
пре 8 година
Roland Haroutiounian
5f9581679d
Deleted a useless import in the init of the mongodb datasource plugin
пре 8 година
Roland Haroutiounian
8ca2869bbd
PEP8 and deleted the import of the mongodbconnect function in the mongodb datasource
пре 8 година
Roland Haroutiounian
632381eabe
function name correction
пре 8 година
Roland Haroutiounian
c1627dd928
Commented temporarily the mongodbconnect function (replaced by the connect function in the same module
пре 8 година
Roland Haroutiounian
e5ad4d1ff7
created a datasource module in mongodb_datasource plugin and changed the main to add two hooks importing the migration handler and the datasource
пре 8 година
Roland Haroutiounian
21d084e502
Fixed the username argument's name in the connection_string of the mongodb utils module
пре 8 година
Roland Haroutiounian
a9b475d912
Fixed a parameter name in the connect fonction in mongodb_datasource utils.py module
пре 8 година
Roland Haroutiounian
aee3db3095
added the import of the utils.connection_string function in the mongodb_datasource main.py module
пре 8 година
Yann Weber
83afc6b6dd
Deleted datasources plugins and add a settings for datasources declaration
- now datasources are declared with two conf keys : read_only and identifier
- the old datasources plugin hook is now declared in lodel/plugin/core_hooks.py. This file is imported after lodel/plugin/hooks.py in the loader.py
пре 8 година
Yann Weber
d9399bc64d
MongoDB datasource enhancement
- Enables connections saving & auto cleaning
- Preparing possibility to declare a datasource as read only
пре 8 година
Yann Weber
5708194875
Rewriting CRUD methods of datasources
- Now delete & update methods use filters & rel_filters
пре 8 година
Roland Haroutiounian
c595ee23a1
The mongodb migration handler uses now the mongo_filename function
пре 8 година
Yann Weber
11027fd959
Starting implementation of relation in datasource
пре 8 година
Roland Haroutiounian
fbf13e9da4
Deleted an old TODO
пре 8 година
Roland Haroutiounian
0811de96cb
Fix on the arguments of the check_field_in_collection method of the migration handler (extra empty argument passed on a call)
пре 8 година
Roland Haroutiounian
ffa911b22e
Added a condition on the field creation to consider only the documents of the class corresponding to the field
пре 8 година
Roland Haroutiounian
f0c20aaac4
Added the test on the deletion of the collections (to not delete a basis collection)
пре 8 година
Roland Haroutiounian
010decc4d3
Fix on the imports in the mongodb migration handler
пре 8 година
Roland Haroutiounian
d309cea519
Added the emfield_upgrade method (for the update of an existing field)
пре 8 година
Roland Haroutiounian
6dda142b14
First move of the migration_handler for MongoDb to the MongoDb Datasource plugin's package
пре 8 година
Roland Haroutiounian
bf2940a3e3
Move of the MongoDb Datasource in a plugin
пре 8 година